content: package com.amos.think.dto;
  
  import com.alibaba.cola.dto.Command;
  import lombok.Data;
  import lombok.EqualsAndHashCode;
  
  import java.time.LocalDate;
  
  /**
   * 新增用户请求
   *
   * @author <a href="mailto:daoyuan0626@gmail.com">amos.wang</a>
   * @date 2021/1/8
   */
  @EqualsAndHashCode(callSuper = true)
  @Data
  public class UserRegisterCmd extends Command {
  
      private static final long serialVersionUID = -5726685703640910355L;
  
      public UserRegisterCmd(String username, String password) {
          this.username = username;
          this.password = password;
      }
  
      /**
       * 用户名
       */
      private String username;
  
      /**
       * 密码
       */
      private String password;
  
      /**
       * 姓名（较常用，故放在用户主表）
       */
      private String name;
  
      /**
       * 手机号
       */
      private String phoneNo;
  
      /**
       * 性别
       */
      private Integer gender;
  
      /**
       * 生日
       */
      private LocalDate birthday;
  
      /**
       * 描述
       */
      private String description;
  
  }
  