1
|
-
|
|
|
2
|
-## 统一用户中心
|
|
|
3
|
-
|
|
|
4
|
-### 登录
|
|
|
5
|
-
|
|
|
6
|
-* URL: /v1/ucenter/login
|
|
|
7
|
-* 格式: JSON
|
|
|
8
|
-* HTTP请求方式: POST
|
|
|
9
|
-* 请求示例
|
|
|
10
|
-```json
|
|
|
11
|
-{
|
|
|
12
|
- "phone": "18860180001",
|
|
|
13
|
- "code": "784657",
|
|
|
14
|
- "grantType": "signInPassword",
|
|
|
15
|
- "password": "123456"
|
|
|
16
|
-}
|
|
|
17
|
-```
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-* 应答示例
|
|
|
21
|
-```json
|
|
|
22
|
-{
|
|
|
23
|
- "code": 0,
|
|
|
24
|
- "msg": "成功",
|
|
|
25
|
- "data": {
|
|
|
26
|
- "uid": 3507839547244544,
|
|
|
27
|
- "module": [
|
|
|
28
|
- {
|
|
|
29
|
- "name": "opportunity"
|
|
|
30
|
- },
|
|
|
31
|
- {
|
|
|
32
|
- "name": "question"
|
|
|
33
|
- }
|
|
|
34
|
- ]
|
|
|
35
|
- }
|
|
|
36
|
-}
|
|
|
37
|
-```
|
|
|
38
|
-
|
|
|
39
|
-```
|
|
|
40
|
-data.uid 统一用户中心uid
|
|
|
41
|
-data.module 有权限的模块
|
|
|
42
|
-```
|
|
|
43
|
-
|
|
|
44
|
## 认证
|
1
|
## 认证
|
45
|
|
2
|
|
46
|
### 登录
|
3
|
### 登录
|
|
@@ -308,7 +265,7 @@ data.module 有权限的模块 |
|
@@ -308,7 +265,7 @@ data.module 有权限的模块 |
308
|
"department": "部门1",
|
265
|
"department": "部门1",
|
309
|
"position": "董事长",
|
266
|
"position": "董事长",
|
310
|
"imToken": "741df673c1671f8fad6d5d20adfa165e",
|
267
|
"imToken": "741df673c1671f8fad6d5d20adfa165e",
|
311
|
- "company_id": 1,
|
268
|
+ "companyId": 1,
|
312
|
"company": "test_company"
|
269
|
"company": "test_company"
|
313
|
}
|
270
|
}
|
314
|
}
|
271
|
}
|