作者 yangfu

users - > user

正在显示 60 个修改的文件 包含 127 行增加1401 行删除
@@ -22,6 +22,6 @@ metadata: @@ -22,6 +22,6 @@ metadata:
22 - method: destoryAccount 22 - method: destoryAccount
23 route: 23 route:
24 post: /destory-account 24 post: /destory-account
25 - - method: usersInfo 25 + - method: userInfo
26 route: 26 route:
27 - post: /usersInfo 27 + post: /userInfo
@@ -21,7 +21,7 @@ metadata: @@ -21,7 +21,7 @@ metadata:
21 post: /search 21 post: /search
22 - method: getRoleRelatedUsers 22 - method: getRoleRelatedUsers
23 route: 23 route:
24 - get: /{roleId}/related-users 24 + get: /{roleId}/related-user
25 params: 25 params:
26 - name: roleId 26 - name: roleId
27 - name: orgId 27 - name: orgId
1 version: v1 1 version: v1
2 kind: HttpApi 2 kind: HttpApi
3 metadata: 3 metadata:
4 - service: users  
5 - path: /users 4 + service: user
  5 + path: /user
6 endpoints: 6 endpoints:
7 - method: updateFavoriteMenus 7 - method: updateFavoriteMenus
8 route: 8 route:
9 - put: /{usersId}/favorite-menus 9 + put: /{userId}/favorite-menus
10 - method: getFavoriteMenus 10 - method: getFavoriteMenus
11 route: 11 route:
12 - get: /{usersId}/favorite-menus 12 + get: /{userId}/favorite-menus
13 - method: deleteFavoriteMenus 13 - method: deleteFavoriteMenus
14 route: 14 route:
15 - delete: /{usersId}/favorite-menus/{code} 15 + delete: /{userId}/favorite-menus/{code}
1 version: v1 1 version: v1
2 kind: HttpApi 2 kind: HttpApi
3 metadata: 3 metadata:
4 - service: users  
5 - path: /users 4 + service: user
  5 + path: /user
6 endpoints: 6 endpoints:
7 - method: createUsers 7 - method: createUsers
8 route: 8 route:
9 post: / 9 post: /
10 - method: updateUsers 10 - method: updateUsers
11 route: 11 route:
12 - put: /{usersId} 12 + put: /{userId}
13 - method: getUsers 13 - method: getUsers
14 route: 14 route:
15 - get: /{usersId} 15 + get: /{userId}
16 - method: removeUsers 16 - method: removeUsers
17 route: 17 route:
18 - delete: /{usersId} 18 + delete: /{userId}
19 - method: listUsers 19 - method: listUsers
20 route: 20 route:
21 post: /search 21 post: /search
22 - method: getUsersAccessMenus 22 - method: getUsersAccessMenus
23 route: 23 route:
24 - get: /{usersId}/access-menus 24 + get: /{userId}/access-menus
25 params: 25 params:
26 - name: menuCategory 26 - name: menuCategory
27 - method: getUsersProfile 27 - method: getUsersProfile
28 route: 28 route:
29 - get: /{usersId}/profile 29 + get: /{userId}/profile
30 - method: batchAdd 30 - method: batchAdd
31 route: 31 route:
32 post: /batch-add 32 post: /batch-add
@@ -38,4 +38,4 @@ metadata: @@ -38,4 +38,4 @@ metadata:
38 post: /batch-reset-password 38 post: /batch-reset-password
39 - method: updateUsersBase 39 - method: updateUsersBase
40 route: 40 route:
41 - put: /{usersId}/base-info 41 + put: /{userId}/base-info
1 version: v1 1 version: v1
2 kind: HttpApi 2 kind: HttpApi
3 metadata: 3 metadata:
4 - service: usersBase  
5 - path: /users-base 4 + service: userBase
  5 + path: /user-base
