package com.red.circle.wallet.inner.model.cmd;

import com.red.circle.framework.core.dto.CommonCommand;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户银行卡.
 *
 * @author pengliang on 2022/12/1
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class UserBankCardCmd extends CommonCommand {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  private Long id;

  /**
   * 归属系统.
   */
  private String sysOrigin;

  /**
   * 用户id.
   */
  @NotNull
  private Long userId;

  /**
   * 卡片类型.
   */
  @NotBlank
  private String cardType;

  /**
   * 收款人.
   */
  @NotBlank
  private String payee;

  /**
   * 银行名称.
   */
  @NotBlank
  private String cardName;

  /**
   * 卡号.
   */
  @NotBlank
  private String cardNo;

  /**
   * 状态.
   */
  private String status;

  /**
   * 是否已删除(true是).
   */
  private Boolean del;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

  /**
   * 修改时间.
   */
  private Timestamp updateTime;

  /**
   * 创建用户.
   */
  private Long createUser;

  /**
   * 修改用户.
   */
  private Long updateUser;


}
