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;
|
}
|