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.

173 lines
3.9 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. basePath: /
  2. definitions:
  3. api.ChangePassWordStutrc:
  4. properties:
  5. newPassWord:
  6. type: string
  7. passWord:
  8. type: string
  9. userName:
  10. type: string
  11. type: object
  12. api.RegistAndLoginStuct:
  13. properties:
  14. passWord:
  15. type: string
  16. userName:
  17. type: string
  18. type: object
  19. modelInterface.PageInfo:
  20. properties:
  21. page:
  22. type: integer
  23. pageSize:
  24. type: integer
  25. type: object
  26. info:
  27. contact: {}
  28. description: This is a sample Server pets
  29. license: {}
  30. title: Swagger Example API
  31. version: 0.0.1
  32. paths:
  33. /base/login:
  34. post:
  35. parameters:
  36. - description: 用户登录接口
  37. in: body
  38. name: data
  39. required: true
  40. schema:
  41. $ref: '#/definitions/api.RegistAndLoginStuct'
  42. type: object
  43. produces:
  44. - application/json
  45. responses:
  46. "200":
  47. description: '{"success":true,"data":{},"msg":"登陆成功"}'
  48. schema:
  49. type: string
  50. summary: 用户登录
  51. tags:
  52. - Base
  53. /base/regist:
  54. post:
  55. parameters:
  56. - description: 用户注册接口
  57. in: body
  58. name: data
  59. required: true
  60. schema:
  61. $ref: '#/definitions/api.RegistAndLoginStuct'
  62. type: object
  63. produces:
  64. - application/json
  65. responses:
  66. "200":
  67. description: '{"success":true,"data":{},"msg":"注册成功"}'
  68. schema:
  69. type: string
  70. summary: 用户注册账号
  71. tags:
  72. - Base
  73. /menu/getMenu:
  74. post:
  75. parameters:
  76. - description: 可以什么都不填
  77. in: body
  78. name: data
  79. required: true
  80. schema:
  81. $ref: '#/definitions/api.RegistAndLoginStuct'
  82. type: object
  83. produces:
  84. - application/json
  85. responses:
  86. "200":
  87. description: '{"success":true,"data":{},"msg":"返回成功"}'
  88. schema:
  89. type: string
  90. security:
  91. - ApiKeyAuth: []
  92. summary: 获取用户动态路由
  93. tags:
  94. - Menu
  95. /user/changePassWord:
  96. post:
  97. parameters:
  98. - description: 用户修改密码
  99. in: body
  100. name: data
  101. required: true
  102. schema:
  103. $ref: '#/definitions/api.ChangePassWordStutrc'
  104. type: object
  105. produces:
  106. - application/json
  107. responses:
  108. "200":
  109. description: '{"success":true,"data":{},"msg":"修改成功"}'
  110. schema:
  111. type: string
  112. security:
  113. - ApiKeyAuth: []
  114. summary: 用户修改密码
  115. tags:
  116. - User
  117. /user/getInfoList:
  118. post:
  119. consumes:
  120. - application/json
  121. parameters:
  122. - description: 分页获取用户列表
  123. in: body
  124. name: data
  125. required: true
  126. schema:
  127. $ref: '#/definitions/modelInterface.PageInfo'
  128. type: object
  129. produces:
  130. - application/json
  131. responses:
  132. "200":
  133. description: '{"success":true,"data":{},"msg":"获取成功"}'
  134. schema:
  135. type: string
  136. security:
  137. - ApiKeyAuth: []
  138. summary: 分页获取用户列表
  139. tags:
  140. - User
  141. /user/uploadHeaderImg:
  142. post:
  143. consumes:
  144. - multipart/form-data
  145. parameters:
  146. - description: 用户上传头像
  147. in: formData
  148. name: headerImg
  149. required: true
  150. type: file
  151. - description: 用户上传头像
  152. in: formData
  153. name: userName
  154. required: true
  155. type: string
  156. produces:
  157. - application/json
  158. responses:
  159. "200":
  160. description: '{"success":true,"data":{},"msg":"上传成功"}'
  161. schema:
  162. type: string
  163. security:
  164. - ApiKeyAuth: []
  165. summary: 用户上传头像
  166. tags:
  167. - User
  168. securityDefinitions:
  169. ApiKeyAuth:
  170. in: header
  171. name: x-token
  172. type: apiKey
  173. swagger: "2.0"