# 获取当前用户信息

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/me:
    get:
      summary: 获取当前用户信息
      deprecated: false
      description: ''
      tags:
        - auth
        - auth
        - alist Copy/auth
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: '{{alist_token}}'
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                  message:
                    type: string
                    title: 信息
                  data:
                    type: object
                    properties:
                      id:
                        type: integer
                        title: id
                      username:
                        type: string
                        title: 用户名
                      password:
                        type: string
                        title: 密码
                      base_path:
                        type: string
                        title: 根目录
                      role:
                        type: array
                        items:
                          type: integer
                      disabled:
                        type: boolean
                        title: 是否禁用
                      permission:
                        type: integer
                        title: 权限（无用，未来移除）
                      sso_id:
                        type: string
                        title: sso id
                      otp:
                        type: boolean
                        title: 是否开启二步验证
                      role_names:
                        type: array
                        items:
                          type: string
                      permissions:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            permission:
                              type: integer
                          x-apifox-orders:
                            - path
                            - permission
                    required:
                      - id
                      - username
                      - password
                      - base_path
                      - role
                      - disabled
                      - permission
                      - sso_id
                      - otp
                      - role_names
                      - permissions
                    title: 数据
                    x-apifox-orders:
                      - id
                      - username
                      - password
                      - base_path
                      - role
                      - disabled
                      - permission
                      - sso_id
                      - otp
                      - role_names
                      - permissions
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  id: 2
                  username: admin
                  password: ''
                  base_path: /
                  role:
                    - 2
                  disabled: false
                  permission: 65535
                  sso_id: ''
                  otp: false
                  role_names:
                    - admin
                  permissions:
                    - path: /
                      permission: 65535
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: auth
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955413-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
