swagger.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. definitions:
  2. dto.AdminLoginInput:
  3. properties:
  4. password:
  5. example: ""
  6. type: string
  7. username:
  8. example: ""
  9. type: string
  10. required:
  11. - password
  12. - username
  13. type: object
  14. dto.AdminLoginOutput:
  15. properties:
  16. token:
  17. example: token
  18. type: string
  19. type: object
  20. middleware.Response:
  21. properties:
  22. data: {}
  23. errmsg:
  24. type: string
  25. errno:
  26. type: integer
  27. stack: {}
  28. trace_id: {}
  29. type: object
  30. info:
  31. contact: {}
  32. paths:
  33. /admin/login:
  34. post:
  35. consumes:
  36. - application/json
  37. description: 管理员登陆
  38. operationId: /admin/login
  39. parameters:
  40. - description: body
  41. in: body
  42. name: body
  43. required: true
  44. schema:
  45. $ref: '#/definitions/dto.AdminLoginInput'
  46. produces:
  47. - application/json
  48. responses:
  49. "200":
  50. description: success
  51. schema:
  52. allOf:
  53. - $ref: '#/definitions/middleware.Response'
  54. - properties:
  55. data:
  56. $ref: '#/definitions/dto.AdminLoginOutput'
  57. type: object
  58. summary: 管理员登陆
  59. tags:
  60. - 管理员借口
  61. swagger: "2.0"