登陆
:::tips
- URL:
[/api/ucenter/webChat/callback](http://139.198.34.216:8108/swagger-ui.html#!/web45chat45api45controller/callbackUsingGET) - Method:GET
- 需要登录:否
- 需要鉴权:否
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | code | code | String | query | (required) |
请求示例
成功响应
:::tips
条件:请求参数合法。
状态码:200 OK
响应示例:响应返回token
:::
{"code": 0,"data": {"token": "fsdhfldsjfhldsajfoerwifjdsljf',},"message": "string","success": false}
获取用户信息
:::tips
- URL:
[/api/ucenter/member/auth/getLoginInfo](http://139.198.34.216:8108/swagger-ui.html#!/member45api45controller/getLoginInfoUsingGET) - Method:GET
- 需要登录:是
- 需要鉴权:是
:::
请求参数
token是带在请求头当中的
| Parameter | Description | Data-type | Parameter-type | Default-value |
|---|---|---|---|---|
| token | 令牌 | String | header | (required) |
请求示例
成功响应
:::tips
条件:请求参数合法。
状态码:200 OK
响应示例:响应返回用户信息
:::
{"success": true,"code": 200,"message": "成功","data": {"item": {"id": "1570595491228569601","mobile": "","nickname": "朽木白","sex": null,"age": null,"avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLYaMAr2AKiccaJ3oV7NOBDWCkKJYHufeYGJyUeSavcw6cIlI5pwLyUT5ac0n6EHs4FjwfGWX06GeQ/132"}}}
更新用户信息
:::tips
- URL:
[/api/ucenter/member/auth/updateMember](http://139.198.34.216:8108/swagger-ui.html#!/member45api45controller/updateMemberUsingPOST) - Method:POST
- 需要登录:是
- 需要鉴权:是
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | token | 令牌 | String | header | (required) | | avatar | 头像 | String | query | (required) | | avatar | 昵称 | String | query | (required) |
请求示例
成功响应
:::tips
条件:请求参数合法。
状态码:200 OK
响应示例:code=200即为更新成功
:::
{"success": true,"code": 200,"message": "成功","data": {}}
