蛋蛋星球-客户端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

800 строки
26 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. "type": "integer"
  598. },
  599. "position_2": {
  600. "type": "integer"
  601. }
  602. }
  603. },
  604. "md.FreePublishUserNode": {
  605. "type": "object",
  606. "properties": {
  607. "nickname": {
  608. "type": "string"
  609. },
  610. "phone": {
  611. "type": "string"
  612. },
  613. "uid": {
  614. "type": "integer"
  615. }
  616. }
  617. },
  618. "md.GetFreePublishUserReq": {
  619. "type": "object",
  620. "properties": {
  621. "limit": {
  622. "type": "integer"
  623. },
  624. "page": {
  625. "type": "integer"
  626. },
  627. "uid": {
  628. "type": "integer"
  629. }
  630. }
  631. },
  632. "md.GetFreePublishUserResp": {
  633. "type": "object",
  634. "properties": {
  635. "list": {
  636. "type": "array",
  637. "items": {
  638. "$ref": "#/definitions/md.FreePublishUserNode"
  639. }
  640. },
  641. "paginate": {
  642. "$ref": "#/definitions/md.Paginate"
  643. }
  644. }
  645. },
  646. "md.GetPublicPlatoonBasicResp": {
  647. "type": "object",
  648. "properties": {
  649. "is_open": {
  650. "type": "integer"
  651. },
  652. "is_self_active_get_team_revenue": {
  653. "type": "integer"
  654. },
  655. "originator_uid": {
  656. "type": "integer"
  657. },
  658. "several_rows": {
  659. "type": "integer"
  660. },
  661. "several_times": {
  662. "type": "integer"
  663. },
  664. "system_punish_replace": {
  665. "type": "integer"
  666. },
  667. "system_punish_replace_value": {
  668. "type": "integer"
  669. }
  670. }
  671. },
  672. "md.LoginReq": {
  673. "type": "object",
  674. "required": [
  675. "password",
  676. "username"
  677. ],
  678. "properties": {
  679. "code": {
  680. "type": "string",
  681. "example": "验证码"
  682. },
  683. "password": {
  684. "type": "string",
  685. "example": "登录密码"
  686. },
  687. "username": {
  688. "type": "string",
  689. "example": "登录账号"
  690. }
  691. }
  692. },
  693. "md.LoginResponse": {
  694. "type": "object",
  695. "properties": {
  696. "token": {
  697. "type": "string"
  698. }
  699. }
  700. },
  701. "md.Paginate": {
  702. "type": "object",
  703. "properties": {
  704. "limit": {
  705. "type": "integer"
  706. },
  707. "page": {
  708. "type": "integer"
  709. },
  710. "total": {
  711. "type": "integer"
  712. }
  713. }
  714. },
  715. "md.Response": {
  716. "type": "object",
  717. "properties": {
  718. "code": {
  719. "type": "string",
  720. "example": "响应码"
  721. },
  722. "data": {
  723. "description": "内容"
  724. },
  725. "msg": {
  726. "type": "string",
  727. "example": "具体错误原因"
  728. }
  729. }
  730. },
  731. "md.TreeNode": {
  732. "type": "object",
  733. "properties": {
  734. "avatar_url": {
  735. "type": "string"
  736. },
  737. "level": {
  738. "type": "integer"
  739. },
  740. "nickname": {
  741. "type": "string"
  742. },
  743. "phone": {
  744. "type": "string"
  745. },
  746. "pid": {
  747. "type": "integer"
  748. },
  749. "position": {
  750. "type": "integer"
  751. },
  752. "son": {
  753. "type": "array",
  754. "items": {
  755. "$ref": "#/definitions/md.TreeNode"
  756. }
  757. },
  758. "system_id": {
  759. "type": "integer"
  760. },
  761. "uid": {
  762. "type": "integer"
  763. }
  764. }
  765. },
  766. "md.UpdatePublicPlatoonBasicReq": {
  767. "type": "object",
  768. "properties": {
  769. "is_open": {
  770. "type": "integer"
  771. },
  772. "is_self_active_get_team_revenue": {
  773. "type": "integer"
  774. },
  775. "originator_uid": {
  776. "type": "integer"
  777. },
  778. "several_rows": {
  779. "type": "integer"
  780. },
  781. "several_times": {
  782. "type": "integer"
  783. },
  784. "system_punish_replace": {
  785. "type": "integer"
  786. },
  787. "system_punish_replace_value": {
  788. "type": "integer"
  789. }
  790. }
  791. }
  792. },
  793. "securityDefinitions": {
  794. "MasterID": {
  795. "type": "apiKey",
  796. "name": "MasterID",
  797. "in": "header"
  798. }
  799. }
  800. }