作者 yangfu

用户中心-用户信息修改

... ... @@ -100,6 +100,6 @@ type User struct {
ImToken string `json:"imToken"`
//companys
CompanyId int `json:"company_id"`
CompanyId int `json:"companyId"`
Company string `json:"company"` //公司名称
}
... ...
## 统一用户中心
### 登录
* URL: /v1/ucenter/login
* 格式: JSON
* HTTP请求方式: POST
* 请求示例
```json
{
"phone": "18860180001",
"code": "784657",
"grantType": "signInPassword",
"password": "123456"
}
```
* 应答示例
```json
{
"code": 0,
"msg": "成功",
"data": {
"uid": 3507839547244544,
"module": [
{
"name": "opportunity"
},
{
"name": "question"
}
]
}
}
```
```
data.uid 统一用户中心uid
data.module 有权限的模块
```
## 认证
### 登录
... ... @@ -308,7 +265,7 @@ data.module 有权限的模块
"department": "部门1",
"position": "董事长",
"imToken": "741df673c1671f8fad6d5d20adfa165e",
"company_id": 1,
"companyId": 1,
"company": "test_company"
}
}
... ...