Helius
2020-05-13 d0de0bf06f69c8584330e857ec1ecce34b244c9f
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
package com.xcong.excoin.modules.test.dto;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
 
/**
 * @author wzy
 * @date 2020-05-08 10:17
 **/
@Data
@ApiModel(value = "testUser参数接收类", description = "findUserInPage 参数接收类")
public class TestUserDto {
 
//    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "这是名字啊", example = "张三")
    private String name;
 
//    @Length(min = 6, max = 16, message = "账号长度需为6-16位")
    @ApiModelProperty(value = "账号", example = "admin")
    private String account;
 
//    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "这是密码字段啊", example = "123456")
    private String password;
 
    @ApiModelProperty(value = "这是地址ID", example = "123")
    private Long addressId;
}