WorkWechatBookUserInfoResponseDTO.java
4.3 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package cn.com.glsx.wechatbuild.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonMethod;
import org.codehaus.jackson.annotate.JsonProperty;
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public class WorkWechatBookUserInfoResponseDTO extends BaseResponseDTO {
/**
* 成员UserID
*/
@JsonProperty("userid")
@ApiModelProperty(name = "userId", notes = "成员UserID")
private String userId;
/**
* 成员名称
*/
@JsonProperty("name")
@ApiModelProperty(name = "name", notes = "成员名称")
private String name;
/**
* 成员所属部门id列表,仅返回该应用有查看权限的部门id;成员授权模式下,固定返回根部门id,即固定为1
*/
@JsonProperty("department")
@ApiModelProperty(name = "department", notes = "成员所属部门id列表,仅返回该应用有查看权限的部门id;成员授权模式下,固定返回根部门id,即固定为1")
private Integer[] department;
/**
* 主部门
*/
@JsonProperty("main_department")
@ApiModelProperty(name = "mainDepartment", notes = "主部门")
private Integer mainDepartment;
/**
* 表示所在部门是否为上级,0-否,1-是,顺序与Department字段的部门逐一对应
*/
@JsonProperty("is_leader_in_dept")
@ApiModelProperty(name = "isLeaderInDept", notes = "表示所在部门是否为上级,0-否,1-是,顺序与Department字段的部门逐一对应")
private Integer isLeaderInDept[];
/**
* 职位信息。长度为0~64个字节
*/
@JsonProperty("position")
@ApiModelProperty(name = "position", notes = "职位信息。长度为0~64个字节")
private String position;
/**
* 手机号码
*/
@JsonProperty("mobile")
@ApiModelProperty(name = "mobile", notes = "手机号码")
private String mobile;
/**
* 性别,1表示男性,2表示女性
*/
@JsonProperty("gender")
@ApiModelProperty(name = "gender", notes = "性别,1表示男性,2表示女性")
private String gender;
/**
* 邮箱
*/
@JsonProperty("email")
@ApiModelProperty(name = "email", notes = "邮箱")
private String email;
/**
* 激活状态:1=已激活 2=已禁用 4=未激活 已激活代表已激活企业微信或已关注微工作台(原企业号)5=成员退出
*/
@JsonProperty("status")
@ApiModelProperty(name = "status", notes = "激活状态:1=已激活 2=已禁用 4=未激活 已激活代表已激活企业微信或已关注微工作台(原企业号)5=成员退出")
private Integer status;
/**
* 头像url。注:如果要获取小图将url最后的”/0”改成”/100”即可。
*/
@JsonProperty("avatar")
@ApiModelProperty(name = "avatar", notes = "头像url。注:如果要获取小图将url最后的”/0”改成”/100”即可。")
private String avatar;
/**
* 头像缩略图url
*/
@JsonProperty("thumb_avatar")
@ApiModelProperty(name = "thumbAvatar", notes = "头像缩略图url")
private String thumbAvatar;
/**
* 成员别名
*/
@JsonProperty("Alias")
@ApiModelProperty(name = "alias", notes = "成员别名")
private String alias;
/**
* 座机
*/
@JsonProperty("telephone")
@ApiModelProperty(name = "telephone", notes = "座机")
private String telephone;
/**
* 地址
*/
@JsonProperty("address")
@ApiModelProperty(name = "address", notes = "地址")
private String address;
/**
* 员工个人二维码,扫描可添加为外部联系人(注意返回的是一个url,可在浏览器上打开该url以展示二维码);第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取
*/
@JsonProperty("qr_code")
@ApiModelProperty(name = "qrCode", notes = "员工个人二维码,扫描可添加为外部联系人")
private String qrCode;
}