# 查询用户统计信息

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /stat/user:
    get:
      summary: 查询用户统计信息
      deprecated: false
      description: 查询今日/30天内的活跃以及注册用户
      tags:
        - 其它
      parameters:
        - name: User-Agent
          in: header
          description: ''
          example: MSL API Test
          schema:
            type: string
            default: MSL API Test
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      totalUser:
                        type: integer
                        description: 总用户
                      today:
                        type: object
                        properties:
                          activeUser:
                            type: integer
                            description: 今日用户数量
                          regUser:
                            type: integer
                            description: 今日新用户数量
                        required:
                          - activeUser
                          - regUser
                        x-apifox-orders:
                          - activeUser
                          - regUser
                        description: 今日数据
                      month:
                        type: object
                        properties:
                          activeUser:
                            type: integer
                          regUser:
                            type: integer
                        required:
                          - activeUser
                          - regUser
                        x-apifox-orders:
                          - activeUser
                          - regUser
                        description: 30天数据
                    required:
                      - totalUser
                      - today
                      - month
                    x-apifox-orders:
                      - totalUser
                      - today
                      - month
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: ''
                data:
                  totalUser: 1
                  today:
                    activeUser: 1
                    regUser: 1
                  month:
                    activeUser: 1
                    regUser: 1
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 其它
      x-apifox-status: testing
      x-run-in-apifox: https://app.apifox.com/web/project/7956474/apis/api-429587282-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers: []
security: []

```
