蛋蛋星球-客户端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

806 rader
27 KiB

  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "管理后台接口文档",
  5. "title": "蛋蛋星球-管理后台",
  6. "termsOfService": "http://swagger.io/terms/",
  7. "contact": {
  8. "name": "dengbiao",
  9. "url": "http://www.swagger.io/support",
  10. "email": "1239118001@qq.com"
  11. },
  12. "license": {
  13. "name": "Apache 2.0",
  14. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  15. },
  16. "version": "1.0"
  17. },
  18. "host": "localhost:4001",
  19. "paths": {
  20. "/api/demo": {
  21. "post": {
  22. "description": "Demo样例测试",
  23. "consumes": [
  24. "application/json"
  25. ],
  26. "produces": [
  27. "application/json"
  28. ],
  29. "tags": [
  30. "Demo"
  31. ],
  32. "summary": "Demo测试",
  33. "parameters": [
  34. {
  35. "description": "用户名密码",
  36. "name": "req",
  37. "in": "body",
  38. "required": true,
  39. "schema": {}
  40. }
  41. ],
  42. "responses": {
  43. "200": {
  44. "description": "token",
  45. "schema": {
  46. "type": "object",
  47. "additionalProperties": true
  48. }
  49. },
  50. "400": {
  51. "description": "具体错误",
  52. "schema": {
  53. "$ref": "#/definitions/md.Response"
  54. }
  55. }
  56. }
  57. }
  58. },
  59. "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd": {
  60. "post": {
  61. "description": "社区分红(新增)",
  62. "consumes": [
  63. "application/json"
  64. ],
  65. "produces": [
  66. "application/json"
  67. ],
  68. "tags": [
  69. "公排管理"
  70. ],
  71. "summary": "制度中心-公排管理-社区分红(新增)",
  72. "parameters": [
  73. {
  74. "type": "string",
  75. "description": "验证参数Bearer和token空格拼接",
  76. "name": "Authorization",
  77. "in": "header",
  78. "required": true
  79. },
  80. {
  81. "description": "分红名称、分红总量",
  82. "name": "req",
  83. "in": "body",
  84. "required": true,
  85. "schema": {
  86. "$ref": "#/definitions/md.AddCommunityDividendsReq"
  87. }
  88. }
  89. ],
  90. "responses": {
  91. "200": {
  92. "description": "插入数据 ID",
  93. "schema": {
  94. "type": "int"
  95. }
  96. },
  97. "400": {
  98. "description": "具体错误",
  99. "schema": {
  100. "$ref": "#/definitions/md.Response"
  101. }
  102. }
  103. }
  104. }
  105. },
  106. "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserAdd": {
  107. "post": {
  108. "description": "社区长列表(新增)",
  109. "consumes": [
  110. "application/json"
  111. ],
  112. "produces": [
  113. "application/json"
  114. ],
  115. "tags": [
  116. "公排管理"
  117. ],
  118. "summary": "制度中心-公排管理-社区长列表(新增)",
  119. "parameters": [
  120. {
  121. "type": "string",
  122. "description": "验证参数Bearer和token空格拼接",
  123. "name": "Authorization",
  124. "in": "header",
  125. "required": true
  126. },
  127. {
  128. "description": "新增社区长 ID、备注",
  129. "name": "req",
  130. "in": "body",
  131. "required": true,
  132. "schema": {
  133. "$ref": "#/definitions/md.AddCommunityDividendsWithUserReq"
  134. }
  135. }
  136. ],
  137. "responses": {
  138. "200": {
  139. "description": "插入数据 ID",
  140. "schema": {
  141. "type": "int"
  142. }
  143. },
  144. "400": {
  145. "description": "具体错误",
  146. "schema": {
  147. "$ref": "#/definitions/md.Response"
  148. }
  149. }
  150. }
  151. }
  152. },
  153. "/api/institutionalManagement/publicPlatoon/exchangeUserPosition": {
  154. "post": {
  155. "description": "关系分布图(位置转换)",
  156. "consumes": [
  157. "application/json"
  158. ],
  159. "produces": [
  160. "application/json"
  161. ],
  162. "tags": [
  163. "公排管理"
  164. ],
  165. "summary": "制度中心-公排管理-关系分布图(位置转换)",
  166. "parameters": [
  167. {
  168. "type": "string",
  169. "description": "验证参数Bearer和token空格拼接",
  170. "name": "Authorization",
  171. "in": "header",
  172. "required": true
  173. },
  174. {
  175. "description": "需要交换的两个位置",
  176. "name": "req",
  177. "in": "body",
  178. "required": true,
  179. "schema": {
  180. "$ref": "#/definitions/md.ExchangeUserPositionReq"
  181. }
  182. }
  183. ],
  184. "responses": {
  185. "200": {
  186. "description": "成功返回",
  187. "schema": {
  188. "type": ""
  189. }
  190. },
  191. "400": {
  192. "description": "具体错误",
  193. "schema": {
  194. "$ref": "#/definitions/md.Response"
  195. }
  196. }
  197. }
  198. }
  199. },
  200. "/api/institutionalManagement/publicPlatoon/findSubUserRelationshipMap": {
  201. "get": {
  202. "description": "关系分布图(获取指定用户上级)",
  203. "consumes": [
  204. "application/json"
  205. ],
  206. "produces": [
  207. "application/json"
  208. ],
  209. "tags": [
  210. "公排管理"
  211. ],
  212. "summary": "制度中心-公排管理-关系分布图(获取指定用户上级)",
  213. "parameters": [
  214. {
  215. "type": "string",
  216. "description": "验证参数Bearer和token空格拼接",
  217. "name": "Authorization",
  218. "in": "header",
  219. "required": true
  220. },
  221. {
  222. "type": "string",
  223. "description": "用户ID",
  224. "name": "uid",
  225. "in": "query",
  226. "required": true
  227. }
  228. ],
  229. "responses": {
  230. "200": {
  231. "description": "具体数据",
  232. "schema": {
  233. "$ref": "#/definitions/md.TreeNode"
  234. }
  235. },
  236. "400": {
  237. "description": "具体错误",
  238. "schema": {
  239. "$ref": "#/definitions/md.Response"
  240. }
  241. }
  242. }
  243. }
  244. },
  245. "/api/institutionalManagement/publicPlatoon/findUserRelationshipMap": {
  246. "get": {
  247. "description": "关系分布图(获取指定用户下级)",
  248. "consumes": [
  249. "application/json"
  250. ],
  251. "produces": [
  252. "application/json"
  253. ],
  254. "tags": [
  255. "公排管理"
  256. ],
  257. "summary": "制度中心-公排管理-关系分布图(获取指定用户下级)",
  258. "parameters": [
  259. {
  260. "type": "string",
  261. "description": "验证参数Bearer和token空格拼接",
  262. "name": "Authorization",
  263. "in": "header",
  264. "required": true
  265. },
  266. {
  267. "type": "string",
  268. "description": "用户ID",
  269. "name": "uid",
  270. "in": "query",
  271. "required": true
  272. }
  273. ],
  274. "responses": {
  275. "200": {
  276. "description": "具体数据",
  277. "schema": {
  278. "$ref": "#/definitions/md.TreeNode"
  279. }
  280. },
  281. "400": {
  282. "description": "具体错误",
  283. "schema": {
  284. "$ref": "#/definitions/md.Response"
  285. }
  286. }
  287. }
  288. }
  289. },
  290. "/api/institutionalManagement/publicPlatoon/getBasic": {
  291. "get": {
  292. "description": "公排基础设置(获取)",
  293. "consumes": [
  294. "application/json"
  295. ],
  296. "produces": [
  297. "application/json"
  298. ],
  299. "tags": [
  300. "公排管理"
  301. ],
  302. "summary": "制度中心-公排管理-公排基础设置(获取)",
  303. "parameters": [
  304. {
  305. "type": "string",
  306. "description": "验证参数Bearer和token空格拼接",
  307. "name": "Authorization",
  308. "in": "header",
  309. "required": true
  310. }
  311. ],
  312. "responses": {
  313. "200": {
  314. "description": "具体数据",
  315. "schema": {
  316. "$ref": "#/definitions/md.GetPublicPlatoonBasicResp"
  317. }
  318. },
  319. "400": {
  320. "description": "具体错误",
  321. "schema": {
  322. "$ref": "#/definitions/md.Response"
  323. }
  324. }
  325. }
  326. }
  327. },
  328. "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index": {
  329. "post": {
  330. "description": "免罚用户(查询)",
  331. "consumes": [
  332. "application/json"
  333. ],
  334. "produces": [
  335. "application/json"
  336. ],
  337. "tags": [
  338. "公排管理"
  339. ],
  340. "summary": "制度中心-公排管理-免罚用户(查询)",
  341. "parameters": [
  342. {
  343. "type": "string",
  344. "description": "验证参数Bearer和token空格拼接",
  345. "name": "Authorization",
  346. "in": "header",
  347. "required": true
  348. },
  349. {
  350. "description": "页数和行数必填,uid选填",
  351. "name": "req",
  352. "in": "body",
  353. "required": true,
  354. "schema": {
  355. "$ref": "#/definitions/md.GetFreePublishUserReq"
  356. }
  357. }
  358. ],
  359. "responses": {
  360. "200": {
  361. "description": "成功返回",
  362. "schema": {
  363. "$ref": "#/definitions/md.GetFreePublishUserResp"
  364. }
  365. },
  366. "400": {
  367. "description": "具体错误",
  368. "schema": {
  369. "$ref": "#/definitions/md.Response"
  370. }
  371. }
  372. }
  373. }
  374. },
  375. "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/save": {
  376. "post": {
  377. "description": "免罚用户(新增)",
  378. "consumes": [
  379. "application/json"
  380. ],
  381. "produces": [
  382. "application/json"
  383. ],
  384. "tags": [
  385. "公排管理"
  386. ],
  387. "summary": "制度中心-公排管理-免罚用户(新增)",
  388. "parameters": [
  389. {
  390. "type": "string",
  391. "description": "验证参数Bearer和token空格拼接",
  392. "name": "Authorization",
  393. "in": "header",
  394. "required": true
  395. },
  396. {
  397. "description": "页数和行数必填,uid选填",
  398. "name": "req",
  399. "in": "body",
  400. "required": true,
  401. "schema": {
  402. "$ref": "#/definitions/md.AddFreePublishUserReq"
  403. }
  404. }
  405. ],
  406. "responses": {
  407. "200": {
  408. "description": "插入数据 ID",
  409. "schema": {
  410. "type": "int"
  411. }
  412. },
  413. "400": {
  414. "description": "具体错误",
  415. "schema": {
  416. "$ref": "#/definitions/md.Response"
  417. }
  418. }
  419. }
  420. }
  421. },
  422. "/api/institutionalManagement/publicPlatoon/relationshipMap": {
  423. "get": {
  424. "description": "关系分布图(获取)",
  425. "consumes": [
  426. "application/json"
  427. ],
  428. "produces": [
  429. "application/json"
  430. ],
  431. "tags": [
  432. "公排管理"
  433. ],
  434. "summary": "制度中心-公排管理-关系分布图(获取)",
  435. "parameters": [
  436. {
  437. "type": "string",
  438. "description": "验证参数Bearer和token空格拼接",
  439. "name": "Authorization",
  440. "in": "header",
  441. "required": true
  442. },
  443. {
  444. "type": "string",
  445. "description": "phone",
  446. "name": "phone",
  447. "in": "query",
  448. "required": true
  449. },
  450. {
  451. "type": "string",
  452. "description": "uid",
  453. "name": "uid",
  454. "in": "query",
  455. "required": true
  456. }
  457. ],
  458. "responses": {
  459. "200": {
  460. "description": "具体数据",
  461. "schema": {
  462. "$ref": "#/definitions/md.TreeNode"
  463. }
  464. },
  465. "400": {
  466. "description": "具体错误",
  467. "schema": {
  468. "$ref": "#/definitions/md.Response"
  469. }
  470. }
  471. }
  472. }
  473. },
  474. "/api/institutionalManagement/publicPlatoon/updateBasic": {
  475. "put": {
  476. "description": "公排基础设置(修改)",
  477. "consumes": [
  478. "application/json"
  479. ],
  480. "produces": [
  481. "application/json"
  482. ],
  483. "tags": [
  484. "公排管理"
  485. ],
  486. "summary": "制度中心-公排管理-公排基础设置(修改)",
  487. "parameters": [
  488. {
  489. "type": "string",
  490. "description": "验证参数Bearer和token空格拼接",
  491. "name": "Authorization",
  492. "in": "header",
  493. "required": true
  494. },
  495. {
  496. "description": "公排设置表单内容",
  497. "name": "req",
  498. "in": "body",
  499. "required": true,
  500. "schema": {
  501. "$ref": "#/definitions/md.UpdatePublicPlatoonBasicReq"
  502. }
  503. }
  504. ],
  505. "responses": {
  506. "200": {
  507. "description": "success",
  508. "schema": {
  509. "type": "string"
  510. }
  511. },
  512. "400": {
  513. "description": "具体错误",
  514. "schema": {
  515. "$ref": "#/definitions/md.Response"
  516. }
  517. }
  518. }
  519. }
  520. },
  521. "/api/login": {
  522. "post": {
  523. "description": "登入",
  524. "consumes": [
  525. "application/json"
  526. ],
  527. "produces": [
  528. "application/json"
  529. ],
  530. "tags": [
  531. "登录"
  532. ],
  533. "summary": "登陆",
  534. "parameters": [
  535. {
  536. "description": "用户名密码",
  537. "name": "req",
  538. "in": "body",
  539. "required": true,
  540. "schema": {
  541. "$ref": "#/definitions/md.LoginReq"
  542. }
  543. }
  544. ],
  545. "responses": {
  546. "200": {
  547. "description": "token",
  548. "schema": {
  549. "$ref": "#/definitions/md.LoginResponse"
  550. }
  551. },
  552. "400": {
  553. "description": "具体错误",
  554. "schema": {
  555. "$ref": "#/definitions/md.Response"
  556. }
  557. }
  558. }
  559. }
  560. }
  561. },
  562. "definitions": {
  563. "md.AddCommunityDividendsReq": {
  564. "type": "object",
  565. "properties": {
  566. "name": {
  567. "type": "string"
  568. },
  569. "nums": {
  570. "type": "integer"
  571. }
  572. }
  573. },
  574. "md.AddCommunityDividendsWithUserReq": {
  575. "type": "object",
  576. "properties": {
  577. "memo": {
  578. "type": "string"
  579. },
  580. "uid": {
  581. "type": "integer"
  582. }
  583. }
  584. },
  585. "md.AddFreePublishUserReq": {
  586. "type": "object",
  587. "properties": {
  588. "uid": {
  589. "type": "integer"
  590. }
  591. }
  592. },
  593. "md.ExchangeUserPositionReq": {
  594. "type": "object",
  595. "properties": {
  596. "position_1": {
  597. "description": "位置1,具体值取返回数据中的 system_id",
  598. "type": "integer"
  599. },
  600. "position_2": {
  601. "description": "位置2,具体值取返回数据中的 system_id",
  602. "type": "integer"
  603. }
  604. }
  605. },
  606. "md.FreePublishUserNode": {
  607. "type": "object",
  608. "properties": {
  609. "nickname": {
  610. "type": "string"
  611. },
  612. "phone": {
  613. "type": "string"
  614. },
  615. "uid": {
  616. "type": "integer"
  617. }
  618. }
  619. },
  620. "md.GetFreePublishUserReq": {
  621. "type": "object",
  622. "properties": {
  623. "limit": {
  624. "type": "integer"
  625. },
  626. "page": {
  627. "type": "integer"
  628. },
  629. "uid": {
  630. "type": "integer"
  631. }
  632. }
  633. },
  634. "md.GetFreePublishUserResp": {
  635. "type": "object",
  636. "properties": {
  637. "list": {
  638. "type": "array",
  639. "items": {
  640. "$ref": "#/definitions/md.FreePublishUserNode"
  641. }
  642. },
  643. "paginate": {
  644. "$ref": "#/definitions/md.Paginate"
  645. }
  646. }
  647. },
  648. "md.GetPublicPlatoonBasicResp": {
  649. "type": "object",
  650. "properties": {
  651. "is_open": {
  652. "type": "integer"
  653. },
  654. "is_self_active_get_team_revenue": {
  655. "type": "integer"
  656. },
  657. "originator_uid": {
  658. "type": "integer"
  659. },
  660. "several_rows": {
  661. "type": "integer"
  662. },
  663. "several_times": {
  664. "type": "integer"
  665. },
  666. "system_punish_replace": {
  667. "type": "integer"
  668. },
  669. "system_punish_replace_value": {
  670. "type": "integer"
  671. }
  672. }
  673. },
  674. "md.LoginReq": {
  675. "type": "object",
  676. "required": [
  677. "password",
  678. "username"
  679. ],
  680. "properties": {
  681. "code": {
  682. "type": "string",
  683. "example": "验证码"
  684. },
  685. "password": {
  686. "type": "string",
  687. "example": "登录密码"
  688. },
  689. "username": {
  690. "type": "string",
  691. "example": "登录账号"
  692. }
  693. }
  694. },
  695. "md.LoginResponse": {
  696. "type": "object",
  697. "properties": {
  698. "token": {
  699. "type": "string"
  700. }
  701. }
  702. },
  703. "md.Paginate": {
  704. "type": "object",
  705. "properties": {
  706. "limit": {
  707. "type": "integer"
  708. },
  709. "page": {
  710. "type": "integer"
  711. },
  712. "total": {
  713. "type": "integer"
  714. }
  715. }
  716. },
  717. "md.Response": {
  718. "type": "object",
  719. "properties": {
  720. "code": {
  721. "type": "string",
  722. "example": "响应码"
  723. },
  724. "data": {
  725. "description": "内容"
  726. },
  727. "msg": {
  728. "type": "string",
  729. "example": "具体错误原因"
  730. }
  731. }
  732. },
  733. "md.TreeNode": {
  734. "type": "object",
  735. "properties": {
  736. "avatar_url": {
  737. "type": "string",
  738. "example": "头像"
  739. },
  740. "level": {
  741. "type": "integer"
  742. },
  743. "nickname": {
  744. "type": "string",
  745. "example": "昵称"
  746. },
  747. "phone": {
  748. "type": "string",
  749. "example": "手机号"
  750. },
  751. "pid": {
  752. "type": "integer"
  753. },
  754. "position": {
  755. "type": "integer"
  756. },
  757. "son": {
  758. "type": "array",
  759. "items": {
  760. "$ref": "#/definitions/md.TreeNode"
  761. }
  762. },
  763. "system_id": {
  764. "description": "公排网中id",
  765. "type": "integer"
  766. },
  767. "uid": {
  768. "type": "integer"
  769. }
  770. }
  771. },
  772. "md.UpdatePublicPlatoonBasicReq": {
  773. "type": "object",
  774. "properties": {
  775. "is_open": {
  776. "type": "integer"
  777. },
  778. "is_self_active_get_team_revenue": {
  779. "type": "integer"
  780. },
  781. "originator_uid": {
  782. "type": "integer"
  783. },
  784. "several_rows": {
  785. "type": "integer"
  786. },
  787. "several_times": {
  788. "type": "integer"
  789. },
  790. "system_punish_replace": {
  791. "type": "integer"
  792. },
  793. "system_punish_replace_value": {
  794. "type": "integer"
  795. }
  796. }
  797. }
  798. },
  799. "securityDefinitions": {
  800. "MasterID": {
  801. "type": "apiKey",
  802. "name": "MasterID",
  803. "in": "header"
  804. }
  805. }
  806. }