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

530 lines
13 KiB

  1. definitions:
  2. md.AddCommunityDividendsReq:
  3. properties:
  4. name:
  5. type: string
  6. nums:
  7. type: integer
  8. type: object
  9. md.AddCommunityDividendsWithUserReq:
  10. properties:
  11. memo:
  12. type: string
  13. uid:
  14. type: integer
  15. type: object
  16. md.AddFreePublishUserReq:
  17. properties:
  18. uid:
  19. type: integer
  20. type: object
  21. md.ExchangeUserPositionReq:
  22. properties:
  23. position_1:
  24. type: integer
  25. position_2:
  26. type: integer
  27. type: object
  28. md.FreePublishUserNode:
  29. properties:
  30. nickname:
  31. type: string
  32. phone:
  33. type: string
  34. uid:
  35. type: integer
  36. type: object
  37. md.GetFreePublishUserReq:
  38. properties:
  39. limit:
  40. type: integer
  41. page:
  42. type: integer
  43. uid:
  44. type: integer
  45. type: object
  46. md.GetFreePublishUserResp:
  47. properties:
  48. list:
  49. items:
  50. $ref: '#/definitions/md.FreePublishUserNode'
  51. type: array
  52. paginate:
  53. $ref: '#/definitions/md.Paginate'
  54. type: object
  55. md.GetPublicPlatoonBasicResp:
  56. properties:
  57. is_open:
  58. type: integer
  59. is_self_active_get_team_revenue:
  60. type: integer
  61. originator_uid:
  62. type: integer
  63. several_rows:
  64. type: integer
  65. several_times:
  66. type: integer
  67. system_punish_replace:
  68. type: integer
  69. system_punish_replace_value:
  70. type: integer
  71. type: object
  72. md.LoginReq:
  73. properties:
  74. code:
  75. example: 验证码
  76. type: string
  77. password:
  78. example: 登录密码
  79. type: string
  80. username:
  81. example: 登录账号
  82. type: string
  83. required:
  84. - password
  85. - username
  86. type: object
  87. md.LoginResponse:
  88. properties:
  89. token:
  90. type: string
  91. type: object
  92. md.Paginate:
  93. properties:
  94. limit:
  95. type: integer
  96. page:
  97. type: integer
  98. total:
  99. type: integer
  100. type: object
  101. md.Response:
  102. properties:
  103. code:
  104. example: 响应码
  105. type: string
  106. data:
  107. description: 内容
  108. msg:
  109. example: 具体错误原因
  110. type: string
  111. type: object
  112. md.TreeNode:
  113. properties:
  114. avatar_url:
  115. type: string
  116. level:
  117. type: integer
  118. nickname:
  119. type: string
  120. phone:
  121. type: string
  122. pid:
  123. type: integer
  124. position:
  125. type: integer
  126. son:
  127. items:
  128. $ref: '#/definitions/md.TreeNode'
  129. type: array
  130. system_id:
  131. type: integer
  132. uid:
  133. type: integer
  134. type: object
  135. md.UpdatePublicPlatoonBasicReq:
  136. properties:
  137. is_open:
  138. type: integer
  139. is_self_active_get_team_revenue:
  140. type: integer
  141. originator_uid:
  142. type: integer
  143. several_rows:
  144. type: integer
  145. several_times:
  146. type: integer
  147. system_punish_replace:
  148. type: integer
  149. system_punish_replace_value:
  150. type: integer
  151. type: object
  152. host: localhost:4001
  153. info:
  154. contact:
  155. email: 1239118001@qq.com
  156. name: dengbiao
  157. url: http://www.swagger.io/support
  158. description: 管理后台接口文档
  159. license:
  160. name: Apache 2.0
  161. url: http://www.apache.org/licenses/LICENSE-2.0.html
  162. termsOfService: http://swagger.io/terms/
  163. title: 蛋蛋星球-管理后台
  164. version: "1.0"
  165. paths:
  166. /api/demo:
  167. post:
  168. consumes:
  169. - application/json
  170. description: Demo样例测试
  171. parameters:
  172. - description: 用户名密码
  173. in: body
  174. name: req
  175. required: true
  176. schema: {}
  177. produces:
  178. - application/json
  179. responses:
  180. "200":
  181. description: token
  182. schema:
  183. additionalProperties: true
  184. type: object
  185. "400":
  186. description: 具体错误
  187. schema:
  188. $ref: '#/definitions/md.Response'
  189. summary: Demo测试
  190. tags:
  191. - Demo
  192. /api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd:
  193. post:
  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: 分红名称、分红总量
  204. in: body
  205. name: req
  206. required: true
  207. schema:
  208. $ref: '#/definitions/md.AddCommunityDividendsReq'
  209. produces:
  210. - application/json
  211. responses:
  212. "200":
  213. description: 插入数据 ID
  214. schema:
  215. type: int
  216. "400":
  217. description: 具体错误
  218. schema:
  219. $ref: '#/definitions/md.Response'
  220. summary: 制度中心-公排管理-社区分红(新增)
  221. tags:
  222. - 公排管理
  223. /api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserAdd:
  224. post:
  225. consumes:
  226. - application/json
  227. description: 社区长列表(新增)
  228. parameters:
  229. - description: 验证参数Bearer和token空格拼接
  230. in: header
  231. name: Authorization
  232. required: true
  233. type: string
  234. - description: 新增社区长 ID、备注
  235. in: body
  236. name: req
  237. required: true
  238. schema:
  239. $ref: '#/definitions/md.AddCommunityDividendsWithUserReq'
  240. produces:
  241. - application/json
  242. responses:
  243. "200":
  244. description: 插入数据 ID
  245. schema:
  246. type: int
  247. "400":
  248. description: 具体错误
  249. schema:
  250. $ref: '#/definitions/md.Response'
  251. summary: 制度中心-公排管理-社区长列表(新增)
  252. tags:
  253. - 公排管理
  254. /api/institutionalManagement/publicPlatoon/exchangeUserPosition:
  255. post:
  256. consumes:
  257. - application/json
  258. description: 关系分布图(位置转换)
  259. parameters:
  260. - description: 验证参数Bearer和token空格拼接
  261. in: header
  262. name: Authorization
  263. required: true
  264. type: string
  265. - description: 需要交换的两个位置
  266. in: body
  267. name: req
  268. required: true
  269. schema:
  270. $ref: '#/definitions/md.ExchangeUserPositionReq'
  271. produces:
  272. - application/json
  273. responses:
  274. "200":
  275. description: 成功返回
  276. schema:
  277. type: ""
  278. "400":
  279. description: 具体错误
  280. schema:
  281. $ref: '#/definitions/md.Response'
  282. summary: 制度中心-公排管理-关系分布图(位置转换)
  283. tags:
  284. - 公排管理
  285. /api/institutionalManagement/publicPlatoon/findSubUserRelationshipMap:
  286. get:
  287. consumes:
  288. - application/json
  289. description: 关系分布图(获取指定用户上级)
  290. parameters:
  291. - description: 验证参数Bearer和token空格拼接
  292. in: header
  293. name: Authorization
  294. required: true
  295. type: string
  296. - description: 用户ID
  297. in: query
  298. name: uid
  299. required: true
  300. type: string
  301. produces:
  302. - application/json
  303. responses:
  304. "200":
  305. description: 具体数据
  306. schema:
  307. $ref: '#/definitions/md.TreeNode'
  308. "400":
  309. description: 具体错误
  310. schema:
  311. $ref: '#/definitions/md.Response'
  312. summary: 制度中心-公排管理-关系分布图(获取指定用户上级)
  313. tags:
  314. - 公排管理
  315. /api/institutionalManagement/publicPlatoon/findUserRelationshipMap:
  316. get:
  317. consumes:
  318. - application/json
  319. description: 关系分布图(获取指定用户下级)
  320. parameters:
  321. - description: 验证参数Bearer和token空格拼接
  322. in: header
  323. name: Authorization
  324. required: true
  325. type: string
  326. - description: 用户ID
  327. in: query
  328. name: uid
  329. required: true
  330. type: string
  331. produces:
  332. - application/json
  333. responses:
  334. "200":
  335. description: 具体数据
  336. schema:
  337. $ref: '#/definitions/md.TreeNode'
  338. "400":
  339. description: 具体错误
  340. schema:
  341. $ref: '#/definitions/md.Response'
  342. summary: 制度中心-公排管理-关系分布图(获取指定用户下级)
  343. tags:
  344. - 公排管理
  345. /api/institutionalManagement/publicPlatoon/getBasic:
  346. get:
  347. consumes:
  348. - application/json
  349. description: 公排基础设置(获取)
  350. parameters:
  351. - description: 验证参数Bearer和token空格拼接
  352. in: header
  353. name: Authorization
  354. required: true
  355. type: string
  356. produces:
  357. - application/json
  358. responses:
  359. "200":
  360. description: 具体数据
  361. schema:
  362. $ref: '#/definitions/md.GetPublicPlatoonBasicResp'
  363. "400":
  364. description: 具体错误
  365. schema:
  366. $ref: '#/definitions/md.Response'
  367. summary: 制度中心-公排管理-公排基础设置(获取)
  368. tags:
  369. - 公排管理
  370. /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index:
  371. post:
  372. consumes:
  373. - application/json
  374. description: 免罚用户(查询)
  375. parameters:
  376. - description: 验证参数Bearer和token空格拼接
  377. in: header
  378. name: Authorization
  379. required: true
  380. type: string
  381. - description: 页数和行数必填,uid选填
  382. in: body
  383. name: req
  384. required: true
  385. schema:
  386. $ref: '#/definitions/md.GetFreePublishUserReq'
  387. produces:
  388. - application/json
  389. responses:
  390. "200":
  391. description: 成功返回
  392. schema:
  393. $ref: '#/definitions/md.GetFreePublishUserResp'
  394. "400":
  395. description: 具体错误
  396. schema:
  397. $ref: '#/definitions/md.Response'
  398. summary: 制度中心-公排管理-免罚用户(查询)
  399. tags:
  400. - 公排管理
  401. /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/save:
  402. post:
  403. consumes:
  404. - application/json
  405. description: 免罚用户(新增)
  406. parameters:
  407. - description: 验证参数Bearer和token空格拼接
  408. in: header
  409. name: Authorization
  410. required: true
  411. type: string
  412. - description: 页数和行数必填,uid选填
  413. in: body
  414. name: req
  415. required: true
  416. schema:
  417. $ref: '#/definitions/md.AddFreePublishUserReq'
  418. produces:
  419. - application/json
  420. responses:
  421. "200":
  422. description: 插入数据 ID
  423. schema:
  424. type: int
  425. "400":
  426. description: 具体错误
  427. schema:
  428. $ref: '#/definitions/md.Response'
  429. summary: 制度中心-公排管理-免罚用户(新增)
  430. tags:
  431. - 公排管理
  432. /api/institutionalManagement/publicPlatoon/relationshipMap:
  433. get:
  434. consumes:
  435. - application/json
  436. description: 关系分布图(获取)
  437. parameters:
  438. - description: 验证参数Bearer和token空格拼接
  439. in: header
  440. name: Authorization
  441. required: true
  442. type: string
  443. - description: phone
  444. in: query
  445. name: phone
  446. required: true
  447. type: string
  448. - description: uid
  449. in: query
  450. name: uid
  451. required: true
  452. type: string
  453. produces:
  454. - application/json
  455. responses:
  456. "200":
  457. description: 具体数据
  458. schema:
  459. $ref: '#/definitions/md.TreeNode'
  460. "400":
  461. description: 具体错误
  462. schema:
  463. $ref: '#/definitions/md.Response'
  464. summary: 制度中心-公排管理-关系分布图(获取)
  465. tags:
  466. - 公排管理
  467. /api/institutionalManagement/publicPlatoon/updateBasic:
  468. put:
  469. consumes:
  470. - application/json
  471. description: 公排基础设置(修改)
  472. parameters:
  473. - description: 验证参数Bearer和token空格拼接
  474. in: header
  475. name: Authorization
  476. required: true
  477. type: string
  478. - description: 公排设置表单内容
  479. in: body
  480. name: req
  481. required: true
  482. schema:
  483. $ref: '#/definitions/md.UpdatePublicPlatoonBasicReq'
  484. produces:
  485. - application/json
  486. responses:
  487. "200":
  488. description: success
  489. schema:
  490. type: string
  491. "400":
  492. description: 具体错误
  493. schema:
  494. $ref: '#/definitions/md.Response'
  495. summary: 制度中心-公排管理-公排基础设置(修改)
  496. tags:
  497. - 公排管理
  498. /api/login:
  499. post:
  500. consumes:
  501. - application/json
  502. description: 登入
  503. parameters:
  504. - description: 用户名密码
  505. in: body
  506. name: req
  507. required: true
  508. schema:
  509. $ref: '#/definitions/md.LoginReq'
  510. produces:
  511. - application/json
  512. responses:
  513. "200":
  514. description: token
  515. schema:
  516. $ref: '#/definitions/md.LoginResponse'
  517. "400":
  518. description: 具体错误
  519. schema:
  520. $ref: '#/definitions/md.Response'
  521. summary: 登陆
  522. tags:
  523. - 登录
  524. securityDefinitions:
  525. MasterID:
  526. in: header
  527. name: MasterID
  528. type: apiKey
  529. swagger: "2.0"