xiaoyong931011
2021-09-30 15aca237e53c5eebf51c048e2f4e57741bbfec88
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package cc.mrbird.febs.mall.dto;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import javax.validation.constraints.NotBlank;
 
/**
 * @author wzy
 * @date 2021-09-16
 **/
@Data
@ApiModel(value = "RegisterDto", description = "用户注册参数接收类")
public class RegisterDto {
 
    @NotBlank(message = "账号不能为空")
    @ApiModelProperty(value = "手机号", example = "15773001234")
    private String account;
 
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", example = "123456")
    private String password;
 
    @ApiModelProperty(value = "类型 1-手机号 2-邮箱", example = "1")
    private String type = "1";
 
    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", example = "123456")
    private String code;
 
    @NotBlank(message = "邀请码不能为空")
    @ApiModelProperty(value = "邀请码")
    private String inviteId;
 
}