@@ -25,19 +25,24 @@ public interface WxCpUserService {
25
25
* </pre>
26
26
*
27
27
* @param userId 用户id
28
+ * @throws WxErrorException the wx error exception
28
29
*/
29
30
void authenticate (String userId ) throws WxErrorException ;
30
31
31
32
/**
32
33
* <pre>
33
- * 获取部门成员(详情).
34
+ * 获取部门成员详情
35
+ * 请求方式:GET(HTTPS)
36
+ * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/list?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD
34
37
*
35
- * http ://qydev .weixin.qq.com/wiki/index.php?title=管理成员#.E8.8E.B7.E5.8F.96.E9.83.A8.E9.97.A8.E6.88.90.E5.91.98.28.E8.AF.A6.E6.83.85.29
38
+ * 文档地址:https ://work .weixin.qq.com/api/doc/90000/90135/90201
36
39
* </pre>
37
40
*
38
41
* @param departId 必填。部门id
39
42
* @param fetchChild 非必填。1/0:是否递归获取子部门下面的成员
40
43
* @param status 非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
44
+ * @return the list
45
+ * @throws WxErrorException the wx error exception
41
46
*/
42
47
List <WxCpUser > listByDepartment (Long departId , Boolean fetchChild , Integer status ) throws WxErrorException ;
43
48
@@ -51,20 +56,24 @@ public interface WxCpUserService {
51
56
* @param departId 必填。部门id
52
57
* @param fetchChild 非必填。1/0:是否递归获取子部门下面的成员
53
58
* @param status 非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
59
+ * @return the list
60
+ * @throws WxErrorException the wx error exception
54
61
*/
55
62
List <WxCpUser > listSimpleByDepartment (Long departId , Boolean fetchChild , Integer status ) throws WxErrorException ;
56
63
57
64
/**
58
65
* 新建用户.
59
66
*
60
67
* @param user 用户对象
68
+ * @throws WxErrorException the wx error exception
61
69
*/
62
70
void create (WxCpUser user ) throws WxErrorException ;
63
71
64
72
/**
65
73
* 更新用户.
66
74
*
67
75
* @param user 用户对象
76
+ * @throws WxErrorException the wx error exception
68
77
*/
69
78
void update (WxCpUser user ) throws WxErrorException ;
70
79
@@ -75,13 +84,16 @@ public interface WxCpUserService {
75
84
* </pre>
76
85
*
77
86
* @param userIds 员工UserID列表。对应管理端的帐号
87
+ * @throws WxErrorException the wx error exception
78
88
*/
79
89
void delete (String ... userIds ) throws WxErrorException ;
80
90
81
91
/**
82
92
* 获取用户.
83
93
*
84
94
* @param userid 用户id
95
+ * @return the by id
96
+ * @throws WxErrorException the wx error exception
85
97
*/
86
98
WxCpUser getById (String userid ) throws WxErrorException ;
87
99
@@ -97,6 +109,8 @@ public interface WxCpUserService {
97
109
* @param userIds 成员ID列表, 最多支持1000个。
98
110
* @param partyIds 部门ID列表,最多支持100个。
99
111
* @param tagIds 标签ID列表,最多支持100个。
112
+ * @return the wx cp invite result
113
+ * @throws WxErrorException the wx error exception
100
114
*/
101
115
WxCpInviteResult invite (List <String > userIds , List <String > partyIds , List <String > tagIds ) throws WxErrorException ;
102
116
@@ -114,9 +128,8 @@ public interface WxCpUserService {
114
128
*
115
129
* @param userId 企业内的成员id
116
130
* @param agentId 非必填,整型,仅用于发红包。其它场景该参数不要填,如微信支付、企业转账、电子发票
117
- * @return map对象,可能包含以下值:
118
- * - openid 企业微信成员userid对应的openid,若有传参agentid,则是针对该agentid的openid。否则是针对企业微信corpid的openid
119
- * - appid 应用的appid,若请求包中不包含agentid则不返回appid。该appid在使用微信红包时会用到
131
+ * @return map对象 ,可能包含以下值: - openid 企业微信成员userid对应的openid,若有传参agentid,则是针对该agentid的openid。否则是针对企业微信corpid的openid - appid 应用的appid,若请求包中不包含agentid则不返回appid。该appid在使用微信红包时会用到
132
+ * @throws WxErrorException the wx error exception
120
133
*/
121
134
Map <String , String > userId2Openid (String userId , Integer agentId ) throws WxErrorException ;
122
135
@@ -134,6 +147,7 @@ public interface WxCpUserService {
134
147
*
135
148
* @param openid 在使用微信支付、微信红包和企业转账之后,返回结果的openid
136
149
* @return userid 该openid在企业微信对应的成员userid
150
+ * @throws WxErrorException the wx error exception
137
151
*/
138
152
String openid2UserId (String openid ) throws WxErrorException ;
139
153
@@ -149,7 +163,7 @@ public interface WxCpUserService {
149
163
* </pre>
150
164
*
151
165
* @param mobile 手机号码。长度为5~32个字节
152
- * @return userid mobile对应的成员userid
166
+ * @return userid mobile对应的成员userid
153
167
* @throws WxErrorException .
154
168
*/
155
169
String getUserId (String mobile ) throws WxErrorException ;
@@ -164,7 +178,7 @@ public interface WxCpUserService {
164
178
* </pre>
165
179
*
166
180
* @param userId 外部联系人的userid
167
- * @return 联系人详情
181
+ * @return 联系人详情 external contact
168
182
* @throws WxErrorException .
169
183
*/
170
184
WxCpExternalContactInfo getExternalContact (String userId ) throws WxErrorException ;
0 commit comments