作者 yangfu

user v1.0

... ... @@ -19,9 +19,9 @@ metadata:
- method: phoneAuthResetPhone
route:
post: /reset-phone
- method: destoryAccount
- method: destroyAccount
route:
post: /destory-account
post: /destroy-account
- method: userInfo
route:
post: /userInfo
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: company
path: /companys
path: /company
endpoints:
- method: createCompany
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: menu
path: /menus
path: /menu
endpoints:
- method: createMenu
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: org
path: /orgs
path: /org
endpoints:
- method: createOrg
route:
... ...
... ... @@ -2,7 +2,7 @@ version: v1
kind: HttpApi
metadata:
service: role
path: /roles
path: /role
endpoints:
- method: createRole
route:
... ... @@ -36,7 +36,7 @@ metadata:
put: /{roleId}/access-menus
- method: assginRoleToUsers
route:
post: /assgin
post: /assign
- method: unAssginRoleToUsers
route:
post: /unassgin
\ No newline at end of file
post: /unassign
\ No newline at end of file
... ...
... ... @@ -4,27 +4,27 @@ metadata:
service: user
path: /user
endpoints:
- method: createUsers
- method: createUser
route:
post: /
- method: updateUsers
- method: updateUser
route:
put: /{userId}
- method: getUsers
- method: getUser
route:
get: /{userId}
- method: removeUsers
- method: removeUser
route:
delete: /{userId}
- method: listUsers
- method: listUser
route:
post: /search
- method: getUsersAccessMenus
- method: getUserAccessMenus
route:
get: /{userId}/access-menus
params:
- name: menuCategory
- method: getUsersProfile
- method: getUserProfile
route:
get: /{userId}/profile
- method: batchAdd
... ... @@ -44,4 +44,4 @@ metadata:
post: /cooperator
- method: updateCooperator
route:
put: /cooperator/{userId}
\ No newline at end of file
put: /cooperator/{userId}
\ No newline at end of file
... ...
version: v1
kind: Method
metadata:
name: destoryAccount
name: destroyAccount
type: command
description: 注销账号 (添加用户时重新激活)
payload:
... ...
version: v1
kind: Method
metadata:
name: createUsers
name: createUser
type: command
description: 创建
payload:
... ...
version: v1
kind: Method
metadata:
name: getUsers
name: getUser
type: query
description: 返回
payload:
... ...
version: v1
kind: Method
metadata:
name: getUsersAccessMenus
name: getUserAccessMenus
type: query
description: 返回用户有权限的菜单
payload:
... ...
version: v1
kind: Method
metadata:
name: getUsersProfile
name: getUserProfile
type: query
description: 获取用户概要数据
payload:
... ...
version: v1
kind: Method
metadata:
name: listUsers
name: listUser
type: query
description: 返回列表
payload:
... ...
version: v1
kind: Method
metadata:
name: removeUsers
name: removeUser
type: command
description: 移除
payload:
... ...
version: v1
kind: Method
metadata:
name: updateUsers
name: updateUser
type: command
description: 更新
payload:
... ...