作者 yangfu

微调

@@ -2,17 +2,20 @@ version: v1 @@ -2,17 +2,20 @@ version: v1
2 kind: HttpApi 2 kind: HttpApi
3 metadata: 3 metadata:
4 service: auth 4 service: auth
5 - path: /auths 5 + path: /auth
6 endpoints: 6 endpoints:
7 - method: companySignUp 7 - method: companySignUp
8 route: 8 route:
9 post: /company-sign-up 9 post: /company-sign-up
10 - method: phoneAuthCheck 10 - method: phoneAuthCheck
11 route: 11 route:
12 - post: /phone-auth/check 12 + post: /check-password
13 - method: phoneAuthResetPassword 13 - method: phoneAuthResetPassword
14 route: 14 route:
15 - post: /phone-auth/reset-password 15 + post: /reset-password
  16 + - method: phoneAuthResetPhone
  17 + route:
  18 + post: /reset-phone
16 - method: destoryAccount 19 - method: destoryAccount
17 route: 20 route:
18 post: /destory-account 21 post: /destory-account
@@ -26,12 +26,7 @@ metadata: @@ -26,12 +26,7 @@ metadata:
26 - name: menuCategory 26 - name: menuCategory
27 - method: getUsersProfile 27 - method: getUsersProfile
28 route: 28 route:
29 - get: /profile  
30 - params:  
31 - - name: usersId  
32 - - name: phone  
33 - - name: usersBaseId  
34 - - name: usersCode 29 + get: /{usersId}/profile
35 - method: batchAdd 30 - method: batchAdd
36 route: 31 route:
37 post: /batch-add 32 post: /batch-add
@@ -41,9 +36,6 @@ metadata: @@ -41,9 +36,6 @@ metadata:
41 - method: batchResetPassword 36 - method: batchResetPassword
42 route: 37 route:
43 post: /batch-reset-password 38 post: /batch-reset-password
44 - - method: updateUsersPhoneAuth  
45 - route:  
46 - put: /{usersId}/phone-auth  
47 - method: updateUsersBase 39 - method: updateUsersBase
48 route: 40 route:
49 put: /{usersId}/base-info 41 put: /{usersId}/base-info
@@ -39,7 +39,7 @@ metadata: @@ -39,7 +39,7 @@ metadata:
39 type: 39 type:
40 schema: cooperationInfo 40 schema: cooperationInfo
41 - name: enableStatus 41 - name: enableStatus
42 - description: 启用状态(启用:1 禁用:2) 42 + description: 状态(1:启用 2:禁用 3:注销)
43 type: 43 type:
44 primitive: int 44 primitive: int
45 - name: ext 45 - name: ext
@@ -2,7 +2,7 @@ version: v1 @@ -2,7 +2,7 @@ version: v1
2 kind: Schema 2 kind: Schema
3 metadata: 3 metadata:
4 name: usersBase 4 name: usersBase
5 - description: 用户(base) 5 + description: 用户基础
6 attributes: 6 attributes:
7 - ref: usersBaseId 7 - ref: usersBaseId
8 required: true 8 required: true
@@ -12,3 +12,7 @@ metadata: @@ -12,3 +12,7 @@ metadata:
12 required: true 12 required: true
13 - ref: avator 13 - ref: avator
14 required: true 14 required: true
  15 + - ref: phone
  16 + required: true
  17 + - ref: email
  18 + required: true
1 version: v1 1 version: v1
2 kind: Method 2 kind: Method
3 metadata: 3 metadata:
4 - name: updateUsersPhoneAuth 4 + name: phoneAuthResetPhone
5 type: command 5 type: command
6 - description: 手机认证,更新手机号、密码 6 + description: 重置手机号
7 payload: 7 payload:
8 - - ref: usersId  
9 - required: true  
10 - - ref: phone  
11 - required: false  
12 - - ref: password  
13 - required: false 8 + - ref: usersId
  9 + required: true
  10 + - name: oldPhone
  11 + type:
  12 + primitive: int
  13 + required: true
  14 + - name: newPhone
  15 + type:
  16 + primitive: int
  17 + required: true
14 result: 18 result:
15 - - name: code  
16 - type:  
17 - primitive: int  
18 - required: true  
19 - - name: msg  
20 - type:  
21 - primitive: string  
22 - required: true 19 + - ref: code
  20 + required: true
  21 + - ref: msg
  22 + required: true
@@ -17,6 +17,8 @@ metadata: @@ -17,6 +17,8 @@ metadata:
17 required: false 17 required: false
18 - ref: depName 18 - ref: depName
19 required: false 19 required: false
  20 + - ref: phone
  21 + required: false
20 result: 22 result:
21 - ref: count 23 - ref: count
22 required: true 24 required: true
@@ -11,6 +11,10 @@ metadata: @@ -11,6 +11,10 @@ metadata:
11 required: true 11 required: true
12 - ref: avator 12 - ref: avator
13 required: true 13 required: true
  14 + - ref: phone
  15 + required: true
  16 + - ref: email
  17 + required: true
14 result: 18 result:
15 - ref: code 19 - ref: code
16 required: true 20 required: true
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: createUsersBase 4 name: createUsersBase
5 type: command 5 type: command
6 - description: 创建 6 + description: 创建用户基础数据
7 payload: 7 payload:
8 - ref: usersBaseId 8 - ref: usersBaseId
9 required: true 9 required: true
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: getUsersBase 4 name: getUsersBase
5 type: query 5 type: query
6 - description: 返回 6 + description: 返回用户基础数据
7 payload: 7 payload:
8 - ref: usersBaseId 8 - ref: usersBaseId
9 required: true 9 required: true
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: listUsersBase 4 name: listUsersBase
5 type: query 5 type: query
6 - description: 返回列表 6 + description: 返回用户基础数据列表
7 payload: 7 payload:
8 - ref: offset 8 - ref: offset
9 required: true 9 required: true
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: removeUsersBase 4 name: removeUsersBase
5 type: command 5 type: command
6 - description: 移除 6 + description: 移除用户基础数据
7 payload: 7 payload:
8 - ref: usersBaseId 8 - ref: usersBaseId
9 required: true 9 required: true
@@ -3,7 +3,7 @@ kind: Method @@ -3,7 +3,7 @@ kind: Method
3 metadata: 3 metadata:
4 name: updateUsersBase 4 name: updateUsersBase
5 type: command 5 type: command
6 - description: 更新 6 + description: 更新用户基础数据
7 payload: 7 payload:
8 - ref: usersBaseId 8 - ref: usersBaseId
9 required: true 9 required: true