You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.4 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  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. /user/uploadHeaderImg:
  83. post:
  84. consumes:
  85. - multipart/form-data
  86. parameters:
  87. - description: 用户上传头像
  88. in: formData
  89. name: headerImg
  90. required: true
  91. type: file
  92. - description: 用户上传头像
  93. in: formData
  94. name: userName
  95. required: true
  96. type: string
  97. produces:
  98. - application/json
  99. responses:
  100. "200":
  101. description: '{"success":true,"data":{},"msg":"上传成功"}'
  102. schema:
  103. type: string
  104. summary: 用户上传头像
  105. tags:
  106. - User
  107. swagger: "2.0"