6 endpoints: 6 endpoints:
7 - method: createUsersBase 7 - method: createUsersBase
8 route: 8 route:
9 post: / 9 post: /
10 - method: updateUsersBase 10 - method: updateUsersBase
11 route: 11 route:
12 - put: /{usersBaseId} 12 + put: /{userBaseId}
13 - method: getUsersBase 13 - method: getUsersBase
14 route: 14 route:
15 - get: /{usersBaseId} 15 + get: /{userBaseId}
16 - method: removeUsersBase 16 - method: removeUsersBase
17 route: 17 route:
18 - delete: /{usersBaseId} 18 + delete: /{userBaseId}
19 - method: listUsersBase 19 - method: listUsersBase
20 route: 20 route:
21 post: /search 21 post: /search
@@ -2,6 +2,6 @@ version: v1 @@ -2,6 +2,6 @@ version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 name: accessCode 4 name: accessCode
5 - description: 权限编码 users:edit 5 + description: 权限编码 user:edit
6 type: 6 type:
7 primitive: string 7 primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: account
  5 + description: 账号
  6 + type:
  7 + primitive: string
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: usersBaseId 4 + name: userBaseId
5 description: 用户基础数据id 5 description: 用户基础数据id
6 type: 6 type:
7 primitive: int64 7 primitive: int64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: usersCode 4 + name: userCode
5 description: 用户编号 企业内标识 5 description: 用户编号 企业内标识
6 type: 6 type:
7 primitive: string 7 primitive: string
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: usersCompanyId 4 + name: userCompanyId
5 description: 用户公司编号 5 description: 用户公司编号
6 type: 6 type:
7 primitive: int64 7 primitive: int64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: usersId 4 + name: userId
5 description: 用户Id 用户唯一标识 5 description: 用户Id 用户唯一标识
6 type: 6 type:
7 primitive: int64 7 primitive: int64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: usersName 4 + name: userName
5 description: 用户姓名 5 description: 用户姓名
6 type: 6 type:
7 primitive: string 7 primitive: string
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: usersOrg 4 + name: userOrg
5 description: 用户关联的组织 5 description: 用户关联的组织
6 type: 6 type:
7 array: int64 7 array: int64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: usersRole 4 + name: userRole
5 description: 用户关联的角色 5 description: 用户关联的角色
6 type: 6 type:
7 array: int64 7 array: int64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: usersType 4 + name: userType
5 description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加) 5 description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)
6 type: 6 type:
7 primitive: int 7 primitive: int
1 -swagger: "2.0"  
2 -info:  
3 - title: ""  
4 - description: 天联企业管理系统  
5 - contact:  
6 - name: ""  
7 - email: ""  
8 - home: ""  
9 - version: 0.0.1  
10 -paths: {}  
11 -definitions:  
12 - AuthCompanySignUpRequestBody:  
13 - title: AuthCompanySignUpRequestBody  
14 - type: object  
15 - properties:  
16 - companyName:  
17 - type: string  
18 - description: 企业名称  
19 - required:  
20 - - companyName  
21 - contacts:  
22 - type: string  
23 - description: 联系人  
24 - required:  
25 - - contacts  
26 - industryCategory:  
27 - type: string  
28 - description: 所属行业  
29 - required:  
30 - - industryCategory  
31 - password:  
32 - type: string  
33 - description: 密码  
34 - required:  
35 - - password  
36 - phone:  
37 - type: string  
38 - description: 手机号码  
39 - required:  
40 - - phone  
41 - scale:  
42 - type: string  
43 - description: 规模  
44 - required:  
45 - - scale  
46 - AuthCompanySignUpResponseBody:  
47 - title: 'Mediatype identifier: AuthCompanySignUpResponseBody'  
48 - type: object  
49 - properties:  
50 - code:  
51 - type: integer  
52 - required:  
53 - - code  
54 - msg:  
55 - type: string  
56 - required:  
57 - - msg  
58 - AuthDestoryAccountRequestBody:  
59 - title: AuthDestoryAccountRequestBody  
60 - type: object  
61 - properties:  
62 - usersId:  
63 - type: integer  
64 - description: 用户编号  
65 - required:  
66 - - usersId  
67 - AuthDestoryAccountResponseBody:  
68 - title: 'Mediatype identifier: AuthDestoryAccountResponseBody'  
69 - type: object  
70 - properties:  
71 - code:  
72 - type: integer  
73 - required:  
74 - - code  
75 - msg:  
76 - type: string  
77 - required:  
78 - - msg  
79 - AuthPhoneAuthCheckRequestBody:  
80 - title: AuthPhoneAuthCheckRequestBody  
81 - type: object  
82 - properties:  
83 - password:  
84 - type: string  
85 - description: 密码  
86 - required:  
87 - - password  
88 - phone:  
89 - type: string  
90 - description: 手机号码  
91 - required:  
92 - - phone  
93 - AuthPhoneAuthCheckResponseBody:  
94 - title: 'Mediatype identifier: AuthPhoneAuthCheckResponseBody'  
95 - type: object  
96 - properties:  
97 - code:  
98 - type: integer  
99 - required:  
100 - - code  
101 - msg:  
102 - type: string  
103 - required:  
104 - - msg  
105 - AuthPhoneAuthResetPasswordRequestBody:  
106 - title: AuthPhoneAuthResetPasswordRequestBody  
107 - type: object  
108 - properties:  
109 - password:  
110 - type: string  
111 - description: 密码  
112 - required:  
113 - - password  
114 - phone:  
115 - type: string  
116 - description: 手机号码  
117 - required:  
118 - - phone  
119 - AuthPhoneAuthResetPasswordResponseBody:  
120 - title: 'Mediatype identifier: AuthPhoneAuthResetPasswordResponseBody'  
121 - type: object  
122 - properties:  
123 - msg:  
124 - type: string  
125 - description: 消息  
126 - MenuCreateMenuRequestBody:  
127 - title: MenuCreateMenuRequestBody  
128 - type: object  
129 - properties:  
130 - accessCode:  
131 - type: string  
132 - description: 权限编码 users:edit  
133 - required:  
134 - - accessCode  
135 - code:  
136 - type: string  
137 - description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)  
138 - required:  
139 - - code  
140 - enableStatus:  
141 - type: integer  
142 - description: 启用状态(启用:1 禁用:0)  
143 - required:  
144 - - enableStatus  
145 - icon:  
146 - type: string  
147 - description: 菜单图标  
148 - isPublish:  
149 - type: integer  
150 - description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示  
151 - required:  
152 - - isPublish  
153 - menuName:  
154 - type: string  
155 - description: 菜单名称  
156 - required:  
157 - - menuName  
158 - menuType:  
159 - type: string  
160 - description: 菜单类型 (目录catalog、菜单menu、按钮button)  
161 - required:  
162 - - menuType  
163 - parentId:  
164 - type: integer  
165 - description: 父级id  
166 - format: int64  
167 - remark:  
168 - type: string  
169 - description: 菜单说明  
170 - sort:  
171 - type: integer  
172 - description: 排序  
173 - required:  
174 - - sort  
175 - MenuCreateMenuResponseBody:  
176 - title: 'Mediatype identifier: MenuCreateMenuResponseBody'  
177 - type: object  
178 - properties:  
179 - menu:  
180 - $ref: '#/definitions/menuResponseBody'  
181 - MenuGetMenuResponseBody:  
182 - title: 'Mediatype identifier: MenuGetMenuResponseBody'  
183 - type: object  
184 - properties:  
185 - menu:  
186 - $ref: '#/definitions/menuResponseBody'  
187 - MenuListMenuResponseBody:  
188 - title: 'Mediatype identifier: MenuListMenuResponseBody'  
189 - type: object  
190 - properties:  
191 - count:  
192 - type: integer  
193 - description: 匹配数目  
194 - required:  
195 - - count  
196 - menus:  
197 - type: array  
198 - items:  
199 - $ref: '#/definitions/menuResponseBody'  
200 - required:  
201 - - menus  
202 - MenuRemoveMenuResponseBody:  
203 - title: 'Mediatype identifier: MenuRemoveMenuResponseBody'  
204 - type: object  
205 - properties:  
206 - menu:  
207 - $ref: '#/definitions/menuResponseBody'  
208 - MenuUpdateMenuRequestBody:  
209 - title: MenuUpdateMenuRequestBody  
210 - type: object  
211 - properties:  
212 - accessCode:  
213 - type: string  
214 - description: 权限编码 users:edit  
215 - code:  
216 - type: string  
217 - description: 菜单编码 SYSTEM_USER_EDIT / 100101 (字符编码)  
218 - required:  
219 - - code  
220 - enableStatus:  
221 - type: integer  
222 - description: 启用状态(启用:1 禁用:0)  
223 - required:  
224 - - enableStatus  
225 - icon:  
226 - type: string  
227 - description: 菜单图标  
228 - isPublish:  
229 - type: integer  
230 - description: 菜单是否公开状态,[0:隐藏],[1:显示],默认显示  
231 - format: int64  
232 - menuName:  
233 - type: string  
234 - description: 菜单名称  
235 - required:  
236 - - menuName  
237 - menuType:  
238 - type: string  
239 - description: 菜单类型 (目录catalog、菜单menu、按钮button)  
240 - required:  
241 - - menuType  
242 - remark:  
243 - type: string  
244 - description: 菜单说明  
245 - sort:  
246 - type: integer  
247 - description: 排序  
248 - required:  
249 - - sort  
250 - MenuUpdateMenuResponseBody:  
251 - title: 'Mediatype identifier: MenuUpdateMenuResponseBody'  
252 - type: object  
253 - properties:  
254 - menu:  
255 - $ref: '#/definitions/menuResponseBody'  
256 - OrgCreateOrgRequestBody:  
257 - title: OrgCreateOrgRequestBody  
258 - type: object  
259 - properties:  
260 - companyId:  
261 - type: integer  
262 - description: 企业id  
263 - required:  
264 - - companyId  
265 - isOrg:  
266 - type: string  
267 - required:  
268 - - isOrg  
269 - orgCode:  
270 - type: string  
271 - description: 组织编码  
272 - required:  
273 - - orgCode  
274 - orgName:  
275 - type: string  
276 - description: 组织名称  
277 - required:  
278 - - orgName  
279 - parentId:  
280 - type: integer  
281 - description: 父级ID  
282 - required:  
283 - - parentId  
284 - OrgCreateOrgResponseBody:  
285 - title: 'Mediatype identifier: OrgCreateOrgResponseBody'  
286 - type: object  
287 - properties:  
288 - org:  
289 - $ref: '#/definitions/orgResponseBody'  
290 - OrgGetOrgResponseBody:  
291 - title: 'Mediatype identifier: OrgGetOrgResponseBody'  
292 - type: object  
293 - properties:  
294 - org:  
295 - $ref: '#/definitions/orgResponseBody'  
296 - OrgGetOrgSubDepartmentResponseBody:  
297 - title: 'Mediatype identifier: OrgGetOrgSubDepartmentResponseBody'  
298 - type: object  
299 - properties:  
300 - org:  
301 - type: array  
302 - items:  
303 - $ref: '#/definitions/orgResponseBody'  
304 - required:  
305 - - org  
306 - OrgListOrgResponseBody:  
307 - title: 'Mediatype identifier: OrgListOrgResponseBody'  
308 - type: object  
309 - properties:  
310 - count:  
311 - type: integer  
312 - description: 匹配数目  
313 - required:  
314 - - count  
315 - orgs:  
316 - type: array  
317 - items:  
318 - $ref: '#/definitions/orgResponseBody'  
319 - required:  
320 - - orgs  
321 - OrgRemoveOrgResponseBody:  
322 - title: 'Mediatype identifier: OrgRemoveOrgResponseBody'  
323 - type: object  
324 - properties:  
325 - org:  
326 - $ref: '#/definitions/orgResponseBody'  
327 - OrgUpdateOrgRequestBody:  
328 - title: OrgUpdateOrgRequestBody  
329 - type: object  
330 - properties:  
331 - isOrg:  
332 - type: string  
333 - required:  
334 - - isOrg  
335 - orgCode:  
336 - type: string  
337 - description: 组织编码  
338 - required:  
339 - - orgCode  
340 - orgName:  
341 - type: string  
342 - description: 组织名称  
343 - required:  
344 - - orgName  
345 - parentId:  
346 - type: integer  
347 - description: 父级ID  
348 - required:  
349 - - parentId  
350 - OrgUpdateOrgResponseBody:  
351 - title: 'Mediatype identifier: OrgUpdateOrgResponseBody'  
352 - type: object  
353 - properties:  
354 - org:  
355 - $ref: '#/definitions/orgResponseBody'  
356 - RoleAssginRoleToUsersRequestBody:  
357 - title: RoleAssginRoleToUsersRequestBody  
358 - type: object  
359 - properties:  
360 - roleId:  
361 - type: integer  
362 - description: 角色ID  
363 - required:  
364 - - roleId  
365 - usersIds:  
366 - type: array  
367 - items:  
368 - type: integer  
369 - format: int64  
370 - description: 用户列表  
371 - RoleAssginRoleToUsersResponseBody:  
372 - title: 'Mediatype identifier: RoleAssginRoleToUsersResponseBody'  
373 - type: object  
374 - properties:  
375 - code:  
376 - type: integer  
377 - required:  
378 - - code  
379 - msg:  
380 - type: string  
381 - required:  
382 - - msg  
383 - RoleCreateRoleRequestBody:  
384 - title: RoleCreateRoleRequestBody  
385 - type: object  
386 - properties:  
387 - desc:  
388 - type: integer  
389 - description: 描述  
390 - format: int64  
391 - roleName:  
392 - type: string  
393 - description: 角色名称  
394 - required:  
395 - - roleName  
396 - RoleCreateRoleResponseBody:  
397 - title: 'Mediatype identifier: RoleCreateRoleResponseBody'  
398 - type: object  
399 - properties:  
400 - role:  
401 - $ref: '#/definitions/roleResponseBody'  
402 - RoleGetRoleAccessMenusResponseBody:  
403 - title: 'Mediatype identifier: RoleGetRoleAccessMenusResponseBody'  
404 - type: object  
405 - properties:  
406 - accessMenus:  
407 - type: array  
408 - items:  
409 - type: integer  
410 - format: int64  
411 - required:  
412 - - accessMenus  
413 - RoleGetRoleRelatedUsersResponseBody:  
414 - title: 'Mediatype identifier: RoleGetRoleRelatedUsersResponseBody'  
415 - type: object  
416 - properties:  
417 - role:  
418 - $ref: '#/definitions/roleResponseBody'  
419 - RoleGetRoleResponseBody:  
420 - title: 'Mediatype identifier: RoleGetRoleResponseBody'  
421 - type: object  
422 - properties:  
423 - role:  
424 - $ref: '#/definitions/roleResponseBody'  
425 - RoleListRoleResponseBody:  
426 - title: 'Mediatype identifier: RoleListRoleResponseBody'  
427 - type: object  
428 - properties:  
429 - count:  
430 - type: integer  
431 - description: 匹配数目  
432 - required:  
433 - - count  
434 - roles:  
435 - type: array  
436 - items:  
437 - $ref: '#/definitions/roleResponseBody'  
438 - required:  
439 - - roles  
440 - RoleRemoveRoleResponseBody:  
441 - title: 'Mediatype identifier: RoleRemoveRoleResponseBody'  
442 - type: object  
443 - properties:  
444 - role:  
445 - $ref: '#/definitions/roleResponseBody'  
446 - RoleUnAssginRoleToUsersRequestBody:  
447 - title: RoleUnAssginRoleToUsersRequestBody  
448 - type: object  
449 - properties:  
450 - roleId:  
451 - type: integer  
452 - description: 角色ID  
453 - required:  
454 - - roleId  
455 - usersIds:  
456 - type: array  
457 - items:  
458 - type: integer  
459 - format: int64  
460 - description: 用户列表  
461 - RoleUnAssginRoleToUsersResponseBody:  
462 - title: 'Mediatype identifier: RoleUnAssginRoleToUsersResponseBody'  
463 - type: object  
464 - properties:  
465 - code:  
466 - type: integer  
467 - required:  
468 - - code  
469 - msg:  
470 - type: string  
471 - required:  
472 - - msg  
473 - RoleUpdateRoleAccessMenusRequestBody:  
474 - title: RoleUpdateRoleAccessMenusRequestBody  
475 - type: object  
476 - properties:  
477 - accessMenus:  
478 - type: array  
479 - items:  
480 - type: integer  
481 - format: int64  
482 - description: 菜单编号列表  
483 - RoleUpdateRoleAccessMenusResponseBody:  
484 - title: 'Mediatype identifier: RoleUpdateRoleAccessMenusResponseBody'  
485 - type: object  
486 - properties:  
487 - role:  
488 - $ref: '#/definitions/roleResponseBody'  
489 - RoleUpdateRoleRequestBody:  
490 - title: RoleUpdateRoleRequestBody  
491 - type: object  
492 - properties:  
493 - desc:  
494 - type: integer  
495 - description: 描述  
496 - format: int64  
497 - roleName:  
498 - type: string  
499 - description: 角色名称  
500 - required:  
501 - - roleName  
502 - RoleUpdateRoleResponseBody:  
503 - title: 'Mediatype identifier: RoleUpdateRoleResponseBody'  
504 - type: object  
505 - properties:  
506 - role:  
507 - $ref: '#/definitions/roleResponseBody'  
508 - UsersBatchAddRequestBody:  
509 - title: UsersBatchAddRequestBody  
510 - type: object  
511 - properties:  
512 - users:  
513 - type: array  
514 - items:  
515 - $ref: '#/definitions/usersRequestBody'  
516 - description: 用户列表  
517 - usersType:  
518 - type: integer  
519 - description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)  
520 - required:  
521 - - usersType  
522 - UsersBatchAddResponseBody:  
523 - title: 'Mediatype identifier: UsersBatchAddResponseBody'  
524 - type: object  
525 - properties:  
526 - code:  
527 - type: integer  
528 - required:  
529 - - code  
530 - msg:  
531 - type: string  
532 - required:  
533 - - msg  
534 - UsersBatchEnableRequestBody:  
535 - title: UsersBatchEnableRequestBody  
536 - type: object  
537 - properties:  
538 - enableStatus:  
539 - type: integer  
540 - description: 启用状态(启用:1 禁用:2 注销:3)  
541 - required:  
542 - - enableStatus  
543 - usersIds:  
544 - type: array  
545 - items:  
546 - type: integer  
547 - format: int64  
548 - required:  
549 - - usersIds  
550 - UsersBatchEnableResponseBody:  
551 - title: 'Mediatype identifier: UsersBatchEnableResponseBody'  
552 - type: object  
553 - properties:  
554 - code:  
555 - type: integer  
556 - required:  
557 - - code  
558 - msg:  
559 - type: string  
560 - required:  
561 - - msg  
562 - UsersBatchResetPasswordRequestBody:  
563 - title: UsersBatchResetPasswordRequestBody  
564 - type: object  
565 - properties:  
566 - password:  
567 - type: string  
568 - description: 密码  
569 - required:  
570 - - password  
571 - usersIds:  
572 - type: array  
573 - items:  
574 - type: integer  
575 - format: int64  
576 - required:  
577 - - usersIds  
578 - UsersBatchResetPasswordResponseBody:  
579 - title: 'Mediatype identifier: UsersBatchResetPasswordResponseBody'  
580 - type: object  
581 - properties:  
582 - code:  
583 - type: integer  
584 - required:  
585 - - code  
586 - msg:  
587 - type: string  
588 - required:  
589 - - msg  
590 - UsersCreateUsersRequestBody:  
591 - title: UsersCreateUsersRequestBody  
592 - type: object  
593 - properties:  
594 - companyId:  
595 - type: integer  
596 - description: 企业id  
597 - required:  
598 - - companyId  
599 - cooperationInfo:  
600 - $ref: '#/definitions/cooperationInfoRequestBody'  
601 - departmentId:  
602 - type: integer  
603 - description: 所属部门  
604 - format: int64  
605 - enableStatus:  
606 - type: integer  
607 - description: 启用状态(启用:1 禁用:2)  
608 - format: int64  
609 - organizationId:  
610 - type: integer  
611 - description: 组织机构  
612 - format: int64  
613 - usersCode:  
614 - type: string  
615 - description: 用户编号  
616 - required:  
617 - - usersCode  
618 - usersOrg:  
619 - type: array  
620 - items:  
621 - $ref: '#/definitions/orgRequestBody'  
622 - description: 用户关联的组织  
623 - usersRole:  
624 - type: array  
625 - items:  
626 - $ref: '#/definitions/roleRequestBody'  
627 - description: 用户关联的角色  
628 - usersType:  
629 - type: integer  
630 - description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)  
631 - required:  
632 - - usersType  
633 - UsersCreateUsersResponseBody:  
634 - title: 'Mediatype identifier: UsersCreateUsersResponseBody'  
635 - type: object  
636 - properties:  
637 - users:  
638 - $ref: '#/definitions/usersResponseBody'  
639 - UsersFavoriteMenusDeleteFavoriteMenusResponseBody:  
640 - title: 'Mediatype identifier: UsersFavoriteMenusDeleteFavoriteMenusResponseBody'  
641 - type: object  
642 - properties:  
643 - code:  
644 - type: integer  
645 - required:  
646 - - code  
647 - msg:  
648 - type: string  
649 - required:  
650 - - msg  
651 - UsersFavoriteMenusGetFavoriteMenusResponseBody:  
652 - title: 'Mediatype identifier: UsersFavoriteMenusGetFavoriteMenusResponseBody'  
653 - type: object  
654 - properties:  
655 - users:  
656 - $ref: '#/definitions/usersResponseBody'  
657 - UsersFavoriteMenusUpdateFavoriteMenusRequestBody:  
658 - title: UsersFavoriteMenusUpdateFavoriteMenusRequestBody  
659 - type: object  
660 - properties:  
661 - favoriteMenus:  
662 - type: array  
663 - items:  
664 - type: string  
665 - description: 菜单编码列表  
666 - UsersFavoriteMenusUpdateFavoriteMenusResponseBody:  
667 - title: 'Mediatype identifier: UsersFavoriteMenusUpdateFavoriteMenusResponseBody'  
668 - type: object  
669 - properties:  
670 - code:  
671 - type: integer  
672 - required:  
673 - - code  
674 - msg:  
675 - type: string  
676 - required:  
677 - - msg  
678 - UsersGetUsersAccessMenusResponseBody:  
679 - title: 'Mediatype identifier: UsersGetUsersAccessMenusResponseBody'  
680 - type: object  
681 - properties:  
682 - menus:  
683 - type: array  
684 - items:  
685 - $ref: '#/definitions/menuResponseBody'  
686 - required:  
687 - - menus  
688 - UsersGetUsersBaseInfoResponseBody:  
689 - title: 'Mediatype identifier: UsersGetUsersBaseInfoResponseBody'  
690 - type: object  
691 - properties:  
692 - users:  
693 - $ref: '#/definitions/usersResponseBody'  
694 - UsersGetUsersResponseBody:  
695 - title: 'Mediatype identifier: UsersGetUsersResponseBody'  
696 - type: object  
697 - properties:  
698 - users:  
699 - $ref: '#/definitions/usersResponseBody'  
700 - UsersListUsersResponseBody:  
701 - title: 'Mediatype identifier: UsersListUsersResponseBody'  
702 - type: object  
703 - properties:  
704 - count:  
705 - type: integer  
706 - description: 匹配数目  
707 - required:  
708 - - count  
709 - users:  
710 - type: array  
711 - items:  
712 - $ref: '#/definitions/usersResponseBody'  
713 - required:  
714 - - users  
715 - UsersRemoveUsersResponseBody:  
716 - title: 'Mediatype identifier: UsersRemoveUsersResponseBody'  
717 - type: object  
718 - properties:  
719 - users:  
720 - $ref: '#/definitions/usersResponseBody'  
721 - UsersUpdateUsersPhoneAuthRequestBody:  
722 - title: UsersUpdateUsersPhoneAuthRequestBody  
723 - type: object  
724 - properties:  
725 - password:  
726 - type: string  
727 - description: 密码  
728 - phone:  
729 - type: string  
730 - description: 手机号码  
731 - UsersUpdateUsersPhoneAuthResponseBody:  
732 - title: 'Mediatype identifier: UsersUpdateUsersPhoneAuthResponseBody'  
733 - type: object  
734 - properties:  
735 - code:  
736 - type: integer  
737 - required:  
738 - - code  
739 - msg:  
740 - type: string  
741 - required:  
742 - - msg  
743 - UsersUpdateUsersRequestBody:  
744 - title: UsersUpdateUsersRequestBody  
745 - type: object  
746 - properties:  
747 - cooperationInfo:  
748 - $ref: '#/definitions/cooperationInfoRequestBody'  
749 - departmentId:  
750 - type: integer  
751 - description: 所属部门  
752 - format: int64  
753 - enableStatus:  
754 - type: integer  
755 - description: 启用状态(启用:1 禁用:2)  
756 - format: int64  
757 - organizationId:  
758 - type: integer  
759 - description: 组织机构  
760 - format: int64  
761 - usersCode:  
762 - type: string  
763 - description: 用户编号  
764 - required:  
765 - - usersCode  
766 - usersOrg:  
767 - type: array  
768 - items:  
769 - $ref: '#/definitions/orgRequestBody'  
770 - description: 用户关联的组织  
771 - usersRole:  
772 - type: array  
773 - items:  
774 - $ref: '#/definitions/roleRequestBody'  
775 - description: 用户关联的角色  
776 - UsersUpdateUsersResponseBody:  
777 - title: 'Mediatype identifier: UsersUpdateUsersResponseBody'  
778 - type: object  
779 - properties:  
780 - users:  
781 - $ref: '#/definitions/usersResponseBody'  
782 - cooperationInfoRequestBody:  
783 - title: cooperationInfoRequestBody  
784 - type: object  
785 - properties:  
786 - cooperationCompany:  
787 - type: string  
788 - description: 共创公司  
789 - cooperationDeadline:  
790 - type: string  
791 - description: 共创到期时间 (yyyy-MM-dd)  
792 - format: datetime  
793 - description: 共创信息  
794 - cooperationInfoResponseBody:  
795 - title: cooperationInfoResponseBody  
796 - type: object  
797 - properties:  
798 - cooperationCompany:  
799 - type: string  
800 - description: 共创公司  
801 - cooperationDeadline:  
802 - type: string  
803 - description: 共创到期时间 (yyyy-MM-dd)  
804 - format: datetime  
805 - description: 共创信息  
806 - extRequestBody:  
807 - title: extRequestBody  
808 - type: object  
809 - properties:  
810 - depName:  
811 - type: string  
812 - description: 部门名称  
813 - required:  
814 - - depName  
815 - orgName:  
816 - type: string  
817 - description: 组织名称  
818 - required:  
819 - - orgName  
820 - parentDepName:  
821 - type: string  
822 - description: 父级部门名称  
823 - required:  
824 - - parentDepName  
825 - phone:  
826 - type: string  
827 - description: 手机号码  
828 - required:  
829 - - phone  
830 - usersName:  
831 - type: string  
832 - description: 用户姓名  
833 - required:  
834 - - usersName  
835 - description: 冗余附加数据  
836 - extResponseBody:  
837 - title: extResponseBody  
838 - type: object  
839 - properties:  
840 - depName:  
841 - type: string  
842 - description: 部门名称  
843 - required:  
844 - - depName  
845 - orgName:  
846 - type: string  
847 - description: 组织名称  
848 - required:  
849 - - orgName  
850 - parentDepName:  
851 - type: string  
852 - description: 父级部门名称  
853 - required:  
854 - - parentDepName  
855 - phone:  
856 - type: string  
857 - description: 手机号码  
858 - required:  
859 - - phone  
860 - usersName:  
861 - type: string  
862 - description: 用户姓名  
863 - required:  
864 - - usersName  
865 - description: 冗余附加数据  
866 - menuResponseBody:  
867 - title: menuResponseBody  
868 - type: object  
869 - properties:  
870 - accessCode:  
871 - type: string  
872 - description: 权限编码 users:edit  
873 - required:  
874 - - accessCode  
875 - category:  
876 - type: string  
877 - description: 菜单类别 (web:1、app:2)  
878 - code:  
879 - type: string  
880 - description: 菜单编码 SYSTEM_USER_EDIT  
881 - required:  
882 - - code  
883 - enableStatus:  
884 - type: integer  
885 - description: 启用状态(启用:1 禁用:0)  
886 - required:  
887 - - enableStatus  
888 - icon:  
889 - type: string  
890 - description: 菜单图标  
891 - required:  
892 - - icon  
893 - isPublish:  
894 - type: integer  
895 - description: 菜单是否公开状态(上架、下架),[0:隐藏],[1:显示],默认显示  
896 - required:  
897 - - isPublish  
898 - menuId:  
899 - type: integer  
900 - description: 菜单编号  
901 - required:  
902 - - menuId  
903 - menuName:  
904 - type: string  
905 - description: 菜单名称  
906 - required:  
907 - - menuName  
908 - menuType:  
909 - type: string  
910 - description: 菜单类型 (目录catalog、菜单menu、按钮button)  
911 - required:  
912 - - menuType  
913 - parentId:  
914 - type: integer  
915 - description: 父级ID  
916 - required:  
917 - - parentId  
918 - parentPath:  
919 - type: string  
920 - description: 父级节点路径("0,11,12,")  
921 - remark:  
922 - type: string  
923 - description: 备注  
924 - required:  
925 - - remark  
926 - sort:  
927 - type: integer  
928 - description: 排序  
929 - required:  
930 - - sort  
931 - description: 系统菜单  
932 - orgRequestBody:  
933 - title: orgRequestBody  
934 - type: object  
935 - properties:  
936 - companyId:  
937 - type: integer  
938 - description: 企业id  
939 - required:  
940 - - companyId  
941 - createdAt:  
942 - type: string  
943 - description: 创建时间  
944 - required:  
945 - - createdAt  
946 - deletedAt:  
947 - type: string  
948 - description: 删除时间  
949 - required:  
950 - - deletedAt  
951 - ext:  
952 - $ref: '#/definitions/extRequestBody'  
953 - isOrg:  
954 - type: string  
955 - required:  
956 - - isOrg  
957 - orgCode:  
958 - type: string  
959 - description: 组织编码  
960 - required:  
961 - - orgCode  
962 - orgId:  
963 - type: integer  
964 - description: 组织ID  
965 - required:  
966 - - orgId  
967 - orgName:  
968 - type: string  
969 - description: 组织名称  
970 - required:  
971 - - orgName  
972 - parentId:  
973 - type: integer  
974 - description: 父级ID  
975 - required:  
976 - - parentId  
977 - parentPath:  
978 - type: string  
979 - description: 父级节点路径("0,11,12,")  
980 - updatedAt:  
981 - type: string  
982 - description: 更新时间  
983 - required:  
984 - - updatedAt  
985 - description: 组织 organization  
986 - orgResponseBody:  
987 - title: orgResponseBody  
988 - type: object  
989 - properties:  
990 - companyId:  
991 - type: integer  
992 - description: 企业id  
993 - required:  
994 - - companyId  
995 - createdAt:  
996 - type: string  
997 - description: 创建时间  
998 - required:  
999 - - createdAt  
1000 - deletedAt:  
1001 - type: string  
1002 - description: 删除时间  
1003 - required:  
1004 - - deletedAt  
1005 - ext:  
1006 - $ref: '#/definitions/extResponseBody'  
1007 - isOrg:  
1008 - type: string  
1009 - required:  
1010 - - isOrg  
1011 - orgCode:  
1012 - type: string  
1013 - description: 组织编码  
1014 - required:  
1015 - - orgCode  
1016 - orgId:  
1017 - type: integer  
1018 - description: 组织ID  
1019 - required:  
1020 - - orgId  
1021 - orgName:  
1022 - type: string  
1023 - description: 组织名称  
1024 - required:  
1025 - - orgName  
1026 - parentId:  
1027 - type: integer  
1028 - description: 父级ID  
1029 - required:  
1030 - - parentId  
1031 - parentPath:  
1032 - type: string  
1033 - description: 父级节点路径("0,11,12,")  
1034 - updatedAt:  
1035 - type: string  
1036 - description: 更新时间  
1037 - required:  
1038 - - updatedAt  
1039 - description: 组织 organization  
1040 - roleRequestBody:  
1041 - title: roleRequestBody  
1042 - type: object  
1043 - properties:  
1044 - accessMenus:  
1045 - type: array  
1046 - items:  
1047 - type: integer  
1048 - format: int64  
1049 - description: 有权限的菜单  
1050 - required:  
1051 - - accessMenus  
1052 - companyId:  
1053 - type: integer  
1054 - description: 企业id  
1055 - required:  
1056 - - companyId  
1057 - createdAt:  
1058 - type: string  
1059 - description: 创建时间  
1060 - required:  
1061 - - createdAt  
1062 - desc:  
1063 - type: integer  
1064 - description: 描述  
1065 - required:  
1066 - - desc  
1067 - ext:  
1068 - $ref: '#/definitions/extRequestBody'  
1069 - orgId:  
1070 - type: integer  
1071 - description: 组织ID  
1072 - required:  
1073 - - orgId  
1074 - roleId:  
1075 - type: integer  
1076 - description: 角色ID  
1077 - required:  
1078 - - roleId  
1079 - roleName:  
1080 - type: string  
1081 - description: 角色名称  
1082 - required:  
1083 - - roleName  
1084 - updatedAt:  
1085 - type: string  
1086 - description: 更新时间  
1087 - required:  
1088 - - updatedAt  
1089 - description: 角色 (base)  
1090 - roleResponseBody:  
1091 - title: roleResponseBody  
1092 - type: object  
1093 - properties:  
1094 - accessMenus:  
1095 - type: array  
1096 - items:  
1097 - type: integer  
1098 - format: int64  
1099 - description: 有权限的菜单  
1100 - required:  
1101 - - accessMenus  
1102 - companyId:  
1103 - type: integer  
1104 - description: 企业id  
1105 - required:  
1106 - - companyId  
1107 - createdAt:  
1108 - type: string  
1109 - description: 创建时间  
1110 - required:  
1111 - - createdAt  
1112 - desc:  
1113 - type: integer  
1114 - description: 描述  
1115 - required:  
1116 - - desc  
1117 - ext:  
1118 - $ref: '#/definitions/extResponseBody'  
1119 - orgId:  
1120 - type: integer  
1121 - description: 组织ID  
1122 - required:  
1123 - - orgId  
1124 - roleId:  
1125 - type: integer  
1126 - description: 角色ID  
1127 - required:  
1128 - - roleId  
1129 - roleName:  
1130 - type: string  
1131 - description: 角色名称  
1132 - required:  
1133 - - roleName  
1134 - updatedAt:  
1135 - type: string  
1136 - description: 更新时间  
1137 - required:  
1138 - - updatedAt  
1139 - description: 角色 (base)  
1140 - usersRequestBody:  
1141 - title: usersRequestBody  
1142 - type: object  
1143 - properties:  
1144 - companyId:  
1145 - type: integer  
1146 - description: 企业id  
1147 - required:  
1148 - - companyId  
1149 - cooperationInfo:  
1150 - $ref: '#/definitions/cooperationInfoRequestBody'  
1151 - createdAt:  
1152 - type: string  
1153 - description: 创建时间  
1154 - required:  
1155 - - createdAt  
1156 - departmentId:  
1157 - type: integer  
1158 - description: 所属部门  
1159 - format: int64  
1160 - enableStatus:  
1161 - type: integer  
1162 - description: 启用状态(启用:1 禁用:2)  
1163 - format: int64  
1164 - ext:  
1165 - $ref: '#/definitions/extRequestBody'  
1166 - favoriteMenus:  
1167 - type: array  
1168 - items:  
1169 - type: string  
1170 - description: 收藏的菜单(工作台)(菜单编码列表)  
1171 - organizationId:  
1172 - type: integer  
1173 - description: 组织机构  
1174 - format: int64  
1175 - updatedAt:  
1176 - type: string  
1177 - description: 更新时间  
1178 - required:  
1179 - - updatedAt  
1180 - usersBaseId:  
1181 - type: integer  
1182 - description: 用户基础数据id  
1183 - required:  
1184 - - usersBaseId  
1185 - usersCode:  
1186 - type: string  
1187 - description: 用户编号  
1188 - required:  
1189 - - usersCode  
1190 - usersId:  
1191 - type: integer  
1192 - description: 用户编号  
1193 - required:  
1194 - - usersId  
1195 - usersOrg:  
1196 - type: array  
1197 - items:  
1198 - $ref: '#/definitions/orgRequestBody'  
1199 - description: 用户关联的组织  
1200 - usersRole:  
1201 - type: array  
1202 - items:  
1203 - $ref: '#/definitions/roleRequestBody'  
1204 - description: 用户关联的角色  
1205 - usersType:  
1206 - type: integer  
1207 - description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)  
1208 - required:  
1209 - - usersType  
1210 - description: 用户  
1211 - usersResponseBody:  
1212 - title: usersResponseBody  
1213 - type: object  
1214 - properties:  
1215 - companyId:  
1216 - type: integer  
1217 - description: 企业id  
1218 - required:  
1219 - - companyId  
1220 - cooperationInfo:  
1221 - $ref: '#/definitions/cooperationInfoResponseBody'  
1222 - createdAt:  
1223 - type: string  
1224 - description: 创建时间  
1225 - required:  
1226 - - createdAt  
1227 - departmentId:  
1228 - type: integer  
1229 - description: 所属部门  
1230 - format: int64  
1231 - enableStatus:  
1232 - type: integer  
1233 - description: 启用状态(启用:1 禁用:2)  
1234 - format: int64  
1235 - ext:  
1236 - $ref: '#/definitions/extResponseBody'  
1237 - favoriteMenus:  
1238 - type: array  
1239 - items:  
1240 - type: string  
1241 - description: 收藏的菜单(工作台)(菜单编码列表)  
1242 - organizationId:  
1243 - type: integer  
1244 - description: 组织机构  
1245 - format: int64  
1246 - updatedAt:  
1247 - type: string  
1248 - description: 更新时间  
1249 - required:  
1250 - - updatedAt  
1251 - usersBaseId:  
1252 - type: integer  
1253 - description: 用户基础数据id  
1254 - required:  
1255 - - usersBaseId  
1256 - usersCode:  
1257 - type: string  
1258 - description: 用户编号  
1259 - required:  
1260 - - usersCode  
1261 - usersId:  
1262 - type: integer  
1263 - description: 用户编号  
1264 - required:  
1265 - - usersId  
1266 - usersOrg:  
1267 - type: array  
1268 - items:  
1269 - $ref: '#/definitions/orgResponseBody'  
1270 - description: 用户关联的组织  
1271 - usersRole:  
1272 - type: array  
1273 - items:  
1274 - $ref: '#/definitions/roleResponseBody'  
1275 - description: 用户关联的角色  
1276 - usersType:  
1277 - type: integer  
1278 - description: 用户类型 1:企业内部用户(内部添加) 2:共创用户 1024:企业注册用户(注册添加)  
1279 - required:  
1280 - - usersType  
1281 - description: 用户  
@@ -16,7 +16,7 @@ metadata: @@ -16,7 +16,7 @@ metadata:
16 description: 配置的用户显示的字段,例 `["c1","c2"]`` 16 description: 配置的用户显示的字段,例 `["c1","c2"]``
17 type: 17 type:
18 array: string 18 array: string
19 - - name: usersId 19 + - name: userId
20 description: 归属的用户id 20 description: 归属的用户id
21 type: 21 type:
22 primitive: int64 22 primitive: int64
@@ -4,7 +4,7 @@ metadata: @@ -4,7 +4,7 @@ metadata:
4 name: ext 4 name: ext
5 description: 冗余附加数据 5 description: 冗余附加数据
6 attributes: 6 attributes:
7 - - ref: usersName 7 + - ref: userName
8 required: true 8 required: true
9 - ref: orgName 9 - ref: orgName
10 required: true 10 required: true
1 version: v1 1 version: v1
2 kind: Schema 2 kind: Schema
3 metadata: 3 metadata:
4 - name: users 4 + name: user
5 description: 用户 5 description: 用户
6 attributes: 6 attributes:
7 - - ref: usersId 7 + - ref: userId
8 required: true 8 required: true
9 - ref: companyId 9 - ref: companyId
10 required: true 10 required: true
11 - - ref: usersBaseId 11 + - ref: userBaseId
12 required: true 12 required: true
13 - - ref: usersType 13 + - ref: userType
14 required: true 14 required: true
15 - - ref: usersCode 15 + - ref: userCode
16 required: true 16 required: true
17 - name: organizationId 17 - name: organizationId
18 description: 组织机构 18 description: 组织机构
@@ -22,15 +22,15 @@ metadata: @@ -22,15 +22,15 @@ metadata:
22 description: 所属部门 22 description: 所属部门
23 type: 23 type:
24 primitive: int64 24 primitive: int64
25 - - name: usersInfo  
26 - description: 用户信息 (冗余,数据存在usersBase里面) 25 + - name: userInfo
  26 + description: 用户信息 (冗余,数据存在userBase里面)
