作者 tangxuhui
正在显示 20 个修改的文件 包含 89 行增加319 行删除
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: usersBaseId
  5 + description: 用户基础数据id
  6 + type:
  7 + primitive: int64
@@ -2,22 +2,50 @@ version: v1 @@ -2,22 +2,50 @@ version: v1
2 kind: Schema 2 kind: Schema
3 metadata: 3 metadata:
4 name: users 4 name: users
5 - description: 用户(base) 5 + description: 用户
6 attributes: 6 attributes:
7 - ref: usersId 7 - ref: usersId
8 required: true 8 required: true
9 - - name: usersInfo  
10 - description: 用户信息 9 + - ref: companyId
  10 + required: true
  11 + - ref: usersBaseId
  12 + required: true
  13 + - ref: usersType
  14 + required: true
  15 + - ref: usersCode
  16 + required: true
  17 + - name: organizationId
  18 + description: 组织机构
  19 + type:
  20 + primitive: int64
  21 + - name: departmentId
  22 + description: 所属部门
  23 + type:
  24 + primitive: int64
  25 + - name: usersOrg
  26 + description: 用户关联的组织
  27 + type:
  28 + array: org
  29 + - name: usersRole
  30 + description: 用户关联的角色
  31 + type:
  32 + array: role
  33 + - name: favoriteMenus
  34 + description: 收藏的菜单(工作台)(菜单编码列表)
  35 + type:
  36 + array: string
  37 + - name: cooperationInfo
  38 + description: 共创信息 (共创用户有效)
11 type: 39 type:
12 - schema: usersInfo  
13 - - name: phoneAuth  
14 - description: 手机认证 40 + schema: cooperationInfo
  41 + - name: enableStatus
  42 + description: 启用状态(启用:1 禁用:2)
15 type: 43 type:
16 - schemal: phoneAuth  
17 - - name: im  
18 - description: IM信息 44 + primitive: int
  45 + - name: ext
  46 + description: 扩展数据
19 type: 47 type:
20 - schemal: im 48 + schema: ext
21 - ref: createAt 49 - ref: createAt
22 required: true 50 required: true
23 - ref: updateAt 51 - ref: updateAt
1 version: v1 1 version: v1
2 -kind: Method 2 +kind: Schema
3 metadata: 3 metadata:
4 - name: createUsers  
5 - type: command  
6 - description: 创建用户信息  
7 - payload:  
8 - - ref: usersId 4 + name: usersBase
  5 + description: 用户(base)
  6 + attributes:
  7 + - ref: usersBaseId
9 required: true 8 required: true
10 - name: usersInfo 9 - name: usersInfo
11 description: 用户信息 10 description: 用户信息
@@ -19,8 +18,11 @@ metadata: @@ -19,8 +18,11 @@ metadata:
19 description: IM信息 18 description: IM信息
20 type: 19 type:
21 schemal: im 20 schemal: im
22 - result:  
23 - - name: users 21 + - name: relatedUsers
  22 + description: 关联的用户 (冗余)
24 type: 23 type:
25 - schema: users 24 + array: int64
  25 + - ref: createAt
  26 + required: true
  27 + - ref: updateAt
26 required: true 28 required: true
1 -version: v1  
2 -kind: Schema  
3 -metadata:  
4 - name: usersCompany  
5 - description: 用户 (base)  
6 - attributes:  
7 - - ref: usersCompanyId  
8 - required: true  
9 - - ref: companyId  
10 - required: true  
11 - - ref: usersId  
12 - required: true  
13 - - ref: usersType  
14 - required: true  
15 - - ref: usersCode  
16 - required: true  
17 - - name: organizationId  
18 - description: 组织机构  
19 - type:  
20 - primitive: int64  
21 - - name: departmentId  
22 - description: 所属部门  
23 - type:  
24 - primitive: int64  
25 - - name: usersOrg  
26 - description: 用户关联的组织  
27 - type:  
28 - array: int64  
29 - - name: usersRole  
30 - description: 用户关联的角色  
31 - type:  
32 - array: int64  
33 - - name: favoriteMenus  
34 - description: 收藏的菜单(工作台)(菜单编码列表)  
35 - type:  
36 - array: string  
37 - - name: cooperationInfo  
38 - description: 共创信息 (共创用户有效)  
39 - type:  
40 - schema: cooperationInfo  
41 - - name: enableStatus  
42 - description: 启用状态(启用:1 禁用:2)  
43 - type:  
44 - primitive: int  
45 - - name: ext  
46 - description: 扩展数据  
47 - type:  
48 - schema: ext  
49 - - ref: createAt  
50 - required: true  
51 - - ref: updateAt  
52 - required: true  
@@ -10,9 +10,13 @@ metadata: @@ -10,9 +10,13 @@ metadata:
10 - name: users 10 - name: users
11 description: 用户列表 11 description: 用户列表
12 type: 12 type:
13 - array: usersCompany 13 + array: users
14 result: 14 result:
15 - - name: count 15 + - name: code
16 type: 16 type:
17 primitive: int 17 primitive: int
18 required: true 18 required: true
  19 + - name: msg
  20 + type:
  21 + primitive: string
  22 + required: true
