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

832 行
27 KiB

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