作者 yangfu

共创用户

... ... @@ -39,3 +39,9 @@ metadata:
- method: updateUsersBase
route:
put: /{userId}/base-info
- method: createCooperator
route:
post: /cooperator
- method: updateCooperator
route:
put: /cooperator/{userId}
\ No newline at end of file
... ...
version: v1
kind: Attribute
metadata:
name: cooperationCompany
description: 共创公司
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: cooperationDeadline
description: 共创到期时间
type:
primitive: datetime
... ...
... ... @@ -11,7 +11,7 @@ metadata:
required: true
- ref: orgName
required: true
- name: isOrg
- ref: isOrg
required: true
- ref: parentId
required: true
... ...
... ... @@ -11,7 +11,7 @@ metadata:
required: true
- ref: orgName
required: true
- name: isOrg
- ref: isOrg
required: true
- ref: parentId
required: true
... ...
version: v1
kind: Method
metadata:
name: createCooperator
type: command
description: 创建共创用户
payload:
- ref: cooperationCompany
required: true
- ref: cooperationDeadline
required: true
- ref: email
required: true
- ref: enableStatus
required: true
- ref: userCode
required: true
- ref: userId
required: true
- ref: userName
required: true
- ref: avatar
required: true
- ref: orgId
required: true
result:
- name: user
type:
schema: user
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCooperator
type: command
description: 更新共创用户
payload:
- ref: cooperationCompany
required: true
- ref: cooperationDeadline
required: true
- ref: email
required: true
- ref: enableStatus
required: true
- ref: userCode
required: true
- ref: userId
required: true
- ref: userName
required: true
- ref: avatar
required: true
- ref: orgId
required: true
result:
- name: user
type:
schema: user
required: true
... ...