蛋蛋星球 后台端
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

348 рядки
8.2 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.RelationshipMap:
  40. properties:
  41. avatar_url:
  42. type: string
  43. level:
  44. type: integer
  45. nickname:
  46. type: string
  47. phone:
  48. type: string
  49. pid:
  50. type: integer
  51. position:
  52. type: integer
  53. son:
  54. items:
  55. $ref: '#/definitions/md.RelationshipMap'
  56. type: array
  57. system_id:
  58. type: integer
  59. uid:
  60. type: integer
  61. type: object
  62. md.Response:
  63. properties:
  64. code:
  65. example: 响应码
  66. type: string
  67. data:
  68. description: 内容
  69. msg:
  70. example: 具体错误原因
  71. type: string
  72. type: object
  73. md.TreeNode:
  74. properties:
  75. avatar_url:
  76. type: string
  77. level:
  78. type: integer
  79. nickname:
  80. type: string
  81. phone:
  82. type: string
  83. pid:
  84. type: integer
  85. position:
  86. type: integer
  87. son:
  88. items:
  89. $ref: '#/definitions/md.TreeNode'
  90. type: array
  91. system_id:
  92. type: integer
  93. uid:
  94. type: integer
  95. type: object
  96. host: localhost:4001
  97. info:
  98. contact:
  99. email: 1239118001@qq.com
  100. name: dengbiao
  101. url: http://www.swagger.io/support
  102. description: 管理后台接口文档
  103. license:
  104. name: Apache 2.0
  105. url: http://www.apache.org/licenses/LICENSE-2.0.html
  106. termsOfService: http://swagger.io/terms/
  107. title: 蛋蛋星球-管理后台
  108. version: "1.0"
  109. paths:
  110. /api/demo:
  111. post:
  112. consumes:
  113. - application/json
  114. description: Demo样例测试
  115. parameters:
  116. - description: 用户名密码
  117. in: body
  118. name: req
  119. required: true
  120. schema: {}
  121. produces:
  122. - application/json
  123. responses:
  124. "200":
  125. description: token
  126. schema:
  127. additionalProperties: true
  128. type: object
  129. "400":
  130. description: 具体错误
  131. schema:
  132. $ref: '#/definitions/md.Response'
  133. summary: Demo测试
  134. tags:
  135. - Demo
  136. /api/login:
  137. post:
  138. consumes:
  139. - application/json
  140. description: 登入
  141. parameters:
  142. - description: 用户名密码
  143. in: body
  144. name: req
  145. required: true
  146. schema:
  147. $ref: '#/definitions/md.LoginReq'
  148. produces:
  149. - application/json
  150. responses:
  151. "200":
  152. description: token
  153. schema:
  154. $ref: '#/definitions/md.LoginResponse'
  155. "400":
  156. description: 具体错误
  157. schema:
  158. $ref: '#/definitions/md.Response'
  159. summary: 登陆
  160. tags:
  161. - 登录
  162. /api/publicPlatoon/exchangeUserPosition:
  163. post:
  164. consumes:
  165. - application/json
  166. description: 关系分布图(位置转换)
  167. parameters:
  168. - description: 验证参数Bearer和token空格拼接
  169. in: header
  170. name: Authorization
  171. required: true
  172. type: string
  173. - description: 需要交换的两个位置
  174. in: body
  175. name: req
  176. required: true
  177. schema: {}
  178. produces:
  179. - application/json
  180. responses:
  181. "200":
  182. description: 成功返回
  183. schema:
  184. type: ""
  185. "400":
  186. description: 具体错误
  187. schema:
  188. $ref: '#/definitions/md.Response'
  189. summary: 制度中心-公排管理-关系分布图(位置转换)
  190. tags:
  191. - 公排管理
  192. /api/publicPlatoon/findSubUserRelationshipMap:
  193. get:
  194. consumes:
  195. - application/json
  196. description: 关系分布图(获取指定用户上级)
  197. parameters:
  198. - description: 验证参数Bearer和token空格拼接
  199. in: header
  200. name: Authorization
  201. required: true
  202. type: string
  203. - description: 用户ID
  204. in: query
  205. name: uid
  206. required: true
  207. type: string
  208. produces:
  209. - application/json
  210. responses:
  211. "200":
  212. description: 具体数据
  213. schema:
  214. $ref: '#/definitions/md.RelationshipMap'
  215. "400":
  216. description: 具体错误
  217. schema:
  218. $ref: '#/definitions/md.Response'
  219. summary: 制度中心-公排管理-关系分布图(获取指定用户上级)
  220. tags:
  221. - 公排管理
  222. /api/publicPlatoon/findUserRelationshipMap:
  223. get:
  224. consumes:
  225. - application/json
  226. description: 关系分布图(获取指定用户下级)
  227. parameters:
  228. - description: 验证参数Bearer和token空格拼接
  229. in: header
  230. name: Authorization
  231. required: true
  232. type: string
  233. - description: 用户ID
  234. in: query
  235. name: uid
  236. required: true
  237. type: string
  238. produces:
  239. - application/json
  240. responses:
  241. "200":
  242. description: 具体数据
  243. schema:
  244. $ref: '#/definitions/md.TreeNode'
  245. "400":
  246. description: 具体错误
  247. schema:
  248. $ref: '#/definitions/md.Response'
  249. summary: 制度中心-公排管理-关系分布图(获取指定用户下级)
  250. tags:
  251. - 公排管理
  252. /api/publicPlatoon/getBasic:
  253. get:
  254. consumes:
  255. - application/json
  256. description: 公排基础设置(获取)
  257. parameters:
  258. - description: 验证参数Bearer和token空格拼接
  259. in: header
  260. name: Authorization
  261. required: true
  262. type: string
  263. produces:
  264. - application/json
  265. responses:
  266. "200":
  267. description: 具体数据
  268. schema:
  269. $ref: '#/definitions/md.GetPublicPlatoonBasicResp'
  270. "400":
  271. description: 具体错误
  272. schema:
  273. $ref: '#/definitions/md.Response'
  274. summary: 制度中心-公排管理-公排基础设置(获取)
  275. tags:
  276. - 公排管理
  277. /api/publicPlatoon/relationshipMap:
  278. get:
  279. consumes:
  280. - application/json
  281. description: 关系分布图(获取)
  282. parameters:
  283. - description: 验证参数Bearer和token空格拼接
  284. in: header
  285. name: Authorization
  286. required: true
  287. type: string
  288. - description: phone
  289. in: query
  290. name: phone
  291. required: true
  292. type: string
  293. - description: uid
  294. in: query
  295. name: uid
  296. required: true
  297. type: string
  298. produces:
  299. - application/json
  300. responses:
  301. "200":
  302. description: 具体数据
  303. schema:
  304. $ref: '#/definitions/md.TreeNode'
  305. "400":
  306. description: 具体错误
  307. schema:
  308. $ref: '#/definitions/md.Response'
  309. summary: 制度中心-公排管理-关系分布图(获取)
  310. tags:
  311. - 公排管理
  312. /api/publicPlatoon/updateBasic:
  313. put:
  314. consumes:
  315. - application/json
  316. description: 公排基础设置(修改)
  317. parameters:
  318. - description: 验证参数Bearer和token空格拼接
  319. in: header
  320. name: Authorization
  321. required: true
  322. type: string
  323. - description: 公排设置表单内容
  324. in: body
  325. name: req
  326. required: true
  327. schema: {}
  328. produces:
  329. - application/json
  330. responses:
  331. "200":
  332. description: success
  333. schema:
  334. type: string
  335. "400":
  336. description: 具体错误
  337. schema:
  338. $ref: '#/definitions/md.Response'
  339. summary: 制度中心-公排管理-公排基础设置(修改)
  340. tags:
  341. - 公排管理
  342. securityDefinitions:
  343. MasterID:
  344. in: header
  345. name: MasterID
  346. type: apiKey
  347. swagger: "2.0"