package org.dromara.payment.channel.domain.bo;

import org.dromara.payment.channel.domain.BusChannelAccount;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 代理商账户业务对象 bus_channel_account
 *
 * @author LionLi
 * @date 2024-04-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusChannelAccount.class, reverseConvertGenerate = false)
public class BusChannelAccountBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 代理商id
     */
    @NotNull(message = "代理商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long channelId;

    /**
     * 结算中心id
     */
    @NotNull(message = "结算中心id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sydId;

    /**
     * 账户id
     */
    @NotNull(message = "账户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long accId;

    /**
     * 银行类型
     */
    @NotBlank(message = "银行类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankType;

    /**
     * 银行账号
     */
    @NotBlank(message = "银行账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankCard;

    /**
     * 总收益(分)
     */
    @NotNull(message = "总收益(分)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long balance;

    /**
     * 冻结金额(分)
     */
    @NotNull(message = "冻结金额(分)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long frozen;

    /**
     * 已提现金额(分)
     */
    @NotNull(message = "已提现金额(分)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cashout;

    /**
     * 是否默认（0:否 1:是）
     */
    @NotNull(message = "是否默认（0:否 1:是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDefault;

    /**
     * 昨日收益(分)
     */
    @NotNull(message = "昨日收益(分)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long yesterday;

    /**
     * 添加时间
     */
    @NotNull(message = "添加时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date addTime;

    /**
     * 状态（1:正常 2:冻结）
     */
    @NotNull(message = "状态（1:正常 2:冻结）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 外卡卡号
     */
    @NotBlank(message = "外卡卡号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String outBankCard;


}
