You need to sign in or sign up before continuing.
update_profile.md 3.25 KB

更新个人资料

OpenAPI Specification

openapi: 3.0.1
info:
  title: ''
  version: 1.0.0
paths:
  /srv/:
    post:
      summary: 更新个人资料
      deprecated: false
      description: ''
      tags:
        - 用户
      parameters:
        - name: f
          in: query
          description: ''
          required: true
          example: manulife
          schema:
            type: string
        - name: a
          in: query
          description: ''
          required: true
          example: user
          schema:
            type: string
        - name: t
          in: query
          description: ''
          required: true
          example: update_profile
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                avatar:
                  type: object
                  properties:
                    name:
                      type: string
                      title: 文件名
                    hash:
                      type: string
                      title: 文件hash
                    src:
                      type: string
                      title: 文件地址
                    height:
                      type: string
                      title: 文件高度
                    width:
                      type: string
                      title: 文件宽度
                    size:
                      type: integer
                      title: 文件大小
                  x-apifox-orders:
                    - name
                    - hash
                    - src
                    - height
                    - width
                    - size
                  title: 头像
                  required:
                    - name
                    - hash
                    - src
                    - height
                    - width
                    - size
              x-apifox-orders:
                - avatar
              title: 头像
              required:
                - avatar
            example:
              avatar:
                name: 77777-test.png
                hash: FiKJlV6Sq6oQ4HgLIdqCfye6qKOr
                src: >-
                  https://cdn.ipadbiz.cn/space_816560/77777_FiKJlV6Sq6oQ4HgLIdqCfye6qKOr.png
                height: '45'
                width: '74'
                size: 4497
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: 0=失败,1=成功
                  msg:
                    type: string
                x-apifox-orders:
                  - code
                  - msg
                required:
                  - code
                  - msg
          headers: {}
          x-apifox-name: 成功
          x-apifox-ordering: 0
      security: []
      x-apifox-folder: 用户
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7792797/apis/api-413906669-run
components:
  schemas: {}
  responses: {}
  securitySchemes: {}
servers: []
security: []