蛋蛋星球 后台端
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.
 
 
 
 

176 lines
4.0 KiB

  1. definitions:
  2. md.LoginReq:
  3. properties:
  4. code:
  5. example: 验证码
  6. type: string
  7. password:
  8. example: 登录密码
  9. type: string
  10. username:
  11. example: 登录账号
  12. type: string
  13. required:
  14. - password
  15. - username
  16. type: object
  17. md.LoginResponse:
  18. properties:
  19. token:
  20. type: string
  21. type: object
  22. md.Response:
  23. properties:
  24. code:
  25. example: 响应码
  26. type: string
  27. data:
  28. description: 内容
  29. msg:
  30. example: 具体错误原因
  31. type: string
  32. type: object
  33. public_platoon.GetPublicPlatoonBasicResp:
  34. properties:
  35. is_open:
  36. type: integer
  37. is_self_active_get_team_revenue:
  38. type: integer
  39. originator_uid:
  40. type: integer
  41. several_rows:
  42. type: integer
  43. several_times:
  44. type: integer
  45. system_punish_replace:
  46. type: integer
  47. system_punish_replace_value:
  48. type: integer
  49. type: object
  50. host: localhost:4001
  51. info:
  52. contact:
  53. email: 1239118001@qq.com
  54. name: dengbiao
  55. url: http://www.swagger.io/support
  56. description: 管理后台接口文档
  57. license:
  58. name: Apache 2.0
  59. url: http://www.apache.org/licenses/LICENSE-2.0.html
  60. termsOfService: http://swagger.io/terms/
  61. title: 蛋蛋星球-管理后台
  62. version: "1.0"
  63. paths:
  64. /api/demo:
  65. post:
  66. consumes:
  67. - application/json
  68. description: Demo样例测试
  69. parameters:
  70. - description: 用户名密码
  71. in: body
  72. name: req
  73. required: true
  74. schema: {}
  75. produces:
  76. - application/json
  77. responses:
  78. "200":
  79. description: token
  80. schema:
  81. additionalProperties: true
  82. type: object
  83. "400":
  84. description: 具体错误
  85. schema:
  86. $ref: '#/definitions/md.Response'
  87. summary: Demo测试
  88. tags:
  89. - Demo
  90. /api/login:
  91. post:
  92. consumes:
  93. - application/json
  94. description: 登入
  95. parameters:
  96. - description: 用户名密码
  97. in: body
  98. name: req
  99. required: true
  100. schema:
  101. $ref: '#/definitions/md.LoginReq'
  102. produces:
  103. - application/json
  104. responses:
  105. "200":
  106. description: token
  107. schema:
  108. $ref: '#/definitions/md.LoginResponse'
  109. "400":
  110. description: 具体错误
  111. schema:
  112. $ref: '#/definitions/md.Response'
  113. summary: 登陆
  114. tags:
  115. - 登录
  116. /api/publicPlatoon/getBasic:
  117. get:
  118. consumes:
  119. - application/json
  120. description: 公排基础设置(获取)
  121. parameters:
  122. - description: 验证参数Bearer和token空格拼接
  123. in: header
  124. name: Authorization
  125. required: true
  126. type: string
  127. produces:
  128. - application/json
  129. responses:
  130. "200":
  131. description: 具体数据
  132. schema:
  133. $ref: '#/definitions/public_platoon.GetPublicPlatoonBasicResp'
  134. "400":
  135. description: 具体错误
  136. schema:
  137. $ref: '#/definitions/md.Response'
  138. summary: 制度中心-公排管理-公排基础设置(获取)
  139. tags:
  140. - 公排管理
  141. post:
  142. consumes:
  143. - application/json
  144. description: 公排基础设置(修改)
  145. parameters:
  146. - description: 验证参数Bearer和token空格拼接
  147. in: header
  148. name: Authorization
  149. required: true
  150. type: string
  151. - description: 公排设置表单内容
  152. in: body
  153. name: req
  154. required: true
  155. schema: {}
  156. produces:
  157. - application/json
  158. responses:
  159. "200":
  160. description: success
  161. schema:
  162. type: string
  163. "400":
  164. description: 具体错误
  165. schema:
  166. $ref: '#/definitions/md.Response'
  167. summary: 制度中心-公排管理-公排基础设置(修改)
  168. tags:
  169. - 公排管理
  170. securityDefinitions:
  171. MasterID:
  172. in: header
  173. name: MasterID
  174. type: apiKey
  175. swagger: "2.0"