@@ -5,14 +5,18 @@ metadata: @@ -5,14 +5,18 @@ metadata:
5 type: command 5 type: command
6 description: 批量修改启用状态 6 description: 批量修改启用状态
7 payload: 7 payload:
8 - - name: usersCompanyIds 8 + - name: usersIds
9 type: 9 type:
10 array: int64 10 array: int64
11 required: true 11 required: true
12 - ref: enableStatus 12 - ref: enableStatus
13 required: true 13 required: true
14 result: 14 result:
15 - - name: usersCompany 15 + - name: code
16 type: 16 type:
17 - schema: usersCompany 17 + primitive: int
  18 + required: true
  19 + - name: msg
  20 + type:
  21 + primitive: string
18 required: true 22 required: true
@@ -5,14 +5,18 @@ metadata: @@ -5,14 +5,18 @@ metadata:
5 type: command 5 type: command
6 description: 批量重置密码 6 description: 批量重置密码
7 payload: 7 payload:
8 - - name: usersCompanyIds 8 + - name: usersIds
9 type: 9 type:
10 array: int64 10 array: int64
11 required: true 11 required: true
12 - ref: password 12 - ref: password
13 required: true 13 required: true
14 result: 14 result:
15 - - name: usersCompany 15 + - name: code
16 type: 16 type:
17 - schema: usersCompany 17 + primitive: int
  18 + required: true
  19 + - name: msg
  20 + type:
  21 + primitive: string
18 required: true 22 required: true
@@ -5,14 +5,16 @@ metadata: @@ -5,14 +5,16 @@ metadata:
5 type: command 5 type: command
6 description: 密码检查 6 description: 密码检查
7 payload: 7 payload:
8 - - ref: usersId  
9 - required: true  
10 - ref: phone 8 - ref: phone
11 required: true 9 required: true
12 - ref: password 10 - ref: password
13 required: true 11 required: true
14 result: 12 result:
15 - - name: users 13 + - name: code
  14 + type:
  15 + primitive: int
  16 + required: true
  17 + - name: msg
16 type: 18 type:
17 - schema: users 19 + primitive: string
18 required: true 20 required: true
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getUsers  
5 - type: query  
6 - description: 返回用户信息  
7 - payload:  
8 - - ref: usersId  
9 - required: true  
10 - result:  
11 - - name: users  
12 - type:  
13 - schema: users  
14 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listUsers  
5 - type: query  
6 - description: 返回用户信息列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - result:  
13 - - ref: count  
14 - required: true  
15 - - name: users  
16 - type:  
17 - array: users  
18 - required: true  
@@ -12,7 +12,11 @@ metadata: @@ -12,7 +12,11 @@ metadata:
12 - ref: password 12 - ref: password
13 required: true 13 required: true
14 result: 14 result:
15 - - name: users 15 + - name: code
16 type: 16 type:
17 - schema: users 17 + primitive: int
  18 + required: true
  19 + - name: msg
  20 + type:
  21 + primitive: string
