作者 yangfu

add users base

... ... @@ -24,9 +24,9 @@ metadata:
get: /{usersId}/access-menus
params:
- name: menuCategory
- method: getUsersBaseInfo
- method: getUsersProfile
route:
get: /base-info
get: /profile
params:
- name: usersId
- name: phone
... ... @@ -46,4 +46,4 @@ metadata:
put: /{usersId}/phone-auth
- method: updateUsersBase
route:
put: /{usersId}/users-base
put: /{usersId}/base-info
... ...
version: v1
kind: HttpApi
metadata:
service: usersBase
path: /users-bases
endpoints:
- method: createUsersBase
route:
post: /
- method: updateUsersBase
route:
put: /{usersBaseId}
- method: getUsersBase
route:
get: /{usersBaseId}
- method: removeUsersBase
route:
delete: /{usersBaseId}
- method: listUsersBase
route:
post: /search
params:
- name: offset
- name: limit
- name: inUsersBaseIds
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: usersCode
description: 用户编号
description: 用户编号 企业内标识
type:
primitive: string
... ...
... ... @@ -2,6 +2,6 @@ version: v1
kind: Attribute
metadata:
name: usersId
description: 用户编号
description: 用户Id 用户唯一标识
type:
primitive: int64
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: listCompanyCustomizeMenus
type: command
description: 自定义菜单列表
description: 返回自定义菜单列表
payload:
- ref: companyId
required: true
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: updateCompanyCustomizeMenus
type: command
description: 菜单维护
description: 更新自定义菜单
payload:
- ref: companyId
required: true
... ...
version: v1
kind: Method
metadata:
name: getUsersBaseInfo
name: getUsersProfile
type: query
description: 获取用户基础信息数据
description: 获取用户概要数据
payload:
- ref: usersId
required: false
- ref: phone
required: false
- ref: usersBaseId
required: false
required: false
- ref: companyId
required: false
- ref: usersCode
required: false
result:
... ...
... ... @@ -3,7 +3,7 @@ kind: Method
metadata:
name: updateUsersBase
type: command
description: 更新用户基础数据
description: 更新用户基础信息数据
payload:
- ref: usersId
required: true
... ...
version: v1
kind: Method
metadata:
name: createUsersBase
type: command
description: 创建
payload:
- name: name
description: 用户信息
type:
primitive: string
- name: phoneAuth
description: 手机认证
type:
schemal: phoneAuth
result:
- name: usersBase
type:
schema: usersBase
required: true
... ...
version: v1
kind: Method
metadata:
name: getUsersBase
type: query
description: 返回
payload:
- ref: usersBaseId
required: true
result:
- name: usersBase
type:
schema: usersBase
required: true
... ...
version: v1
kind: Method
metadata:
name: listUsersBase
type: query
description: 返回列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- name: inUsersBaseIds
description: 匹配用户基础数据
type:
array: int64
required: true
result:
- ref: count
required: true
- name: usersBases
type:
array: usersBase
required: true
... ...
version: v1
kind: Method
metadata:
name: removeUsersBase
type: command
description: 移除
payload:
- ref: usersBaseId
required: true
result:
- name: usersBase
type:
schema: usersBase
required: true
... ...
version: v1
kind: Method
metadata:
name: updateUsersBase
type: command
description: 更新
payload:
- ref: usersBaseId
required: true
result:
- name: usersBase
type:
schema: usersBase
required: true
... ...
version: v1
kind: Service
metadata:
name: usersBase
description: 用户基础数据
\ No newline at end of file
... ...