|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
package com.fdkk.sxz.system.dto;
|
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
@@ -20,12 +19,11 @@ import java.util.List;
|
|
|
* @since 2018-05-26
|
|
|
*/
|
|
|
@Data
|
|
|
-public class CreateUser implements Serializable
|
|
|
-{
|
|
|
+public class CreateUser implements Serializable {
|
|
|
|
|
|
/**
|
|
|
- * @Fields serialVersionUID :
|
|
|
- */
|
|
|
+ * @Fields serialVersionUID :
|
|
|
+ */
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
@@ -39,21 +37,21 @@ public class CreateUser implements Serializable
|
|
|
* 账号
|
|
|
*/
|
|
|
@ApiModelProperty(value = "账号")
|
|
|
- @NotBlank(message="账号不能为空")
|
|
|
+ @NotBlank(message = "账号不能为空")
|
|
|
private String userAccount;
|
|
|
|
|
|
/**
|
|
|
* 昵称
|
|
|
*/
|
|
|
@ApiModelProperty(value = "昵称")
|
|
|
- @Size(min=2,max=16,message="昵称长度不正确")
|
|
|
+ @Size(min = 2, max = 16, message = "昵称长度不正确")
|
|
|
private String userNickName;
|
|
|
|
|
|
/**
|
|
|
* 姓名
|
|
|
*/
|
|
|
@ApiModelProperty(value = "姓名")
|
|
|
- @Size(min=2,max=16,message="姓名长度不正确")
|
|
|
+ @Size(min = 2, max = 16, message = "姓名长度不正确")
|
|
|
private String userName;
|
|
|
|
|
|
/**
|
|
@@ -74,15 +72,15 @@ public class CreateUser implements Serializable
|
|
|
* 电话
|
|
|
*/
|
|
|
@ApiModelProperty(value = "手机号码")
|
|
|
- @NotBlank(message="手机号码不能为空")
|
|
|
- @Size(min=11,max=11,message="手机号码长度不正确")
|
|
|
+ @NotBlank(message = "手机号码不能为空")
|
|
|
+ @Size(min = 11, max = 11, message = "手机号码长度不正确")
|
|
|
private String userMobile;
|
|
|
|
|
|
/**
|
|
|
* 密码
|
|
|
*/
|
|
|
@ApiModelProperty(value = "密码")
|
|
|
- @Pattern(regexp = "^[a-zA-Z0-9]{6,18}$", message="密码格式不正确")
|
|
|
+ @Pattern(regexp = "^[a-zA-Z0-9]{6,18}$", message = "密码格式不正确")
|
|
|
private String userPassword;
|
|
|
|
|
|
/**
|
|
@@ -95,7 +93,8 @@ public class CreateUser implements Serializable
|
|
|
* 头像图片地址
|
|
|
*/
|
|
|
@ApiModelProperty(value = "头像图片地址")
|
|
|
- @Pattern(regexp = "^([hH][tT]{2}[pP]:/*|[hH][tT]{2}[pP][sS]:/*|[fF][tT][pP]:/*)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\/])+(\\?{0,1}(([A-Za-z0-9-~]+\\={0,1})([A-Za-z0-9-~]*)\\&{0,1})*)$", message="头像图片地址格式不正确")
|
|
|
+ @Pattern(regexp = "^([hH][tT]{2}[pP]:/*|[hH][tT]{2}[pP][sS]:/*|[fF][tT][pP]:/*)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\/])+(\\?{0,1}(([A-Za-z0-9-~]+\\={0,1})([A-Za-z0-9-~]*)\\&{0,1})*)$", message =
|
|
|
+ "头像图片地址格式不正确")
|
|
|
private String headImgUrl;
|
|
|
|
|
|
/**
|
|
@@ -132,7 +131,7 @@ public class CreateUser implements Serializable
|
|
|
* 备注
|
|
|
*/
|
|
|
@ApiModelProperty(value = "备注")
|
|
|
- @Size(min=0,max=255,message="备注信息长度不正确")
|
|
|
+ @Size(min = 0, max = 255, message = "备注信息长度不正确")
|
|
|
private String description;
|
|
|
|
|
|
private Long roleId;
|
|
@@ -146,4 +145,6 @@ public class CreateUser implements Serializable
|
|
|
@ApiModelProperty(value = "用户角色ID数组")
|
|
|
private List<Long> roleIds;
|
|
|
|
|
|
+ private Long fdkkId;
|
|
|
+
|
|
|
}
|