package com.sqx.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@ApiModel(value = "店铺银行卡信息",description = "")
@TableName("shop_bank_card_info")
public class ShopBankCardInfo implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "id")
    private Long id;
    /**
     * 店铺id
     */
    @ApiModelProperty(name = "店铺id")
    @NotNull(message = "店铺id不能为空")
    private Long shopId;
    /**
     * 卡号
     */
    @ApiModelProperty(name = "卡号")
    @NotBlank(message = "卡号不能为空")
    private String cardNo;
    /**
     * 开户行
     */
    @ApiModelProperty(name = "开户行")
    @NotBlank(message = "开户行不能为空")
    private String openBank;
    /**
     * 户主名称
     */
    @ApiModelProperty(name = "户主名称")
    @NotBlank(message = "户主名称不能为空")
    private String realName;
    /**
     * 银行名称
     */
    @ApiModelProperty(name = "银行名称")
    @NotBlank(message = "银行名称不能为空")
    private String bankName;
    /**
     * 删除标识;1 是 0否
     */
    @TableLogic(delval = "1", value = "0")
    @ApiModelProperty(name = "删除标识", notes = "1 是 0否")
    @Pattern(regexp = "(0|1)", message = "删除标识只能为0或1")
    private String delFlag;

    @ApiModelProperty("商户号")
    @TableField(exist = false)
    private String mchId;
}