getUserInfo.md 3.72 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: false
          example: behalo
          schema:
            type: string
        - name: a
          in: query
          description: ''
          required: false
          example: user_info
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态
                    description: 0=失败,1=成功
                  msg:
                    type: string
                    title: 错误信息
                  data:
                    type: object
                    properties:
                      user:
                        type: object
                        properties:
                          id:
                            type: integer
                            description: 用户ID
                          name:
                            type: string
                            description: 姓名
                          mobile:
                            type: string
                            description: 手机号
                        x-apifox-orders:
                          - id
                          - name
                          - mobile
                        nullable: true
                      checkin:
                        type: object
                        properties:
                          total_days:
                            type: integer
                            title: 累计打卡天数
                          consecutive_days:
                            type: integer
                            title: 连续打卡天数
                          longest_consecutive_days:
                            type: integer
                            title: 最长连续打卡天数
                        x-apifox-orders:
                          - total_days
                          - consecutive_days
                          - longest_consecutive_days
                        required:
                          - total_days
                          - longest_consecutive_days
                          - consecutive_days
                      unread_msg_count:
                        type: integer
                        title: 未读的消息数量
                      is_teacher:
                        type: boolean
                        title: 是不是老师
                    x-apifox-orders:
                      - user
                      - checkin
                      - unread_msg_count
                      - is_teacher
                    required:
                      - checkin
                      - unread_msg_count
                      - is_teacher
                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: tested
      x-run-in-apifox: https://app.apifox.com/web/project/6084040/apis/api-275317513-run
components:
  schemas: {}
  responses: {}
  securitySchemes: {}
servers:
  - url: https://oa-dev.onwall.cn
    description: 测试环境
security: []