18 required: true 22 required: true
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeUsers  
5 - type: command  
6 - description: 移除用户信息  
7 - payload:  
8 - - ref: usersId  
9 - required: true  
10 - result:  
11 - - name: users  
12 - type:  
13 - schema: users  
14 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateUsers  
5 - type: command  
6 - description: 更新用户信息  
7 - payload:  
8 - - ref: usersId  
9 - required: true  
10 - - name: usersInfo  
11 - description: 用户信息  
12 - type:  
13 - schema: usersInfo  
14 - - name: phoneAuth  
15 - description: 手机认证  
16 - type:  
17 - schemal: phoneAuth  
18 - - name: im  
19 - description: IM信息  
20 - type:  
21 - schemal: im  
22 - result:  
23 - - name: users  
24 - type:  
25 - schema: users  
26 - required: true  
@@ -2,4 +2,4 @@ version: v1 @@ -2,4 +2,4 @@ version: v1
2 kind: Service 2 kind: Service
3 metadata: 3 metadata:
4 name: users 4 name: users
5 - description: 用户信息 5 + description: 用户管理
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: createUsersCompany  
5 - type: command  
6 - description: 创建企业用户管理  
7 - payload:  
8 - - ref: companyId  
9 - required: true  
10 - - ref: usersType  
11 - required: true  
12 - - ref: usersCode  
13 - required: true  
14 - - name: organizationId  
15 - description: 组织机构  
16 - type:  
17 - primitive: int64  
18 - required: true  
19 - - name: departmentId  
20 - description: 所属部门  
21 - type:  
22 - primitive: int64  
23 - required: true  
24 - - name: usersOrg  
25 - description: 用户关联的组织  
26 - type:  
27 - array: int64  
28 - required: false  
29 - - name: usersRole  
30 - description: 用户关联的角色  
31 - type:  
32 - array: int64  
33 - required: false  
34 - - name: cooperationInfo  
35 - description: 共创信息 (共创用户有效)  
36 - type:  
37 - schema: cooperationInfo  
38 - required: false  
39 - - ref: enableStatus  
40 - required: true  
41 - - ref: usersName  
42 - required: true  
43 - - ref: phone  
44 - required: true  
45 - - ref: avator  
46 - required: false  
47 - - ref: email  
48 - required: false  
49 - result:  
50 - - name: usersCompany  
51 - type:  
52 - schema: usersCompany  
53 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: getUsersCompany  
5 - type: query  
6 - description: 返回企业用户管理  
7 - payload:  
8 - - ref: usersCompanyId  
9 - required: true  
10 - result:  
11 - - name: usersCompany  
12 - type:  
13 - schema: usersCompany  
14 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: listUsersCompany  
5 - type: query  
6 - description: 返回企业用户管理列表  
7 - payload:  
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true  
12 - - ref: userName  
13 - required: false  
14 - - ref: depName  
15 - required: false  
16 - - name: cooperationCompany  
17 - type:  
18 - primitive: string  
19 - required: false  
20 - result:  
21 - - ref: count  
22 - required: true  
23 - - name: usersCompanys  
24 - type:  
25 - array: usersCompany  
26 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: removeUsersCompany  
5 - type: command  
6 - description: 移除企业用户管理  
7 - payload:  
8 - - ref: usersCompanyId  
9 - required: true  
10 - result:  
11 - - name: usersCompany  
12 - type:  
13 - schema: usersCompany  
14 - required: true  
1 -version: v1  
2 -kind: Method  
3 -metadata:  
4 - name: updateUsersCompany  
5 - type: command  
6 - description: 更新企业用户管理  
7 - payload:  
8 - - ref: usersCompanyId  
9 - required: true  
10 - - name: organizationId  
11 - description: 组织机构  
12 - type:  
13 - primitive: int64  
14 - required: true  
15 - - name: departmentId  
16 - description: 所属部门  
17 - type:  
18 - primitive: int64  
19 - required: true  
20 - - name: usersOrg  
21 - description: 用户关联的组织  
22 - type:  
23 - array: int64  
24 - required: false  
25 - - name: usersRole  
26 - description: 用户关联的角色  
27 - type:  
28 - array: int64  
29 - required: false  
30 - - name: cooperationInfo  
31 - description: 共创信息 (共创用户有效)  
32 - type:  
33 - schema: cooperationInfo  
34 - required: false  
35 - - ref: enableStatus  
36 - required: true  
37 - - ref: usersName  
38 - required: true  
39 - - ref: phone  
40 - required: true  
41 - - ref: avator  
42 - required: false  
43 - - ref: email  
44 - required: false  
45 - result:  
46 - - name: usersCompany  
47 - type:  
48 - schema: usersCompany  
49 - required: true  
1 -version: v1  
2 -kind: Service  
3 -metadata:  
4 - name: usersCompany  
5 - description: 企业用户管理