作者 yangfu

列表搜索调整为post 加后缀search

... ... @@ -18,10 +18,7 @@ metadata:
delete: /{companyId}
- method: listCompany
route:
get: /
params:
- name: offset
- name: limit
post: /search
- method: listCompanyCustomizeMenus
route:
get: /{companyId}/customize-menus/
... ...
... ... @@ -18,7 +18,4 @@ metadata:
delete: /{menuId}
- method: listMenu
route:
get: /
params:
- name: offset
- name: limit
post: /search
... ...
... ... @@ -18,15 +18,7 @@ metadata:
delete: /{orgId}
- method: listOrg
route:
get: /
params:
- name: offset
- name: limit
- name: companyId
- name: orgCode
- name: depName
- name: parentId
- name: isOrg
post: /search
- method: getOrgSubDepartment
route:
get: /{orgId}/sub-department
... ...
... ... @@ -18,14 +18,7 @@ metadata:
delete: /{roleId}
- method: listRole
route:
get: /
params:
- name: offset
- name: limit
- name: roleName
- name: orgName
- name: orgId
- name: inOrgIds
post: /search
- method: getRoleRelatedUsers
route:
get: /{roleId}/related-users
... ...
... ... @@ -18,19 +18,11 @@ metadata:
delete: /{usersId}
- method: listUsers
route:
get: /
params:
- name: offset
- name: limit
- name: companyId
- name: orgId
- name: usersName
- name: depName
get: /search
- method: getUsersAccessMenus
route:
get: /access-menus
get: /{usersId}/access-menus
params:
- name: usersId
- name: menuCategory
- method: getUsersBaseInfo
route:
... ... @@ -39,6 +31,7 @@ metadata:
- name: usersId
- name: phone
- name: usersBaseId
- name: usersCode
- method: batchAdd
route:
post: /batch-add
... ... @@ -51,3 +44,6 @@ metadata:
- method: updateUsersPhoneAuth
route:
put: /{usersId}/phone-auth
- method: updateUsersBase
route:
put: /{usersId}/users-base
... ...
... ... @@ -16,10 +16,10 @@ metadata:
- ref: orgId
required: false
- name: inOrgIds
description: 匹配多个组织 1,2,3 逗号分割 inOrgIds
description: 匹配多个组织
required: false
type:
primitive: string
array: int64
result:
- ref: count
required: true
... ...
version: v1
kind: Method
metadata:
name: updateUsersBase
type: command
description: 更新用户基础数据
payload:
- ref: usersId
required: true
- ref: usersCode
required: true
- ref: usersName
required: true
- ref: avator
required: true
result:
- ref: code
required: true
- ref: msg
required: true
- name: users
type:
schema: users
required: true
... ...