27 type: 27 type:
28 - schema: usersInfo  
29 - - name: usersOrg 28 + schema: userInfo
  29 + - name: userOrg
30 description: 用户关联的组织 30 description: 用户关联的组织
31 type: 31 type:
32 array: org 32 array: org
33 - - name: usersRole 33 + - name: userRole
34 description: 用户关联的角色 34 description: 用户关联的角色
35 type: 35 type:
36 array: role 36 array: role
1 version: v1 1 version: v1
2 kind: Schema 2 kind: Schema
3 metadata: 3 metadata:
4 - name: usersBase 4 + name: userBase
5 description: 用户基础 5 description: 用户基础
6 attributes: 6 attributes:
7 - - ref: usersBaseId 7 + - ref: userBaseId
8 required: true 8 required: true
9 - - name: usersInfo 9 + - name: userInfo
10 description: 用户信息 10 description: 用户信息
11 type: 11 type:
12 - schema: usersInfo  
13 - - ref: phone 12 + schema: userInfo
  13 + - ref: account
14 required: true 14 required: true
15 - ref: password 15 - ref: password
16 required: true 16 required: true
1 version: v1 1 version: v1
2 kind: Schema 2 kind: Schema
3 metadata: 3 metadata:
4 - name: usersInfo 4 + name: userInfo
5 description: 用户信息 (base) 5 description: 用户信息 (base)
6 attributes: 6 attributes:
7 - - ref: usersName 7 + - ref: userName
8 required: true 8 required: true
9 - ref: phone 9 - ref: phone
10 required: true 10 required: true
1 version: v1 1 version: v1
2 kind: Schema 2 kind: Schema
3 metadata: 3 metadata:
4 - name: usersProfile 4 + name: userProfile
5 description: 用户概要数据 5 description: 用户概要数据
6 attributes: 6 attributes:
7 - - ref: usersId 7 + - ref: userId
8 required: true 8 required: true
9 - - ref: usersBaseId 9 + - ref: userBaseId
10 required: true 10 required: true
11 - - ref: usersName 11 + - ref: userName
12 required: true 12 required: true
13 - - ref: usersCode 13 + - ref: userCode
14 required: true 14 required: true
15 - ref: avatar 15 - ref: avatar
16 required: true 16 required: true
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: command 5 type: command
6 description: 注销账号 (添加用户时重新激活) 6 description: 注销账号 (添加用户时重新激活)
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 result: 10 result:
11 - name: code 11 - name: code
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: command 5 type: command
6 description: 修改密码 6 description: 修改密码
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 - name: oldPassword 10 - name: oldPassword
11 description: 旧密码 11 description: 旧密码
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: command 5 type: command
6 description: 重置手机号 6 description: 重置手机号
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 - name: oldPhone 10 - name: oldPhone
11 type: 11 type:
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: usersInfo 4 + name: userInfo
5 type: query 5 type: query
6 description: 用户信息 (暂时没有使用) 6 description: 用户信息 (暂时没有使用)
7 result: 7 result:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 - - ref: usersName 10 + - ref: userName
11 required: true 11 required: true
12 - ref: avatar 12 - ref: avatar
13 required: true 13 required: true
@@ -22,7 +22,7 @@ metadata: @@ -22,7 +22,7 @@ metadata:
22 type: 22 type:
23 schema: org 23 schema: org
24 required: true 24 required: true
25 - - name: usersOrgs 25 + - name: userOrgs
26 description: 用户关联的组织 26 description: 用户关联的组织
27 type: 27 type:
28 array: org 28 array: org
@@ -20,7 +20,7 @@ metadata: @@ -20,7 +20,7 @@ metadata:
20 primitive: string 20 primitive: string
21 required: true 21 required: true
22 - name: accessCode 22 - name: accessCode
23 - description: 权限编码 users:edit 23 + description: 权限编码 user:edit
24 type: 24 type:
25 primitive: string 25 primitive: string
26 required: true 26 required: true
@@ -18,7 +18,7 @@ metadata: @@ -18,7 +18,7 @@ metadata:
18 primitive: string 18 primitive: string
19 required: true 19 required: true
20 - name: accessCode 20 - name: accessCode
21 - description: 权限编码 users:edit 21 + description: 权限编码 user:edit
22 type: 22 type:
23 primitive: string 23 primitive: string
24 - name: menuType 24 - name: menuType
@@ -7,7 +7,7 @@ metadata: @@ -7,7 +7,7 @@ metadata:
7 payload: 7 payload:
8 - ref: roleId 8 - ref: roleId
9 required: true 9 required: true
10 - - name: usersIds 10 + - name: userIds
11 description: 用户列表 11 description: 用户列表
12 type: 12 type:
13 array: int64 13 array: int64
@@ -7,7 +7,7 @@ metadata: @@ -7,7 +7,7 @@ metadata:
7 payload: 7 payload:
8 - ref: roleId 8 - ref: roleId
9 required: true 9 required: true
10 - - name: usersIds 10 + - name: userIds
11 description: 用户列表 11 description: 用户列表
12 type: 12 type:
13 array: int64 13 array: int64
@@ -5,12 +5,12 @@ metadata: @@ -5,12 +5,12 @@ metadata:
5 type: command 5 type: command
6 description: 批量添加 6 description: 批量添加
7 payload: 7 payload:
8 - - ref: usersType 8 + - ref: userType
9 required: true 9 required: true
10 - - name: users 10 + - name: user
11 description: 用户列表 11 description: 用户列表
12 type: 12 type:
13 - array: users 13 + array: user
14 - ref: password 14 - ref: password
15 required: true 15 required: true
16 result: 16 result:
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: command 5 type: command
6 description: 批量修改启用状态 6 description: 批量修改启用状态
7 payload: 7 payload:
8 - - name: usersIds 8 + - name: userIds
9 type: 9 type:
10 array: int64 10 array: int64
11 required: true 11 required: true
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: command 5 type: command
6 description: 批量重置密码 6 description: 批量重置密码
7 payload: 7 payload:
8 - - name: usersIds 8 + - name: userIds
9 type: 9 type:
10 array: int64 10 array: int64
11 required: true 11 required: true
@@ -7,9 +7,9 @@ metadata: @@ -7,9 +7,9 @@ metadata:
7 payload: 7 payload:
8 - ref: companyId 8 - ref: companyId
9 required: true 9 required: true
10 - - ref: usersType 10 + - ref: userType
11 required: true 11 required: true
12 - - ref: usersCode 12 + - ref: userCode
13 required: true 13 required: true
14 - name: organizationId 14 - name: organizationId
15 description: 组织机构 15 description: 组织机构
@@ -19,11 +19,11 @@ metadata: @@ -19,11 +19,11 @@ metadata:
19 description: 所属部门 19 description: 所属部门
20 type: 20 type:
21 primitive: int64 21 primitive: int64
22 - - name: usersOrg 22 + - name: userOrg
23 description: 用户关联的组织 23 description: 用户关联的组织
24 type: 24 type:
25 array: org 25 array: org
26 - - name: usersRole 26 + - name: userRole
27 description: 用户关联的角色 27 description: 用户关联的角色
28 type: 28 type:
29 array: role 29 array: role
@@ -37,7 +37,7 @@ metadata: @@ -37,7 +37,7 @@ metadata:
37 primitive: int 37 primitive: int
38 - ref: password 38 - ref: password
39 required: true 39 required: true
40 - - ref: usersName 40 + - ref: userName
41 required: true 41 required: true
42 - ref: phone 42 - ref: phone
43 required: true 43 required: true
@@ -46,7 +46,7 @@ metadata: @@ -46,7 +46,7 @@ metadata:
46 - ref: email 46 - ref: email
47 required: true 47 required: true
48 result: 48 result:
49 - - name: users 49 + - name: user
50 type: 50 type:
51 - schema: users 51 + schema: user
52 required: true 52 required: true
@@ -7,7 +7,7 @@ metadata: @@ -7,7 +7,7 @@ metadata:
7 payload: 7 payload:
8 - ref: code 8 - ref: code
9 required: true 9 required: true
10 - - ref: usersId 10 + - ref: userId
11 required: true 11 required: true
12 result: 12 result:
13 - name: code 13 - name: code
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: query 5 type: query
6 description: 获取我收藏的菜单 6 description: 获取我收藏的菜单
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 result: 10 result:
11 - name: favoriteMenus 11 - name: favoriteMenus
@@ -5,10 +5,10 @@ metadata: @@ -5,10 +5,10 @@ metadata:
5 type: query 5 type: query
6 description: 返回 6 description: 返回
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 result: 10 result:
11 - - name: users 11 + - name: user
12 type: 12 type:
13 - schema: users 13 + schema: user
14 required: true 14 required: true
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: query 5 type: query
6 description: 返回用户有权限的菜单 6 description: 返回用户有权限的菜单
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 - name: menuCategory 10 - name: menuCategory
11 description: 菜单类别 web app 11 description: 菜单类别 web app
@@ -5,16 +5,16 @@ metadata: @@ -5,16 +5,16 @@ metadata:
5 type: query 5 type: query
6 description: 获取用户概要数据 6 description: 获取用户概要数据
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: false 9 required: false
10 - ref: phone 10 - ref: phone
11 required: false 11 required: false
12 - ref: companyId 12 - ref: companyId
13 required: false 13 required: false
14 - - ref: usersCode 14 + - ref: userCode
15 required: false 15 required: false
16 result: 16 result:
17 - - name: usersProfile 17 + - name: userProfile
18 type: 18 type:
19 - schema: usersProfile 19 + schema: userProfile
20 required: true 20 required: true
@@ -15,7 +15,7 @@ metadata: @@ -15,7 +15,7 @@ metadata:
15 required: false 15 required: false
16 - ref: departmentId 16 - ref: departmentId
17 required: false 17 required: false
18 - - ref: usersName 18 + - ref: userName
19 required: false 19 required: false
20 - ref: depName 20 - ref: depName
21 required: false 21 required: false
@@ -24,7 +24,7 @@ metadata: @@ -24,7 +24,7 @@ metadata:
24 result: 24 result:
25 - ref: count 25 - ref: count
26 required: true 26 required: true
27 - - name: users 27 + - name: user
28 type: 28 type:
29 - array: users 29 + array: user
30 required: true 30 required: true
@@ -5,10 +5,10 @@ metadata: @@ -5,10 +5,10 @@ metadata:
5 type: command 5 type: command
6 description: 移除 6 description: 移除
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 result: 10 result:
11 - - name: users 11 + - name: user
12 type: 12 type:
13 - schema: users 13 + schema: user
14 required: true 14 required: true
@@ -9,7 +9,7 @@ metadata: @@ -9,7 +9,7 @@ metadata:
9 description: 菜单编码列表 9 description: 菜单编码列表
10 type: 10 type:
11 array: string 11 array: string
12 - - ref: usersId 12 + - ref: userId
13 required: true 13 required: true
14 result: 14 result:
15 - name: code 15 - name: code
@@ -5,7 +5,7 @@ metadata: @@ -5,7 +5,7 @@ metadata:
5 type: command 5 type: command
6 description: 更新 6 description: 更新
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 - name: organizationId 10 - name: organizationId
11 description: 组织机构 11 description: 组织机构
@@ -15,11 +15,11 @@ metadata: @@ -15,11 +15,11 @@ metadata:
15 description: 所属部门 15 description: 所属部门
16 type: 16 type:
17 primitive: int64 17 primitive: int64
18 - - name: usersOrg 18 + - name: userOrg
19 description: 用户关联的组织 19 description: 用户关联的组织
20 type: 20 type:
21 array: org 21 array: org
22 - - name: usersRole 22 + - name: userRole
23 description: 用户关联的角色 23 description: 用户关联的角色
24 type: 24 type:
25 array: role 25 array: role
@@ -31,7 +31,7 @@ metadata: @@ -31,7 +31,7 @@ metadata:
31 description: 启用状态(启用:1 禁用:2) 31 description: 启用状态(启用:1 禁用:2)
32 type: 32 type:
33 primitive: int 33 primitive: int
34 - - ref: usersName 34 + - ref: userName
35 required: true 35 required: true
36 - ref: phone 36 - ref: phone
37 required: true 37 required: true
@@ -40,7 +40,7 @@ metadata: @@ -40,7 +40,7 @@ metadata:
40 - ref: email 40 - ref: email
41 required: true 41 required: true
42 result: 42 result:
43 - - name: users 43 + - name: user
44 type: 44 type:
45 - schema: users 45 + schema: user
46 required: true 46 required: true
@@ -5,9 +5,9 @@ metadata: @@ -5,9 +5,9 @@ metadata:
5 type: command 5 type: command
6 description: 更新用户基础信息数据 6 description: 更新用户基础信息数据
7 payload: 7 payload:
8 - - ref: usersId 8 + - ref: userId
9 required: true 9 required: true
10 - - ref: usersName 10 + - ref: userName
11 required: true 11 required: true
12 - ref: avatar 12 - ref: avatar
13 required: true 13 required: true
@@ -20,7 +20,7 @@ metadata: @@ -20,7 +20,7 @@ metadata:
20 required: true 20 required: true
21 - ref: msg 21 - ref: msg
22 required: true 22 required: true
23 - - name: usersProfile 23 + - name: userProfile
24 type: 24 type:
25 - schema: usersProfile 25 + schema: userProfile
26 required: true 26 required: true
1 version: v1 1 version: v1
2 kind: Service 2 kind: Service
3 metadata: 3 metadata:
4 - name: users 4 + name: user
5 description: 用户 5 description: 用户
@@ -5,10 +5,10 @@ metadata: @@ -5,10 +5,10 @@ metadata:
5 type: command 5 type: command
6 description: 创建用户基础数据 6 description: 创建用户基础数据
7 payload: 7 payload:
8 - - ref: usersBaseId 8 + - ref: userBaseId
9 required: true 9 required: true
10 result: 10 result:
11 - - name: usersBase 11 + - name: userBase
12 type: 12 type:
13 - schema: usersBase 13 + schema: userBase
14 required: true 14 required: true
@@ -5,10 +5,10 @@ metadata: @@ -5,10 +5,10 @@ metadata:
5 type: query 5 type: query
6 description: 返回用户基础数据 6 description: 返回用户基础数据
7 payload: 7 payload:
8 - - ref: usersBaseId 8 + - ref: userBaseId
9 required: true 9 required: true
10 result: 10 result:
11 - - name: usersBase 11 + - name: userBase
12 type: 12 type:
13 - schema: usersBase 13 + schema: userBase
14 required: true 14 required: true
@@ -17,7 +17,7 @@ metadata: @@ -17,7 +17,7 @@ metadata:
17 result: 17 result:
18 - ref: count 18 - ref: count
19 required: true 19 required: true
20 - - name: usersBases 20 + - name: userBases
21 type: 21 type:
22 - array: usersBase 22 + array: userBase
23 required: true 23 required: true
@@ -5,10 +5,10 @@ metadata: @@ -5,10 +5,10 @@ metadata:
5 type: command 5 type: command
6 description: 移除用户基础数据 6 description: 移除用户基础数据
7 payload: 7 payload:
8 - - ref: usersBaseId 8 + - ref: userBaseId
9 required: true 9 required: true
10 result: 10 result:
11 - - name: usersBase 11 + - name: userBase
12 type: 12 type:
13 - schema: usersBase 13 + schema: userBase
14 required: true 14 required: true
@@ -5,10 +5,10 @@ metadata: @@ -5,10 +5,10 @@ metadata:
5 type: command 5 type: command
6 description: 更新用户基础数据 6 description: 更新用户基础数据
7 payload: 7 payload:
8 - - ref: usersBaseId 8 + - ref: userBaseId
9 required: true 9 required: true
10 result: 10 result:
11 - - name: usersBase 11 + - name: userBase
12 type: 12 type:
13 - schema: usersBase 13 + schema: userBase
14 required: true 14 required: true
1 version: v1 1 version: v1
2 kind: Service 2 kind: Service
3 metadata: 3 metadata:
4 - name: usersBase 4 + name: userBase
5 description: 5 description: