正在显示
18 个修改的文件
包含
261 行增加
和
14 行删除
@@ -4,21 +4,39 @@ metadata: | @@ -4,21 +4,39 @@ metadata: | ||
4 | service: users | 4 | service: users |
5 | path: /users | 5 | path: /users |
6 | endpoints: | 6 | endpoints: |
7 | - - method: adddCompanyUsers | 7 | + - method: companyUserAdd |
8 | route: | 8 | route: |
9 | post: /company-user | 9 | post: /company-user |
10 | - - method: updateCompanyUsers | 10 | + - method: companyUserUpdate |
11 | route: | 11 | route: |
12 | put: /company-user | 12 | put: /company-user |
13 | - - method: listCompanyUsers | 13 | + - method: companyUserList |
14 | route: | 14 | route: |
15 | post: /company-user/search | 15 | post: /company-user/search |
16 | - - method: getCompanyUsers | 16 | + - method: companyUserGet |
17 | route: | 17 | route: |
18 | get: /company-user/{Id} | 18 | get: /company-user/{Id} |
19 | - - method: enableCompanyUsers | 19 | + - method: companyUserEnable |
20 | route: | 20 | route: |
21 | put: /company-user/enable | 21 | put: /company-user/enable |
22 | - method: companyUserResetPassword | 22 | - method: companyUserResetPassword |
23 | route: | 23 | route: |
24 | put: /company-user/reset-password | 24 | put: /company-user/reset-password |
25 | + - method: cooperationUserAdd | ||
26 | + route: | ||
27 | + post: /cooperation-user | ||
28 | + - method: cooperationUserUpdate | ||
29 | + route: | ||
30 | + put: /cooperation-user | ||
31 | + - method: cooperationUserList | ||
32 | + route: | ||
33 | + post: /cooperation-user/search | ||
34 | + - method: cooperationUserGet | ||
35 | + route: | ||
36 | + get: /cooperation-user/{Id} | ||
37 | + - method: cooperationUserEnable | ||
38 | + route: | ||
39 | + put: /cooperation-user/enable | ||
40 | + - method: cooperationUserResetPassword | ||
41 | + route: | ||
42 | + put: /cooperation-user/reset-password |
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: companyUser | ||
5 | + description: web页面上公司用户数据展示 | ||
6 | + attributes: | ||
7 | + - name: usersId | ||
8 | + description: 用户的id | ||
9 | + type: | ||
10 | + primitive: int64 | ||
11 | + - name: usersCode | ||
12 | + description: 用户编号 | ||
13 | + type: | ||
14 | + primitive: string | ||
15 | + - name: usersName | ||
16 | + description: 用户名称 | ||
17 | + type: | ||
18 | + primitive: string | ||
19 | + - name: organizationId | ||
20 | + description: 组织机构id | ||
21 | + type: | ||
22 | + primitive: int64 | ||
23 | + - name: departmentId | ||
24 | + description: 部门id | ||
25 | + type: | ||
26 | + primitive: int64 | ||
27 | + - name: enableStatus | ||
28 | + description: 启用状态(启用:1 禁用:2) | ||
29 | + type: | ||
30 | + primitive: int | ||
31 | + - name: phone | ||
32 | + description: 手机号 | ||
33 | + type: | ||
34 | + primitive: string | ||
35 | + - name: email | ||
36 | + description: 邮箱 | ||
37 | + type: | ||
38 | + primitive: string | ||
39 | + - name: usersOrg | ||
40 | + description: 关联的组织机构 | ||
41 | + type: | ||
42 | + array: org | ||
43 | + - name: usersRole | ||
44 | + description: 关联的组织结构 | ||
45 | + type: | ||
46 | + array: role | ||
47 | + - name: avator | ||
48 | + description: 头像 | ||
49 | + type: | ||
50 | + primitive: string |
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: companyUserListItem | ||
5 | + description: 用户列表 | ||
6 | + attributes: | ||
7 | + - ref: usersId | ||
8 | + required: true | ||
9 | + - ref: usersCode | ||
10 | + required: true | ||
11 | + - name: phone | ||
12 | + description: 手机号 | ||
13 | + type: | ||
14 | + primitive: string | ||
15 | + - name: departmentName | ||
16 | + description: 部门名称 | ||
17 | + type: | ||
18 | + primitive: string | ||
19 | + - name: orgName | ||
20 | + description: 组织名称 | ||
21 | + type: | ||
22 | + primitive: string | ||
23 | + - name: enableStatus | ||
24 | + description: 启用状态(启用:1 禁用:2) | ||
25 | + type: | ||
26 | + primitive: int | ||
27 | + - name: enableStatusMsg | ||
28 | + description: 启用状态名称 | ||
29 | + type: | ||
30 | + primitive: string |
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: cooperationInfo | ||
5 | + description: 共创信息 | ||
6 | + attributes: | ||
7 | + - name: cooperationCompany | ||
8 | + description: 共创公司 | ||
9 | + type: | ||
10 | + primitive: string | ||
11 | + - name: cooperationDeadline | ||
12 | + description: 共创到期时间 (yyyy-MM-dd) | ||
13 | + type: | ||
14 | + primitive: datetime |
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: cooperationUser | ||
5 | + description: web页面上共创用户数据展示 | ||
6 | + attributes: | ||
7 | + - name: usersId | ||
8 | + description: 用户的id | ||
9 | + type: | ||
10 | + primitive: int64 | ||
11 | + - name: usersCode | ||
12 | + description: 用户编号 | ||
13 | + type: | ||
14 | + primitive: string | ||
15 | + - name: usersName | ||
16 | + description: 用户名称 | ||
17 | + type: | ||
18 | + primitive: string | ||
19 | + - name: cooperationCompany | ||
20 | + description: 共创公司 | ||
21 | + type: | ||
22 | + primitive: string | ||
23 | + - name: cooperationDeadline | ||
24 | + description: 共创到期时间 (yyyy-MM-dd) | ||
25 | + type: | ||
26 | + primitive: datetime | ||
27 | + - name: enableStatus | ||
28 | + description: 启用状态(启用:1 禁用:2) | ||
29 | + type: | ||
30 | + primitive: int | ||
31 | + - name: email | ||
32 | + description: 邮箱 | ||
33 | + type: | ||
34 | + primitive: string |
@@ -9,7 +9,7 @@ metadata: | @@ -9,7 +9,7 @@ metadata: | ||
9 | type: | 9 | type: |
10 | primitive: string | 10 | primitive: string |
11 | - name: platform | 11 | - name: platform |
12 | - description: 对应平台,[web,mobile] | 12 | + description: 对应平台 |
13 | type: | 13 | type: |
14 | primitive: string | 14 | primitive: string |
15 | - name: companyId | 15 | - name: companyId |
1 | version: v1 | 1 | version: v1 |
2 | kind: Method | 2 | kind: Method |
3 | metadata: | 3 | metadata: |
4 | - name: getCompanyUsers | 4 | + name: companyUserGet |
5 | type: query | 5 | type: query |
6 | description: 获取公司用户信息 | 6 | description: 获取公司用户信息 |
7 | payload: | 7 | payload: |
8 | - ref: usersId | 8 | - ref: usersId |
9 | required: true | 9 | required: true |
10 | result: | 10 | result: |
11 | + - name: usersId | ||
12 | + description: 用户id | ||
13 | + type: | ||
14 | + primitive: int64 | ||
11 | - name: usersCode | 15 | - name: usersCode |
12 | description: 用户编号 | 16 | description: 用户编号 |
13 | type: | 17 | type: |
1 | version: v1 | 1 | version: v1 |
2 | kind: Method | 2 | kind: Method |
3 | metadata: | 3 | metadata: |
4 | - name: listCompanyUsers | 4 | + name: companyUserList |
5 | type: query | 5 | type: query |
6 | description: 返回公司用户信息列表 | 6 | description: 返回公司用户信息列表 |
7 | payload: | 7 | payload: |
@@ -14,5 +14,5 @@ metadata: | @@ -14,5 +14,5 @@ metadata: | ||
14 | required: true | 14 | required: true |
15 | - name: userList | 15 | - name: userList |
16 | type: | 16 | type: |
17 | - array: userListItem | 17 | + array: companyUserListItem |
18 | required: true | 18 | required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: cooperationUserAdd | ||
5 | + type: command | ||
6 | + description: 创建共创用户信息 | ||
7 | + payload: | ||
8 | + - name: userinfo | ||
9 | + description: 共创用户信息 | ||
10 | + type: | ||
11 | + schema: cooperationUser | ||
12 | + result: | ||
13 | + - name: usersId | ||
14 | + type: | ||
15 | + primitive: int64 | ||
16 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: cooperationUserEnable | ||
5 | + type: command | ||
6 | + description: 启用禁用用户信息 | ||
7 | + payload: | ||
8 | + - name: usersIds | ||
9 | + type: | ||
10 | + array: int64 | ||
11 | + - name: enableStatus | ||
12 | + description: 启用状态(启用:1 禁用:2) | ||
13 | + type: | ||
14 | + primitive: int | ||
15 | + result: | ||
16 | + - name: users | ||
17 | + type: | ||
18 | + schema: users | ||
19 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: cooperationUserUpdate | ||
5 | + type: command | ||
6 | + description: 编辑共创用户信息 | ||
7 | + payload: | ||
8 | + - name: userinfo | ||
9 | + description: 共创用户信息 | ||
10 | + type: | ||
11 | + schema: cooperationUser | ||
12 | + result: | ||
13 | + - name: usersId | ||
14 | + type: | ||
15 | + primitive: int64 | ||
16 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: cooperationUsersList | ||
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: userList | ||
16 | + type: | ||
17 | + array: cooperationUser | ||
18 | + required: true |
-
请 注册 或 登录 后发表评论