zhanghua
2023-11-02 46251c20b66bb1ca05058ae63a92a195e5543b90
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.ycl.dto;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
 
import javax.validation.constraints.*;
import java.util.List;
 
/**
 * 用户登录参数
 */
@Getter
@Setter
public class UmsAdminParam {
    @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 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;
}