You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/cmd/open_im_api/docs/swagger.yaml

85 lines
1.9 KiB

2 years ago
definitions:
base_info.UpdateSelfUserInfoReq:
properties:
birth:
type: integer
email:
maxLength: 64
type: string
ex:
maxLength: 1024
type: string
faceURL:
maxLength: 1024
type: string
gender:
enum:
- 0
- 1
- 2
type: integer
nickname:
maxLength: 64
minLength: 1
type: string
operationID:
type: string
phoneNumber:
maxLength: 32
type: string
userID:
maxLength: 64
minLength: 1
type: string
required:
- operationID
- userID
type: object
base_info.UpdateUserInfoResp:
properties:
errCode:
type: integer
errMsg:
type: string
type: object
2 years ago
info:
2 years ago
contact: {}
2 years ago
paths:
2 years ago
/user/update_user_info:
post:
2 years ago
consumes:
- application/json
2 years ago
description: 修改用户信息 userID faceURL等
operationId: UpdateUserInfo
2 years ago
parameters:
2 years ago
- description: im token
in: header
name: token
2 years ago
required: true
type: string
2 years ago
- description: 请求
in: body
name: req
required: true
schema:
$ref: '#/definitions/base_info.UpdateSelfUserInfoReq'
produces:
- application/json
2 years ago
responses:
2 years ago
"0":
description: ""
2 years ago
schema:
2 years ago
$ref: '#/definitions/base_info.UpdateUserInfoResp'
2 years ago
"400":
2 years ago
description: errCode为400 一般为参数输入错误, token未带上等
schema:
$ref: '#/definitions/base_info.UpdateUserInfoResp'
"500":
description: errCode为500 一般为服务器内部错误
2 years ago
schema:
2 years ago
$ref: '#/definitions/base_info.UpdateUserInfoResp'
summary: 修改用户信息
2 years ago
tags:
2 years ago
- 用户信息
2 years ago
swagger: "2.0"