作者 yangfu

共创用户

@@ -39,3 +39,9 @@ metadata: @@ -39,3 +39,9 @@ metadata:
39 - method: updateUsersBase 39 - method: updateUsersBase
40 route: 40 route:
41 put: /{userId}/base-info 41 put: /{userId}/base-info
  42 + - method: createCooperator
  43 + route:
  44 + post: /cooperator
  45 + - method: updateCooperator
  46 + route:
  47 + put: /cooperator/{userId}
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationCompany
  5 + description: 共创公司
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: cooperationDeadline
  5 + description: 共创到期时间
  6 + type:
  7 + primitive: datetime
@@ -11,7 +11,7 @@ metadata: @@ -11,7 +11,7 @@ metadata:
11 required: true 11 required: true
12 - ref: orgName 12 - ref: orgName
13 required: true 13 required: true
14 - - name: isOrg 14 + - ref: isOrg
15 required: true 15 required: true
16 - ref: parentId 16 - ref: parentId
17 required: true 17 required: true
@@ -11,7 +11,7 @@ metadata: @@ -11,7 +11,7 @@ metadata:
11 required: true 11 required: true
12 - ref: orgName 12 - ref: orgName
13 required: true 13 required: true
14 - - name: isOrg 14 + - ref: isOrg
15 required: true 15 required: true
16 - ref: parentId 16 - ref: parentId
17 required: true 17 required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createCooperator
  5 + type: command
  6 + description: 创建共创用户
  7 + payload:
  8 + - ref: cooperationCompany
  9 + required: true
  10 + - ref: cooperationDeadline
  11 + required: true
  12 + - ref: email
  13 + required: true
  14 + - ref: enableStatus
  15 + required: true
  16 + - ref: userCode
  17 + required: true
  18 + - ref: userId
  19 + required: true
  20 + - ref: userName
  21 + required: true
  22 + - ref: avatar
  23 + required: true
  24 + - ref: orgId
  25 + required: true
  26 + result:
  27 + - name: user
  28 + type:
  29 + schema: user
  30 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateCooperator
  5 + type: command
  6 + description: 更新共创用户
  7 + payload:
  8 + - ref: cooperationCompany
  9 + required: true
  10 + - ref: cooperationDeadline
  11 + required: true
  12 + - ref: email
  13 + required: true
  14 + - ref: enableStatus
  15 + required: true
  16 + - ref: userCode
  17 + required: true
  18 + - ref: userId
  19 + required: true
  20 + - ref: userName
  21 + required: true
  22 + - ref: avatar
  23 + required: true
  24 + - ref: orgId
  25 + required: true
  26 + result:
  27 + - name: user
  28 + type:
  29 + schema: user
  30 + required: true