蛋蛋星球 后台端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

241 行
5.6 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. public_platoon.RelationshipMap:
  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/public_platoon.RelationshipMap'
  67. type: array
  68. system_id:
  69. type: integer
  70. uid:
  71. type: integer
  72. type: object
  73. public_platoon.RelationshipMapResp:
  74. properties:
  75. basicSetting:
  76. $ref: '#/definitions/public_platoon.GetPublicPlatoonBasicResp'
  77. map:
  78. $ref: '#/definitions/public_platoon.RelationshipMap'
  79. searchUid:
  80. type: integer
  81. type: object
  82. host: localhost:4001
  83. info:
  84. contact:
  85. email: 1239118001@qq.com
  86. name: dengbiao
  87. url: http://www.swagger.io/support
  88. description: 管理后台接口文档
  89. license:
  90. name: Apache 2.0
  91. url: http://www.apache.org/licenses/LICENSE-2.0.html
  92. termsOfService: http://swagger.io/terms/
  93. title: 蛋蛋星球-管理后台
  94. version: "1.0"
  95. paths:
  96. /api/demo:
  97. post:
  98. consumes:
  99. - application/json
  100. description: Demo样例测试
  101. parameters:
  102. - description: 用户名密码
  103. in: body
  104. name: req
  105. required: true
  106. schema: {}
  107. produces:
  108. - application/json
  109. responses:
  110. "200":
  111. description: token
  112. schema:
  113. additionalProperties: true
  114. type: object
  115. "400":
  116. description: 具体错误
  117. schema:
  118. $ref: '#/definitions/md.Response'
  119. summary: Demo测试
  120. tags:
  121. - Demo
  122. /api/login:
  123. post:
  124. consumes:
  125. - application/json
  126. description: 登入
  127. parameters:
  128. - description: 用户名密码
  129. in: body
  130. name: req
  131. required: true
  132. schema:
  133. $ref: '#/definitions/md.LoginReq'
  134. produces:
  135. - application/json
  136. responses:
  137. "200":
  138. description: token
  139. schema:
  140. $ref: '#/definitions/md.LoginResponse'
  141. "400":
  142. description: 具体错误
  143. schema:
  144. $ref: '#/definitions/md.Response'
  145. summary: 登陆
  146. tags:
  147. - 登录
  148. /api/publicPlatoon/getBasic:
  149. get:
  150. consumes:
  151. - application/json
  152. description: 公排基础设置(获取)
  153. parameters:
  154. - description: 验证参数Bearer和token空格拼接
  155. in: header
  156. name: Authorization
  157. required: true
  158. type: string
  159. produces:
  160. - application/json
  161. responses:
  162. "200":
  163. description: 具体数据
  164. schema:
  165. $ref: '#/definitions/public_platoon.GetPublicPlatoonBasicResp'
  166. "400":
  167. description: 具体错误
  168. schema:
  169. $ref: '#/definitions/md.Response'
  170. summary: 制度中心-公排管理-公排基础设置(获取)
  171. tags:
  172. - 公排管理
  173. post:
  174. consumes:
  175. - application/json
  176. description: 公排基础设置(修改)
  177. parameters:
  178. - description: 验证参数Bearer和token空格拼接
  179. in: header
  180. name: Authorization
  181. required: true
  182. type: string
  183. - description: 公排设置表单内容
  184. in: body
  185. name: req
  186. required: true
  187. schema: {}
  188. produces:
  189. - application/json
  190. responses:
  191. "200":
  192. description: success
  193. schema:
  194. type: string
  195. "400":
  196. description: 具体错误
  197. schema:
  198. $ref: '#/definitions/md.Response'
  199. summary: 制度中心-公排管理-公排基础设置(修改)
  200. tags:
  201. - 公排管理
  202. /api/publicPlatoon/relationshipMap:
  203. get:
  204. consumes:
  205. - application/json
  206. description: 关系分布图(获取)
  207. parameters:
  208. - description: 验证参数Bearer和token空格拼接
  209. in: header
  210. name: Authorization
  211. required: true
  212. type: string
  213. - description: 用户ID
  214. in: query
  215. name: uid
  216. type: string
  217. - description: 手机号
  218. in: query
  219. name: phone
  220. type: string
  221. produces:
  222. - application/json
  223. responses:
  224. "200":
  225. description: 具体数据
  226. schema:
  227. $ref: '#/definitions/public_platoon.RelationshipMapResp'
  228. "400":
  229. description: 具体错误
  230. schema:
  231. $ref: '#/definitions/md.Response'
  232. summary: 制度中心-公排管理-关系分布图(获取)
  233. tags:
  234. - 公排管理
  235. securityDefinitions:
  236. MasterID:
  237. in: header
  238. name: MasterID
  239. type: apiKey
  240. swagger: "2.0"