作者 yangfu

添加账号注销接口

@@ -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
@@ -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
@@ -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