| | |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import javax.validation.constraints.Email; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.*; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 用户登录参数 |
| | |
| | | @Getter |
| | | @Setter |
| | | public class UmsAdminParam { |
| | | @NotEmpty |
| | | @ApiModelProperty(value = "用户名", required = false) |
| | | private Long id; |
| | | @NotBlank(message = "用户名不能为空") |
| | | @ApiModelProperty(value = "用户名", required = true) |
| | | private String username; |
| | | |
| | | @ApiModelProperty(value = "手机号码") |
| | | @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误") |
| | | private String mobile; |
| | | |
| | | @NotEmpty |
| | | @ApiModelProperty(value = "密码", required = true) |
| | | private String password; |
| | | |
| | | @ApiModelProperty(value = "用户头像") |
| | | private String icon; |
| | | |
| | | @Email |
| | | @ApiModelProperty(value = "邮箱") |
| | | private String email; |
| | | @ApiModelProperty(value = "用户昵称") |
| | | private String nickName; |
| | | |
| | | |
| | | @ApiModelProperty(value = "备注") |
| | | private String note; |
| | | |
| | | @ApiModelProperty(value = "是否党员,0:否,1:是", example = "0") |
| | | @NotNull(message = "党员未选择") |
| | | private byte isDy; |
| | | |
| | | @ApiModelProperty(value = "性别,0:女,1:男", example = "0") |
| | | @NotNull(message = "性别未选择") |
| | | private byte sex; |
| | | |
| | | @ApiModelProperty(value = "职务") |
| | | private String jobTitle; |
| | | |
| | | @ApiModelProperty(value = "部门id") |
| | | private Long departmentId; |
| | | |
| | | @ApiModelProperty(value = "用户类型") |
| | | private Integer userType; |
| | | |
| | | @ApiModelProperty(value = "座机/分机") |
| | | private String zj; |
| | | |
| | | @ApiModelProperty(value = "是否为网格管理员:0->不是;1->是") |
| | | private Integer isGrid; |
| | | |
| | | @ApiModelProperty(value = "真实姓名") |
| | | private String nickName; |
| | | |
| | | @NotEmpty |
| | | @ApiModelProperty(value = "角色Id列表", required = true) |
| | | private List<Long> roleIds; |
| | | |
| | | // @ApiModelProperty(value = "是否是负责人,0->false,1->true,默认0",example = "0") |
| | | // @NotNull(message = "负责人未选择") |
| | | // private byte isManager; |
| | | |
| | | |
| | | @ApiModelProperty(value = "mac地址") |
| | | private String macAddress; |
| | | |
| | | @ApiModelProperty(value = "ip地址") |
| | | private String ipAddress; |
| | | |
| | | @ApiModelProperty(value = "有效天数") |
| | | private Integer days; |
| | | } |