蛋蛋星球 后台端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

234 lignes
5.3 KiB

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