作者 tangxuhui
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: operationTime 4 + name: operateTime
5 description: 操作时间 5 description: 操作时间
6 type: 6 type:
7 primitive: datetime 7 primitive: datetime
@@ -4,4 +4,4 @@ metadata: @@ -4,4 +4,4 @@ metadata:
4 name: creationContractSponsor 4 name: creationContractSponsor
5 description: 共创合约发起人 5 description: 共创合约发起人
6 type: 6 type:
7 - schema: any 7 + schema: user
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: creationProjectNumber  
5 - description: 共创项目编号 4 + name: creationProjectDescription
  5 + description: 共创项目描述
6 type: 6 type:
7 primitive: string 7 primitive: string
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: creationProjectPublishedAt 4 + name: creationProjectPublishTime
5 description: 共创项目发布时间 5 description: 共创项目发布时间
6 type: 6 type:
7 primitive: datetime 7 primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: creationProjectPublisher
  5 + description: 共创项目发布人
  6 + type:
  7 + schema: user
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: creationProjectSponsor
  5 + description: 共创项目发起人
  6 + type:
  7 + schema: user
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: creationProjectUndertakerType
  5 + description: 共创项目承接对象,1员工,2共创用户
  6 + type:
  7 + primitive: int32
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: creationProject
  5 + description: 共创项目实体
  6 + attributes:
  7 + - ref: creationProjectDescription
  8 + required: true
  9 + - ref: creationProjectId
  10 + required: true
  11 + - ref: creationProjectName
  12 + required: true
  13 + - ref: creationProjectPublishTime
  14 + required: true
  15 + - ref: creationProjectPublisher
  16 + required: true
  17 + - ref: creationProjectSponsor
  18 + required: true
  19 + - ref: creationProjectUndertakerType
  20 + required: true
  21 + - ref: operator
  22 + required: true
  23 + - ref: operateTime
  24 + required: true
  25 + - ref: status
  26 + required: true
@@ -13,3 +13,6 @@ metadata: @@ -13,3 +13,6 @@ metadata:
13 - method: phoneAuthResetPassword 13 - method: phoneAuthResetPassword
14 route: 14 route:
15 post: /phone-auth/reset-password 15 post: /phone-auth/reset-password
  16 + - method: phoneAuthResetPassword
  17 + route:
  18 + post: /destory-account
@@ -2,6 +2,6 @@ version: v1 @@ -2,6 +2,6 @@ version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 name: isOrg 4 name: isOrg
5 - description: 是否是组织(是:1 不是:0) 5 + description: 是否是组织(是:1 不是:2)
6 type: 6 type:
7 primitive: int 7 primitive: int
@@ -2,6 +2,6 @@ version: v1 @@ -2,6 +2,6 @@ version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 name: enableStatus 4 name: enableStatus
5 - description: 启用状态(启用:1 禁用:2) 5 + description: 启用状态(启用:1 禁用:2 注销:3)
6 type: 6 type:
7 primitive: int 7 primitive: int
@@ -14,6 +14,6 @@ metadata: @@ -14,6 +14,6 @@ metadata:
14 required: true 14 required: true
15 - name: parentDepName 15 - name: parentDepName
16 description: 父级部门名称 16 description: 父级部门名称
17 - type:  
18 - primitive: string 17 + type:
  18 + primitive: string
19 required: true 19 required: true
@@ -22,6 +22,10 @@ metadata: @@ -22,6 +22,10 @@ metadata:
22 description: 关联的用户 (冗余) 22 description: 关联的用户 (冗余)
23 type: 23 type:
24 array: int64 24 array: int64
  25 + - name: status
  26 + description: 账号状态 1:正常 2.禁用 3:注销
  27 + type:
  28 + primitive: int
25 - ref: createAt 29 - ref: createAt
26 required: true 30 required: true
27 - ref: updateAt 31 - ref: updateAt
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: destoryAccount
  5 + type: command
  6 + description: 注销账号 (添加用户时重新激活)
  7 + payload:
  8 + - ref: userId
  9 + required: true
  10 + result:
  11 + - name: code
  12 + type:
  13 + primitive: int
  14 + required: true
  15 + - name: msg
  16 + type:
  17 + primitive: string
  18 + required: true
@@ -15,6 +15,10 @@ metadata: @@ -15,6 +15,10 @@ metadata:
15 required: false 15 required: false
16 - ref: parentId 16 - ref: parentId
17 required: false 17 required: false
  18 + - ref: isOrg
  19 + required: false
  20 + - ref: companyId
  21 + required: true
18 result: 22 result:
19 - ref: count 23 - ref: count
20 required: true 24 required: true
@@ -13,6 +13,11 @@ metadata: @@ -13,6 +13,11 @@ metadata:
13 required: false 13 required: false
14 - ref: orgName 14 - ref: orgName
15 required: false 15 required: false
  16 + - name: inOrgIds
  17 + description: 匹配多个组织 1,2,3 逗号分割 inOrgIds
  18 + required: false
  19 + type:
  20 + primitive: string
16 result: 21 result:
17 - ref: count 22 - ref: count
18 required: true 23 required: true
@@ -10,7 +10,7 @@ metadata: @@ -10,7 +10,7 @@ metadata:
10 - ref: phone 10 - ref: phone
11 required: false 11 required: false
12 - ref: usersBaseId 12 - ref: usersBaseId
13 - required: false 13 + required: false
14 result: 14 result:
15 - name: users 15 - name: users
16 type: 16 type:
@@ -9,6 +9,12 @@ metadata: @@ -9,6 +9,12 @@ metadata:
9 required: true 9 required: true
10 - ref: limit 10 - ref: limit
11 required: true 11 required: true
  12 + - ref: usersName
  13 + required: false
  14 + - ref: usersName
  15 + required: false
  16 + - ref: depName
  17 + required: false
12 result: 18 result:
13 - ref: count 19 - ref: count
14 required: true 20 required: true