package com.sqx.modules.datacentre.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
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;

@Data
@ApiModel(value = "骑手银行卡信息",description = "")
@TableName("rider_bank_card_info")
public class RiderBankCardInfo {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "id")
    private Long id;
    /**
     * 骑手id
     */
    @ApiModelProperty(name = "骑手id")
    @NotNull(message = "骑手id不能为空")
    private Long userId;
    /**
     * 卡号
     */
    @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(name = "商户id")
    private String mchId;
}
