swagger.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. definitions:
  2. api.ChangePassWordStutrc:
  3. properties:
  4. newPassWord:
  5. type: string
  6. passWord:
  7. type: string
  8. userName:
  9. type: string
  10. type: object
  11. api.RegistAndLoginStuct:
  12. properties:
  13. passWord:
  14. type: string
  15. userName:
  16. type: string
  17. type: object
  18. info:
  19. contact: {}
  20. license: {}
  21. paths:
  22. /user/changePassWord:
  23. post:
  24. parameters:
  25. - description: 用户修改密码
  26. in: body
  27. name: data
  28. required: true
  29. schema:
  30. $ref: '#/definitions/api.ChangePassWordStutrc'
  31. type: object
  32. produces:
  33. - application/json
  34. responses:
  35. "200":
  36. description: '{"success":true,"data":{},"msg":"修改成功"}'
  37. schema:
  38. type: string
  39. summary: 用户修改密码
  40. tags:
  41. - User
  42. /user/login:
  43. post:
  44. parameters:
  45. - description: 用户登录接口
  46. in: body
  47. name: data
  48. required: true
  49. schema:
  50. $ref: '#/definitions/api.RegistAndLoginStuct'
  51. type: object
  52. produces:
  53. - application/json
  54. responses:
  55. "200":
  56. description: '{"success":true,"data":{},"msg":"登陆成功"}'
  57. schema:
  58. type: string
  59. summary: 用户登录
  60. tags:
  61. - User
  62. /user/regist:
  63. post:
  64. parameters:
  65. - description: 用户注册接口
  66. in: body
  67. name: data
  68. required: true
  69. schema:
  70. $ref: '#/definitions/api.RegistAndLoginStuct'
  71. type: object
  72. produces:
  73. - application/json
  74. responses:
  75. "200":
  76. description: '{"success":true,"data":{},"msg":"注册成功"}'
  77. schema:
  78. type: string
  79. summary: 用户注册账号
  80. tags:
  81. - User
  82. swagger: "2.0"