v2-auth-current.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-auth-current.yaml
  2. get:
  3. summary: 'getUserInfoByToken auth/current'
  4. tags:
  5. - auth
  6. operationId: get_api_v2_auth_current
  7. description: |
  8. 已被 `GET /v3/me` 取代。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  9. responses:
  10. 200:
  11. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  12. content:
  13. application/json:
  14. schema:
  15. type: object
  16. properties:
  17. ok:
  18. type: boolean
  19. message:
  20. type: string
  21. data:
  22. type: object
  23. properties:
  24. id:
  25. type: string
  26. nickName:
  27. type: string
  28. realName:
  29. type: string
  30. avatar:
  31. type: string
  32. roles:
  33. type: array
  34. items:
  35. type: string
  36. 401:
  37. $ref: '../../main.yaml#/components/responses/Unauthorized'
  38. 422:
  39. $ref: '../../main.yaml#/components/responses/ValidationError'
  40. deprecated: true