作者 yangfu

user v1.0

@@ -19,9 +19,9 @@ metadata: @@ -19,9 +19,9 @@ metadata:
19 - method: phoneAuthResetPhone 19 - method: phoneAuthResetPhone
20 route: 20 route:
21 post: /reset-phone 21 post: /reset-phone
22 - - method: destoryAccount 22 + - method: destroyAccount
23 route: 23 route:
24 - post: /destory-account 24 + post: /destroy-account
25 - method: userInfo 25 - method: userInfo
26 route: 26 route:
27 post: /userInfo 27 post: /userInfo
@@ -2,7 +2,7 @@ version: v1 @@ -2,7 +2,7 @@ version: v1
2 kind: HttpApi 2 kind: HttpApi
3 metadata: 3 metadata:
4 service: company 4 service: company
5 - path: /companys 5 + path: /company
6 endpoints: 6 endpoints:
7 - method: createCompany 7 - method: createCompany
8 route: 8 route:
@@ -2,7 +2,7 @@ version: v1 @@ -2,7 +2,7 @@ version: v1
2 kind: HttpApi 2 kind: HttpApi
3 metadata: 3 metadata:
4 service: menu 4 service: menu
5 - path: /menus 5 + path: /menu
6 endpoints: 6 endpoints:
7 - method: createMenu 7 - method: createMenu
8 route: 8 route:
@@ -2,7 +2,7 @@ version: v1 @@ -2,7 +2,7 @@ version: v1
2 kind: HttpApi 2 kind: HttpApi
3 metadata: 3 metadata:
4 service: org 4 service: org
5 - path: /orgs 5 + path: /org
6 endpoints: 6 endpoints:
7 - method: createOrg 7 - method: createOrg
8 route: 8 route:
@@ -2,7 +2,7 @@ version: v1 @@ -2,7 +2,7 @@ version: v1
2 kind: HttpApi 2 kind: HttpApi
3 metadata: 3 metadata:
4 service: role 4 service: role
5 - path: /roles 5 + path: /role
6 endpoints: 6 endpoints:
7 - method: createRole 7 - method: createRole
8 route: 8 route:
@@ -36,7 +36,7 @@ metadata: @@ -36,7 +36,7 @@ metadata:
36 put: /{roleId}/access-menus 36 put: /{roleId}/access-menus
37 - method: assginRoleToUsers 37 - method: assginRoleToUsers
38 route: 38 route:
39 - post: /assgin 39 + post: /assign
40 - method: unAssginRoleToUsers 40 - method: unAssginRoleToUsers
41 route: 41 route:
42 - post: /unassgin  
  42 + post: /unassign
@@ -4,27 +4,27 @@ metadata: @@ -4,27 +4,27 @@ metadata:
4 service: user 4 service: user
5 path: /user 5 path: /user
6 endpoints: 6 endpoints:
7 - - method: createUsers 7 + - method: createUser
8 route: 8 route:
9 post: / 9 post: /
10 - - method: updateUsers 10 + - method: updateUser
11 route: 11 route:
12 put: /{userId} 12 put: /{userId}
13 - - method: getUsers 13 + - method: getUser
14 route: 14 route:
15 get: /{userId} 15 get: /{userId}
16 - - method: removeUsers 16 + - method: removeUser
17 route: 17 route:
18 delete: /{userId} 18 delete: /{userId}
19 - - method: listUsers 19 + - method: listUser
20 route: 20 route:
21 post: /search 21 post: /search
22 - - method: getUsersAccessMenus 22 + - method: getUserAccessMenus
23 route: 23 route:
24 get: /{userId}/access-menus 24 get: /{userId}/access-menus
25 params: 25 params:
26 - name: menuCategory 26 - name: menuCategory
27 - - method: getUsersProfile 27 + - method: getUserProfile
28 route: 28 route:
29 get: /{userId}/profile 29 get: /{userId}/profile
30 - method: batchAdd 30 - method: batchAdd
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: destoryAccount 4 + name: destroyAccount
5 type: command 5 type: command
6 description: 注销账号 (添加用户时重新激活) 6 description: 注销账号 (添加用户时重新激活)
7 payload: 7 payload:
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: createUsers 4 + name: createUser
5 type: command 5 type: command
6 description: 创建 6 description: 创建
7 payload: 7 payload:
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: getUsers 4 + name: getUser
5 type: query 5 type: query
6 description: 返回 6 description: 返回
7 payload: 7 payload:
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: getUsersAccessMenus 4 + name: getUserAccessMenus
5 type: query 5 type: query
6 description: 返回用户有权限的菜单 6 description: 返回用户有权限的菜单
7 payload: 7 payload:
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: getUsersProfile 4 + name: getUserProfile
5 type: query 5 type: query
6 description: 获取用户概要数据 6 description: 获取用户概要数据
7 payload: 7 payload:
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: listUsers 4 + name: listUser
5 type: query 5 type: query
6 description: 返回列表 6 description: 返回列表
7 payload: 7 payload:
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: removeUsers 4 + name: removeUser
5 type: command 5 type: command
6 description: 移除 6 description: 移除
7 payload: 7 payload:
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: updateUsers 4 + name: updateUser
5 type: command 5 type: command
6 description: 更新 6 description: 更新
7 payload: 7 payload: