登陆

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

  1. {
  2. "code": 0,
  3. "data": {
  4. "token": "fsdhfldsjfhldsajfoerwifjdsljf',
  5. },
  6. "message": "string",
  7. "success": false
  8. }

获取用户信息

:::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
响应示例:响应返回用户信息 :::

  1. {
  2. "success": true,
  3. "code": 200,
  4. "message": "成功",
  5. "data": {
  6. "item": {
  7. "id": "1570595491228569601",
  8. "mobile": "",
  9. "nickname": "朽木白",
  10. "sex": null,
  11. "age": null,
  12. "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLYaMAr2AKiccaJ3oV7NOBDWCkKJYHufeYGJyUeSavcw6cIlI5pwLyUT5ac0n6EHs4FjwfGWX06GeQ/132"
  13. }
  14. }
  15. }

更新用户信息

:::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即为更新成功 :::

  1. {
  2. "success": true,
  3. "code": 200,
  4. "message": "成功",
  5. "data": {}
  6. }