get_profile.md 4.04 KB

获取个人信息

OpenAPI Specification

openapi: 3.0.1
info:
  title: ''
  version: 1.0.0
paths:
  /srv/:
    get:
      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: get_profile
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      user:
                        type: object
                        properties:
                          id:
                            type: integer
                            title: 用户ID
                          name:
                            type: string
                            title: 姓名
                          employee_no:
                            type: string
                            title: 工号
                          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:
                          - id
                          - name
                          - avatar
                          - employee_no
                        title: 用户信息
                        required:
                          - id
                          - avatar
                          - name
                          - employee_no
                    x-apifox-orders:
                      - user
                    required:
                      - user
                x-apifox-orders:
                  - code
                  - msg
                  - data
                required:
                  - code
                  - msg
                  - data
          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-413906668-run
components:
  schemas: {}
  responses: {}
  securitySchemes: {}
servers: []
security: []