广告平台(总站长使用)
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.
 
 
 
 
 
 

1824 lines
58 KiB

  1. // 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/comm/basicGet": {
  26. "get": {
  27. "description": "获取系统信息",
  28. "consumes": [
  29. "application/json"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "公共模块-获取系统信息"
  36. ],
  37. "summary": "获取系统信息",
  38. "parameters": [
  39. {
  40. "type": "string",
  41. "description": "验证参数Bearer和token空格拼接",
  42. "name": "Authorization",
  43. "in": "header",
  44. "required": true
  45. }
  46. ],
  47. "responses": {
  48. "200": {
  49. "description": "success",
  50. "schema": {
  51. "type": "string"
  52. }
  53. },
  54. "400": {
  55. "description": "具体错误",
  56. "schema": {
  57. "$ref": "#/definitions/md.Response"
  58. }
  59. }
  60. }
  61. }
  62. },
  63. "/api/dataCenter/generate/data/detail": {
  64. "post": {
  65. "description": "数据中心-分成数据-详情",
  66. "consumes": [
  67. "application/json"
  68. ],
  69. "produces": [
  70. "application/json"
  71. ],
  72. "tags": [
  73. "数据中心"
  74. ],
  75. "summary": "分成数据-详情",
  76. "parameters": [
  77. {
  78. "type": "string",
  79. "description": "验证参数Bearer和token空格拼接",
  80. "name": "Authorization",
  81. "in": "header",
  82. "required": true
  83. },
  84. {
  85. "description": "请求参数",
  86. "name": "args",
  87. "in": "body",
  88. "required": true,
  89. "schema": {
  90. "$ref": "#/definitions/md.DataCenterGenerateDataCommReq"
  91. }
  92. }
  93. ],
  94. "responses": {
  95. "200": {
  96. "description": "具体看返回内容 ",
  97. "schema": {
  98. "$ref": "#/definitions/md.DataCenterGenerateDataDetailData"
  99. }
  100. },
  101. "400": {
  102. "description": "具体错误",
  103. "schema": {
  104. "$ref": "#/definitions/md.Response"
  105. }
  106. }
  107. }
  108. }
  109. },
  110. "/api/dataCenter/generate/data/list": {
  111. "post": {
  112. "description": "数据中心-分成数据-列表",
  113. "consumes": [
  114. "application/json"
  115. ],
  116. "produces": [
  117. "application/json"
  118. ],
  119. "tags": [
  120. "数据中心"
  121. ],
  122. "summary": "分成数据-列表",
  123. "parameters": [
  124. {
  125. "type": "string",
  126. "description": "验证参数Bearer和token空格拼接",
  127. "name": "Authorization",
  128. "in": "header",
  129. "required": true
  130. },
  131. {
  132. "description": "请求参数",
  133. "name": "args",
  134. "in": "body",
  135. "required": true,
  136. "schema": {
  137. "$ref": "#/definitions/md.DataCenterGenerateDataReq"
  138. }
  139. }
  140. ],
  141. "responses": {
  142. "200": {
  143. "description": "具体看返回内容 这是data里面的数据",
  144. "schema": {
  145. "$ref": "#/definitions/md.DataCenterGenerateDataRes"
  146. }
  147. },
  148. "400": {
  149. "description": "具体错误",
  150. "schema": {
  151. "$ref": "#/definitions/md.Response"
  152. }
  153. }
  154. }
  155. }
  156. },
  157. "/api/dataCenter/original/data/list": {
  158. "post": {
  159. "description": "数据中心-原始数据-列表",
  160. "consumes": [
  161. "application/json"
  162. ],
  163. "produces": [
  164. "application/json"
  165. ],
  166. "tags": [
  167. "数据中心"
  168. ],
  169. "summary": "原始数据-列表",
  170. "parameters": [
  171. {
  172. "type": "string",
  173. "description": "验证参数Bearer和token空格拼接",
  174. "name": "Authorization",
  175. "in": "header",
  176. "required": true
  177. },
  178. {
  179. "description": "请求参数",
  180. "name": "args",
  181. "in": "body",
  182. "required": true,
  183. "schema": {
  184. "$ref": "#/definitions/md.DataCenterOriginalDataReq"
  185. }
  186. }
  187. ],
  188. "responses": {
  189. "200": {
  190. "description": "具体看返回内容 这是data里面的数据",
  191. "schema": {
  192. "$ref": "#/definitions/md.DataCenterOriginalDataRes"
  193. }
  194. },
  195. "400": {
  196. "description": "具体错误",
  197. "schema": {
  198. "$ref": "#/definitions/md.Response"
  199. }
  200. }
  201. }
  202. }
  203. },
  204. "/api/login": {
  205. "post": {
  206. "description": "登入",
  207. "consumes": [
  208. "application/json"
  209. ],
  210. "produces": [
  211. "application/json"
  212. ],
  213. "tags": [
  214. "登录注册"
  215. ],
  216. "summary": "登陆",
  217. "parameters": [
  218. {
  219. "description": "用户名密码",
  220. "name": "req",
  221. "in": "body",
  222. "required": true,
  223. "schema": {
  224. "$ref": "#/definitions/md.LoginReq"
  225. }
  226. }
  227. ],
  228. "responses": {
  229. "200": {
  230. "description": "token",
  231. "schema": {
  232. "$ref": "#/definitions/md.LoginResponse"
  233. }
  234. },
  235. "400": {
  236. "description": "具体错误",
  237. "schema": {
  238. "$ref": "#/definitions/md.Response"
  239. }
  240. }
  241. }
  242. }
  243. },
  244. "/api/loginInfo": {
  245. "get": {
  246. "description": "登录信息",
  247. "consumes": [
  248. "application/json"
  249. ],
  250. "produces": [
  251. "application/json"
  252. ],
  253. "tags": [
  254. "登录注册"
  255. ],
  256. "summary": "登录信息",
  257. "parameters": [
  258. {
  259. "description": "用户名密码",
  260. "name": "req",
  261. "in": "body",
  262. "required": true,
  263. "schema": {
  264. "$ref": "#/definitions/md.LoginReq"
  265. }
  266. }
  267. ],
  268. "responses": {
  269. "200": {
  270. "description": "token",
  271. "schema": {
  272. "$ref": "#/definitions/md.LoginInfoResponse"
  273. }
  274. },
  275. "400": {
  276. "description": "具体错误",
  277. "schema": {
  278. "$ref": "#/definitions/md.Response"
  279. }
  280. }
  281. }
  282. }
  283. },
  284. "/api/role/addAdmin": {
  285. "post": {
  286. "description": "权限管理-新增管理员",
  287. "consumes": [
  288. "application/json"
  289. ],
  290. "produces": [
  291. "application/json"
  292. ],
  293. "tags": [
  294. "权限管理"
  295. ],
  296. "summary": "新增管理员",
  297. "parameters": [
  298. {
  299. "type": "string",
  300. "description": "验证参数Bearer和token空格拼接",
  301. "name": "Authorization",
  302. "in": "header",
  303. "required": true
  304. },
  305. {
  306. "description": "请求参数",
  307. "name": "args",
  308. "in": "body",
  309. "required": true,
  310. "schema": {
  311. "$ref": "#/definitions/md.AddAdminReq"
  312. }
  313. }
  314. ],
  315. "responses": {
  316. "200": {
  317. "description": "success",
  318. "schema": {
  319. "type": "string"
  320. }
  321. },
  322. "400": {
  323. "description": "具体错误",
  324. "schema": {
  325. "$ref": "#/definitions/md.Response"
  326. }
  327. }
  328. }
  329. }
  330. },
  331. "/api/role/addRole": {
  332. "post": {
  333. "description": "权限管理-添加角色",
  334. "consumes": [
  335. "application/json"
  336. ],
  337. "produces": [
  338. "application/json"
  339. ],
  340. "tags": [
  341. "权限管理"
  342. ],
  343. "summary": "添加角色",
  344. "parameters": [
  345. {
  346. "type": "string",
  347. "description": "验证参数Bearer和token空格拼接",
  348. "name": "Authorization",
  349. "in": "header",
  350. "required": true
  351. },
  352. {
  353. "description": "请求参数",
  354. "name": "args",
  355. "in": "body",
  356. "required": true,
  357. "schema": {
  358. "$ref": "#/definitions/md.AddRoleReq"
  359. }
  360. }
  361. ],
  362. "responses": {
  363. "200": {
  364. "description": "success",
  365. "schema": {
  366. "type": "string"
  367. }
  368. },
  369. "400": {
  370. "description": "具体错误",
  371. "schema": {
  372. "$ref": "#/definitions/md.Response"
  373. }
  374. }
  375. }
  376. }
  377. },
  378. "/api/role/adminInfo": {
  379. "get": {
  380. "description": "权限管理-管理员信息",
  381. "consumes": [
  382. "application/json"
  383. ],
  384. "produces": [
  385. "application/json"
  386. ],
  387. "tags": [
  388. "权限管理"
  389. ],
  390. "summary": "管理员信息",
  391. "parameters": [
  392. {
  393. "type": "string",
  394. "description": "验证参数Bearer和token空格拼接",
  395. "name": "Authorization",
  396. "in": "header",
  397. "required": true
  398. },
  399. {
  400. "type": "string",
  401. "description": "管理员id",
  402. "name": "adm_id",
  403. "in": "query",
  404. "required": true
  405. }
  406. ],
  407. "responses": {
  408. "200": {
  409. "description": "具体看返回内容",
  410. "schema": {
  411. "type": "string"
  412. }
  413. },
  414. "400": {
  415. "description": "具体错误",
  416. "schema": {
  417. "$ref": "#/definitions/md.Response"
  418. }
  419. }
  420. }
  421. }
  422. },
  423. "/api/role/adminList": {
  424. "post": {
  425. "description": "权限管理-管理员列表",
  426. "consumes": [
  427. "application/json"
  428. ],
  429. "produces": [
  430. "application/json"
  431. ],
  432. "tags": [
  433. "权限管理"
  434. ],
  435. "summary": "管理员列表",
  436. "parameters": [
  437. {
  438. "type": "string",
  439. "description": "验证参数Bearer和token空格拼接",
  440. "name": "Authorization",
  441. "in": "header",
  442. "required": true
  443. },
  444. {
  445. "description": "请求参数",
  446. "name": "args",
  447. "in": "body",
  448. "required": true,
  449. "schema": {
  450. "$ref": "#/definitions/md.AdminListReq"
  451. }
  452. }
  453. ],
  454. "responses": {
  455. "200": {
  456. "description": "具体看返回内容",
  457. "schema": {
  458. "type": "string"
  459. }
  460. },
  461. "400": {
  462. "description": "具体错误",
  463. "schema": {
  464. "$ref": "#/definitions/md.Response"
  465. }
  466. }
  467. }
  468. }
  469. },
  470. "/api/role/bindAdminRole/": {
  471. "post": {
  472. "description": "权限管理-管理员绑定角色",
  473. "consumes": [
  474. "application/json"
  475. ],
  476. "produces": [
  477. "application/json"
  478. ],
  479. "tags": [
  480. "权限管理"
  481. ],
  482. "summary": "管理员绑定角色",
  483. "parameters": [
  484. {
  485. "type": "string",
  486. "description": "验证参数Bearer和token空格拼接",
  487. "name": "Authorization",
  488. "in": "header",
  489. "required": true
  490. },
  491. {
  492. "description": "请求参数",
  493. "name": "args",
  494. "in": "body",
  495. "required": true,
  496. "schema": {
  497. "$ref": "#/definitions/md.BindAdminRoleReq"
  498. }
  499. }
  500. ],
  501. "responses": {
  502. "200": {
  503. "description": "success",
  504. "schema": {
  505. "type": "string"
  506. }
  507. },
  508. "400": {
  509. "description": "具体错误",
  510. "schema": {
  511. "$ref": "#/definitions/md.Response"
  512. }
  513. }
  514. }
  515. }
  516. },
  517. "/api/role/deleteAdmin/{$adm_id}": {
  518. "delete": {
  519. "description": "权限管理-删除管理员",
  520. "consumes": [
  521. "application/json"
  522. ],
  523. "produces": [
  524. "application/json"
  525. ],
  526. "tags": [
  527. "权限管理"
  528. ],
  529. "summary": "删除管理员",
  530. "parameters": [
  531. {
  532. "type": "string",
  533. "description": "验证参数Bearer和token空格拼接",
  534. "name": "Authorization",
  535. "in": "header",
  536. "required": true
  537. }
  538. ],
  539. "responses": {
  540. "200": {
  541. "description": "success",
  542. "schema": {
  543. "type": "string"
  544. }
  545. },
  546. "400": {
  547. "description": "具体错误",
  548. "schema": {
  549. "$ref": "#/definitions/md.Response"
  550. }
  551. }
  552. }
  553. }
  554. },
  555. "/api/role/deleteRole/{$id}": {
  556. "delete": {
  557. "description": "权限管理-删除角色",
  558. "consumes": [
  559. "application/json"
  560. ],
  561. "produces": [
  562. "application/json"
  563. ],
  564. "tags": [
  565. "权限管理"
  566. ],
  567. "summary": "删除角色",
  568. "parameters": [
  569. {
  570. "type": "string",
  571. "description": "验证参数Bearer和token空格拼接",
  572. "name": "Authorization",
  573. "in": "header",
  574. "required": true
  575. },
  576. {
  577. "description": "请求参数",
  578. "name": "args",
  579. "in": "body",
  580. "required": true,
  581. "schema": {
  582. "$ref": "#/definitions/md.UpdateRoleStateReq"
  583. }
  584. }
  585. ],
  586. "responses": {
  587. "200": {
  588. "description": "success",
  589. "schema": {
  590. "type": "string"
  591. }
  592. },
  593. "400": {
  594. "description": "具体错误",
  595. "schema": {
  596. "$ref": "#/definitions/md.Response"
  597. }
  598. }
  599. }
  600. }
  601. },
  602. "/api/role/permissionGroupList": {
  603. "get": {
  604. "description": "权限管理-权限组列表",
  605. "consumes": [
  606. "application/json"
  607. ],
  608. "produces": [
  609. "application/json"
  610. ],
  611. "tags": [
  612. "权限管理"
  613. ],
  614. "summary": "权限组列表",
  615. "parameters": [
  616. {
  617. "type": "string",
  618. "description": "验证参数Bearer和token空格拼接",
  619. "name": "Authorization",
  620. "in": "header",
  621. "required": true
  622. },
  623. {
  624. "type": "string",
  625. "description": "管理员id",
  626. "name": "adm_id",
  627. "in": "query",
  628. "required": true
  629. }
  630. ],
  631. "responses": {
  632. "200": {
  633. "description": "具体看返回内容",
  634. "schema": {
  635. "type": "string"
  636. }
  637. },
  638. "400": {
  639. "description": "具体错误",
  640. "schema": {
  641. "$ref": "#/definitions/md.Response"
  642. }
  643. }
  644. }
  645. }
  646. },
  647. "/api/role/roleBindPermissionGroup": {
  648. "post": {
  649. "description": "权限管理-角色绑定权限组",
  650. "consumes": [
  651. "application/json"
  652. ],
  653. "produces": [
  654. "application/json"
  655. ],
  656. "tags": [
  657. "权限管理"
  658. ],
  659. "summary": "角色绑定权限组",
  660. "parameters": [
  661. {
  662. "type": "string",
  663. "description": "验证参数Bearer和token空格拼接",
  664. "name": "Authorization",
  665. "in": "header",
  666. "required": true
  667. },
  668. {
  669. "description": "请求参数",
  670. "name": "args",
  671. "in": "body",
  672. "required": true,
  673. "schema": {
  674. "$ref": "#/definitions/md.RoleBindPermissionGroupReq"
  675. }
  676. }
  677. ],
  678. "responses": {
  679. "200": {
  680. "description": "success",
  681. "schema": {
  682. "type": "string"
  683. }
  684. },
  685. "400": {
  686. "description": "具体错误",
  687. "schema": {
  688. "$ref": "#/definitions/md.Response"
  689. }
  690. }
  691. }
  692. }
  693. },
  694. "/api/role/roleList": {
  695. "get": {
  696. "description": "权限管理-角色列表",
  697. "consumes": [
  698. "application/json"
  699. ],
  700. "produces": [
  701. "application/json"
  702. ],
  703. "tags": [
  704. "权限管理"
  705. ],
  706. "summary": "角色列表",
  707. "parameters": [
  708. {
  709. "type": "string",
  710. "description": "验证参数Bearer和token空格拼接",
  711. "name": "Authorization",
  712. "in": "header",
  713. "required": true
  714. }
  715. ],
  716. "responses": {
  717. "200": {
  718. "description": "具体看返回内容",
  719. "schema": {
  720. "type": "string"
  721. }
  722. },
  723. "400": {
  724. "description": "具体错误",
  725. "schema": {
  726. "$ref": "#/definitions/md.Response"
  727. }
  728. }
  729. }
  730. }
  731. },
  732. "/api/role/updateAdmin": {
  733. "post": {
  734. "description": "权限管理-修改管理员信息",
  735. "consumes": [
  736. "application/json"
  737. ],
  738. "produces": [
  739. "application/json"
  740. ],
  741. "tags": [
  742. "权限管理"
  743. ],
  744. "summary": "修改管理员信息",
  745. "parameters": [
  746. {
  747. "type": "string",
  748. "description": "验证参数Bearer和token空格拼接",
  749. "name": "Authorization",
  750. "in": "header",
  751. "required": true
  752. },
  753. {
  754. "description": "请求参数",
  755. "name": "args",
  756. "in": "body",
  757. "required": true,
  758. "schema": {
  759. "$ref": "#/definitions/md.UpdateAdminReq"
  760. }
  761. }
  762. ],
  763. "responses": {
  764. "200": {
  765. "description": "success",
  766. "schema": {
  767. "type": "string"
  768. }
  769. },
  770. "400": {
  771. "description": "具体错误",
  772. "schema": {
  773. "$ref": "#/definitions/md.Response"
  774. }
  775. }
  776. }
  777. }
  778. },
  779. "/api/role/updateAdminState": {
  780. "post": {
  781. "description": "权限管理-修改管理员状态",
  782. "consumes": [
  783. "application/json"
  784. ],
  785. "produces": [
  786. "application/json"
  787. ],
  788. "tags": [
  789. "权限管理"
  790. ],
  791. "summary": "修改管理员状态",
  792. "parameters": [
  793. {
  794. "type": "string",
  795. "description": "验证参数Bearer和token空格拼接",
  796. "name": "Authorization",
  797. "in": "header",
  798. "required": true
  799. },
  800. {
  801. "description": "请求参数",
  802. "name": "args",
  803. "in": "body",
  804. "required": true,
  805. "schema": {
  806. "$ref": "#/definitions/md.UpdateAdminStateReq"
  807. }
  808. }
  809. ],
  810. "responses": {
  811. "200": {
  812. "description": "success",
  813. "schema": {
  814. "type": "string"
  815. }
  816. },
  817. "400": {
  818. "description": "具体错误",
  819. "schema": {
  820. "$ref": "#/definitions/md.Response"
  821. }
  822. }
  823. }
  824. }
  825. },
  826. "/api/role/updateRole": {
  827. "post": {
  828. "description": "权限管理-修改角色状态",
  829. "consumes": [
  830. "application/json"
  831. ],
  832. "produces": [
  833. "application/json"
  834. ],
  835. "tags": [
  836. "权限管理"
  837. ],
  838. "summary": "修改角色状态",
  839. "parameters": [
  840. {
  841. "type": "string",
  842. "description": "验证参数Bearer和token空格拼接",
  843. "name": "Authorization",
  844. "in": "header",
  845. "required": true
  846. },
  847. {
  848. "description": "请求参数",
  849. "name": "args",
  850. "in": "body",
  851. "required": true,
  852. "schema": {
  853. "$ref": "#/definitions/md.UpdateRoleStateReq"
  854. }
  855. }
  856. ],
  857. "responses": {
  858. "200": {
  859. "description": "success",
  860. "schema": {
  861. "type": "string"
  862. }
  863. },
  864. "400": {
  865. "description": "具体错误",
  866. "schema": {
  867. "$ref": "#/definitions/md.Response"
  868. }
  869. }
  870. }
  871. }
  872. },
  873. "/api/setCenter/basicGet": {
  874. "get": {
  875. "description": "基础设置-获取",
  876. "consumes": [
  877. "application/json"
  878. ],
  879. "produces": [
  880. "application/json"
  881. ],
  882. "tags": [
  883. "设置中心-基础设置"
  884. ],
  885. "summary": "基础设置",
  886. "parameters": [
  887. {
  888. "type": "string",
  889. "description": "验证参数Bearer和token空格拼接",
  890. "name": "Authorization",
  891. "in": "header",
  892. "required": true
  893. }
  894. ],
  895. "responses": {
  896. "200": {
  897. "description": "success",
  898. "schema": {
  899. "type": "string"
  900. }
  901. },
  902. "400": {
  903. "description": "具体错误",
  904. "schema": {
  905. "$ref": "#/definitions/md.Response"
  906. }
  907. }
  908. }
  909. }
  910. },
  911. "/api/setCenter/basicSet": {
  912. "post": {
  913. "description": "基础设置-设置",
  914. "consumes": [
  915. "application/json"
  916. ],
  917. "produces": [
  918. "application/json"
  919. ],
  920. "tags": [
  921. "设置中心-基础设置"
  922. ],
  923. "summary": "基础设置",
  924. "parameters": [
  925. {
  926. "type": "string",
  927. "description": "验证参数Bearer和token空格拼接",
  928. "name": "Authorization",
  929. "in": "header",
  930. "required": true
  931. },
  932. {
  933. "description": "请求参数",
  934. "name": "args",
  935. "in": "body",
  936. "required": true,
  937. "schema": {
  938. "$ref": "#/definitions/md.BasicSetReq"
  939. }
  940. }
  941. ],
  942. "responses": {
  943. "200": {
  944. "description": "success",
  945. "schema": {
  946. "type": "string"
  947. }
  948. },
  949. "400": {
  950. "description": "具体错误",
  951. "schema": {
  952. "$ref": "#/definitions/md.Response"
  953. }
  954. }
  955. }
  956. }
  957. },
  958. "/api/smsCenter/detail": {
  959. "post": {
  960. "description": "短信中心-详情",
  961. "consumes": [
  962. "application/json"
  963. ],
  964. "produces": [
  965. "application/json"
  966. ],
  967. "tags": [
  968. "短信中心"
  969. ],
  970. "summary": "详情",
  971. "parameters": [
  972. {
  973. "type": "string",
  974. "description": "验证参数Bearer和token空格拼接",
  975. "name": "Authorization",
  976. "in": "header",
  977. "required": true
  978. },
  979. {
  980. "description": "请求参数",
  981. "name": "args",
  982. "in": "body",
  983. "required": true,
  984. "schema": {
  985. "$ref": "#/definitions/md.SmsDetailReq"
  986. }
  987. }
  988. ],
  989. "responses": {
  990. "200": {
  991. "description": "具体看返回内容 这是data里面的数据",
  992. "schema": {
  993. "$ref": "#/definitions/md.SmsDetailResp"
  994. }
  995. },
  996. "400": {
  997. "description": "具体错误",
  998. "schema": {
  999. "$ref": "#/definitions/md.Response"
  1000. }
  1001. }
  1002. }
  1003. }
  1004. },
  1005. "/api/smsCenter/list": {
  1006. "post": {
  1007. "description": "短信中心-列表",
  1008. "consumes": [
  1009. "application/json"
  1010. ],
  1011. "produces": [
  1012. "application/json"
  1013. ],
  1014. "tags": [
  1015. "短信中心"
  1016. ],
  1017. "summary": "列表",
  1018. "parameters": [
  1019. {
  1020. "type": "string",
  1021. "description": "验证参数Bearer和token空格拼接",
  1022. "name": "Authorization",
  1023. "in": "header",
  1024. "required": true
  1025. },
  1026. {
  1027. "description": "请求参数",
  1028. "name": "args",
  1029. "in": "body",
  1030. "required": true,
  1031. "schema": {
  1032. "$ref": "#/definitions/md.SmsListReq"
  1033. }
  1034. }
  1035. ],
  1036. "responses": {
  1037. "200": {
  1038. "description": "具体看返回内容 这是data里面的数据",
  1039. "schema": {
  1040. "$ref": "#/definitions/md.SmsListResp"
  1041. }
  1042. },
  1043. "400": {
  1044. "description": "具体错误",
  1045. "schema": {
  1046. "$ref": "#/definitions/md.Response"
  1047. }
  1048. }
  1049. }
  1050. }
  1051. },
  1052. "/api/smsCenter/update": {
  1053. "post": {
  1054. "description": "短信中心-修改",
  1055. "consumes": [
  1056. "application/json"
  1057. ],
  1058. "produces": [
  1059. "application/json"
  1060. ],
  1061. "tags": [
  1062. "短信中心"
  1063. ],
  1064. "summary": "修改",
  1065. "parameters": [
  1066. {
  1067. "type": "string",
  1068. "description": "验证参数Bearer和token空格拼接",
  1069. "name": "Authorization",
  1070. "in": "header",
  1071. "required": true
  1072. },
  1073. {
  1074. "description": "请求参数",
  1075. "name": "args",
  1076. "in": "body",
  1077. "required": true,
  1078. "schema": {
  1079. "$ref": "#/definitions/md.SmsDetailReq"
  1080. }
  1081. }
  1082. ],
  1083. "responses": {
  1084. "200": {
  1085. "description": "success",
  1086. "schema": {
  1087. "type": "string"
  1088. }
  1089. },
  1090. "400": {
  1091. "description": "具体错误",
  1092. "schema": {
  1093. "$ref": "#/definitions/md.Response"
  1094. }
  1095. }
  1096. }
  1097. }
  1098. }
  1099. },
  1100. "definitions": {
  1101. "md.AddAdminReq": {
  1102. "type": "object",
  1103. "required": [
  1104. "password",
  1105. "username"
  1106. ],
  1107. "properties": {
  1108. "memo": {
  1109. "type": "string"
  1110. },
  1111. "password": {
  1112. "type": "string"
  1113. },
  1114. "username": {
  1115. "type": "string"
  1116. }
  1117. }
  1118. },
  1119. "md.AddRoleReq": {
  1120. "type": "object",
  1121. "required": [
  1122. "memo",
  1123. "name"
  1124. ],
  1125. "properties": {
  1126. "memo": {
  1127. "type": "string"
  1128. },
  1129. "name": {
  1130. "type": "string"
  1131. }
  1132. }
  1133. },
  1134. "md.AdminListReq": {
  1135. "type": "object",
  1136. "properties": {
  1137. "limit": {
  1138. "type": "integer"
  1139. },
  1140. "page": {
  1141. "type": "integer"
  1142. },
  1143. "state": {
  1144. "type": "integer"
  1145. },
  1146. "username": {
  1147. "type": "string"
  1148. }
  1149. }
  1150. },
  1151. "md.BasicSetReq": {
  1152. "type": "object",
  1153. "required": [
  1154. "app_logo",
  1155. "app_name"
  1156. ],
  1157. "properties": {
  1158. "app_logo": {
  1159. "type": "string",
  1160. "example": "项目logo"
  1161. },
  1162. "app_name": {
  1163. "type": "string",
  1164. "example": "项目名称"
  1165. }
  1166. }
  1167. },
  1168. "md.BindAdminRoleReq": {
  1169. "type": "object",
  1170. "required": [
  1171. "adm_id"
  1172. ],
  1173. "properties": {
  1174. "adm_id": {
  1175. "type": "integer"
  1176. },
  1177. "role_ids": {
  1178. "type": "array",
  1179. "items": {
  1180. "type": "integer"
  1181. }
  1182. }
  1183. }
  1184. },
  1185. "md.DataCenterGenerateDataCommReq": {
  1186. "type": "object",
  1187. "properties": {
  1188. "id": {
  1189. "type": "string",
  1190. "example": "列表id"
  1191. }
  1192. }
  1193. },
  1194. "md.DataCenterGenerateDataData": {
  1195. "type": "object",
  1196. "properties": {
  1197. "adv_name": {
  1198. "type": "string",
  1199. "example": "广告位"
  1200. },
  1201. "agent_revenue": {
  1202. "type": "string",
  1203. "example": "代理收益(元)"
  1204. },
  1205. "agreement_sharing": {
  1206. "type": "string",
  1207. "example": "协议分成(元)"
  1208. },
  1209. "agreement_sharing_total": {
  1210. "type": "string",
  1211. "example": "协议总分成(元)"
  1212. },
  1213. "click_count": {
  1214. "type": "string",
  1215. "example": "现-点击量"
  1216. },
  1217. "click_rate": {
  1218. "type": "string",
  1219. "example": "现-点击率"
  1220. },
  1221. "commission_retention": {
  1222. "type": "string",
  1223. "example": "佣金留存(元)"
  1224. },
  1225. "date": {
  1226. "type": "string",
  1227. "example": "日期"
  1228. },
  1229. "ecpm": {
  1230. "type": "string",
  1231. "example": "'现-ecpm(元)"
  1232. },
  1233. "exposure_count": {
  1234. "type": "string",
  1235. "example": "现-曝光量"
  1236. },
  1237. "extra_revenue": {
  1238. "type": "string",
  1239. "example": "额外收益(元)"
  1240. },
  1241. "id": {
  1242. "type": "string",
  1243. "example": "id"
  1244. },
  1245. "is_generate_report": {
  1246. "type": "string",
  1247. "example": "是否已生成报表(0:未 1:已)"
  1248. },
  1249. "media_revenue": {
  1250. "type": "string",
  1251. "example": "媒体收益(元)"
  1252. },
  1253. "name": {
  1254. "type": "string",
  1255. "example": "名称"
  1256. },
  1257. "old_click_count": {
  1258. "type": "string",
  1259. "example": "原-点击量"
  1260. },
  1261. "old_click_rate": {
  1262. "type": "string",
  1263. "example": "原-点击率"
  1264. },
  1265. "old_ecpm": {
  1266. "type": "string",
  1267. "example": "'原-ecpm(元)"
  1268. },
  1269. "old_exposure_count": {
  1270. "type": "string",
  1271. "example": "原-曝光量"
  1272. },
  1273. "platform": {
  1274. "type": "string",
  1275. "example": "平台名称"
  1276. },
  1277. "platform_retention": {
  1278. "type": "string",
  1279. "example": "平台留存(元)"
  1280. },
  1281. "price_adjustment_retention": {
  1282. "type": "string",
  1283. "example": "调价留存(元)"
  1284. },
  1285. "state": {
  1286. "type": "string",
  1287. "example": "状态id"
  1288. }
  1289. }
  1290. },
  1291. "md.DataCenterGenerateDataDetailAgentReward": {
  1292. "type": "object",
  1293. "properties": {
  1294. "account": {
  1295. "type": "string"
  1296. },
  1297. "agent_revenue": {
  1298. "type": "string",
  1299. "example": "代理收益(元)"
  1300. },
  1301. "agent_revenue_rate": {
  1302. "type": "string",
  1303. "example": "代理收益百分比"
  1304. },
  1305. "extra_revenue": {
  1306. "type": "string",
  1307. "example": "额外收益(元)"
  1308. },
  1309. "extra_revenue_rate": {
  1310. "type": "string",
  1311. "example": "'额外收益百分比"
  1312. },
  1313. "name": {
  1314. "type": "string"
  1315. }
  1316. }
  1317. },
  1318. "md.DataCenterGenerateDataDetailData": {
  1319. "type": "object",
  1320. "properties": {
  1321. "agent_revenue_rate": {
  1322. "type": "string",
  1323. "example": "代理收益百分比"
  1324. },
  1325. "agent_reward": {
  1326. "type": "array",
  1327. "items": {
  1328. "$ref": "#/definitions/md.DataCenterGenerateDataDetailAgentReward"
  1329. }
  1330. },
  1331. "agreement_sharing_rate": {
  1332. "type": "string",
  1333. "example": "协议分成百分比"
  1334. },
  1335. "commission_retention_rate": {
  1336. "type": "string",
  1337. "example": "佣金留存百分比"
  1338. },
  1339. "create_at": {
  1340. "type": "string"
  1341. },
  1342. "extra_revenue_rate": {
  1343. "type": "string",
  1344. "example": "额外收益百分比"
  1345. },
  1346. "media_revenue_rate": {
  1347. "type": "string",
  1348. "example": "媒体收益百分比"
  1349. },
  1350. "platform_retention_rate": {
  1351. "type": "string",
  1352. "example": "平台留存百分比"
  1353. },
  1354. "update_at": {
  1355. "type": "string"
  1356. }
  1357. }
  1358. },
  1359. "md.DataCenterGenerateDataReq": {
  1360. "type": "object",
  1361. "properties": {
  1362. "end_time": {
  1363. "type": "string"
  1364. },
  1365. "limit": {
  1366. "type": "string"
  1367. },
  1368. "name": {
  1369. "type": "string"
  1370. },
  1371. "page": {
  1372. "type": "string"
  1373. },
  1374. "platform": {
  1375. "type": "string"
  1376. },
  1377. "start_time": {
  1378. "type": "string"
  1379. },
  1380. "state": {
  1381. "type": "string"
  1382. }
  1383. }
  1384. },
  1385. "md.DataCenterGenerateDataRes": {
  1386. "type": "object",
  1387. "properties": {
  1388. "list": {
  1389. "type": "array",
  1390. "items": {
  1391. "$ref": "#/definitions/md.DataCenterGenerateDataData"
  1392. }
  1393. },
  1394. "platform": {
  1395. "type": "array",
  1396. "items": {
  1397. "$ref": "#/definitions/md.SelectData"
  1398. }
  1399. },
  1400. "state": {
  1401. "type": "array",
  1402. "items": {
  1403. "$ref": "#/definitions/md.SelectData"
  1404. }
  1405. },
  1406. "total": {
  1407. "type": "integer"
  1408. }
  1409. }
  1410. },
  1411. "md.DataCenterOriginalDataData": {
  1412. "type": "object",
  1413. "properties": {
  1414. "adv_name": {
  1415. "type": "string",
  1416. "example": "广告位"
  1417. },
  1418. "click_count": {
  1419. "type": "string",
  1420. "example": "点击量"
  1421. },
  1422. "click_rate": {
  1423. "type": "string",
  1424. "example": "点击率"
  1425. },
  1426. "date": {
  1427. "type": "string",
  1428. "example": "日期"
  1429. },
  1430. "ecpm": {
  1431. "type": "string",
  1432. "example": "'ecpm(元)"
  1433. },
  1434. "exposure_count": {
  1435. "type": "string",
  1436. "example": "曝光量"
  1437. },
  1438. "exposure_rate": {
  1439. "type": "string",
  1440. "example": "曝光率"
  1441. },
  1442. "id": {
  1443. "type": "string",
  1444. "example": "id"
  1445. },
  1446. "is_apply": {
  1447. "type": "string",
  1448. "example": "是否已应用"
  1449. },
  1450. "name": {
  1451. "type": "string",
  1452. "example": "名称"
  1453. },
  1454. "platform": {
  1455. "type": "string",
  1456. "example": "平台名称"
  1457. },
  1458. "publisher_income": {
  1459. "type": "string",
  1460. "example": "总收益(元)"
  1461. },
  1462. "req_succ_count": {
  1463. "type": "string",
  1464. "example": "拉取量"
  1465. },
  1466. "state": {
  1467. "type": "string",
  1468. "example": "状态id"
  1469. }
  1470. }
  1471. },
  1472. "md.DataCenterOriginalDataReq": {
  1473. "type": "object",
  1474. "properties": {
  1475. "end_time": {
  1476. "type": "string"
  1477. },
  1478. "limit": {
  1479. "type": "string"
  1480. },
  1481. "name": {
  1482. "type": "string"
  1483. },
  1484. "page": {
  1485. "type": "string"
  1486. },
  1487. "platform": {
  1488. "type": "string"
  1489. },
  1490. "start_time": {
  1491. "type": "string"
  1492. },
  1493. "state": {
  1494. "type": "string"
  1495. }
  1496. }
  1497. },
  1498. "md.DataCenterOriginalDataRes": {
  1499. "type": "object",
  1500. "properties": {
  1501. "list": {
  1502. "type": "array",
  1503. "items": {
  1504. "$ref": "#/definitions/md.DataCenterOriginalDataData"
  1505. }
  1506. },
  1507. "platform": {
  1508. "type": "array",
  1509. "items": {
  1510. "$ref": "#/definitions/md.SelectData"
  1511. }
  1512. },
  1513. "state": {
  1514. "type": "array",
  1515. "items": {
  1516. "$ref": "#/definitions/md.SelectData"
  1517. }
  1518. },
  1519. "total": {
  1520. "type": "integer"
  1521. }
  1522. }
  1523. },
  1524. "md.LoginInfoResponse": {
  1525. "type": "object",
  1526. "properties": {
  1527. "adm_id": {
  1528. "description": "管理员id",
  1529. "type": "integer"
  1530. },
  1531. "create_at": {
  1532. "type": "string"
  1533. },
  1534. "is_super_administrator": {
  1535. "description": "是否为超级管理员(0:否 1:是)",
  1536. "type": "integer"
  1537. },
  1538. "memo": {
  1539. "type": "string",
  1540. "example": "备注信息"
  1541. },
  1542. "update_at": {
  1543. "type": "string"
  1544. },
  1545. "username": {
  1546. "type": "string",
  1547. "example": "登录账号"
  1548. }
  1549. }
  1550. },
  1551. "md.LoginReq": {
  1552. "type": "object",
  1553. "required": [
  1554. "password",
  1555. "username"
  1556. ],
  1557. "properties": {
  1558. "code": {
  1559. "type": "string",
  1560. "example": "验证码"
  1561. },
  1562. "password": {
  1563. "type": "string",
  1564. "example": "登录密码"
  1565. },
  1566. "username": {
  1567. "type": "string",
  1568. "example": "登录账号"
  1569. }
  1570. }
  1571. },
  1572. "md.LoginResponse": {
  1573. "type": "object",
  1574. "properties": {
  1575. "token": {
  1576. "type": "string"
  1577. }
  1578. }
  1579. },
  1580. "md.Response": {
  1581. "type": "object",
  1582. "properties": {
  1583. "code": {
  1584. "type": "string",
  1585. "example": "响应码"
  1586. },
  1587. "data": {
  1588. "description": "内容"
  1589. },
  1590. "msg": {
  1591. "type": "string",
  1592. "example": "具体错误原因"
  1593. }
  1594. }
  1595. },
  1596. "md.RoleBindPermissionGroupReq": {
  1597. "type": "object",
  1598. "required": [
  1599. "role_id"
  1600. ],
  1601. "properties": {
  1602. "permission_ids": {
  1603. "type": "array",
  1604. "items": {
  1605. "type": "integer"
  1606. }
  1607. },
  1608. "role_id": {
  1609. "type": "integer"
  1610. }
  1611. }
  1612. },
  1613. "md.SelectData": {
  1614. "type": "object",
  1615. "properties": {
  1616. "name": {
  1617. "type": "string",
  1618. "example": "名称"
  1619. },
  1620. "value": {
  1621. "type": "string",
  1622. "example": "值"
  1623. }
  1624. }
  1625. },
  1626. "md.SmsDetail": {
  1627. "type": "object",
  1628. "properties": {
  1629. "create_at": {
  1630. "type": "string",
  1631. "example": "创建时间"
  1632. },
  1633. "id": {
  1634. "type": "integer"
  1635. },
  1636. "phone": {
  1637. "type": "string",
  1638. "example": "接收号码"
  1639. },
  1640. "state_zh": {
  1641. "type": "string",
  1642. "example": "发送状态"
  1643. }
  1644. }
  1645. },
  1646. "md.SmsDetailReq": {
  1647. "type": "object",
  1648. "properties": {
  1649. "limit": {
  1650. "type": "integer"
  1651. },
  1652. "page": {
  1653. "type": "integer"
  1654. },
  1655. "uuid": {
  1656. "type": "string",
  1657. "example": "站长ID"
  1658. }
  1659. }
  1660. },
  1661. "md.SmsDetailResp": {
  1662. "type": "object",
  1663. "properties": {
  1664. "list": {
  1665. "type": "array",
  1666. "items": {
  1667. "$ref": "#/definitions/md.SmsDetail"
  1668. }
  1669. },
  1670. "total": {
  1671. "type": "integer"
  1672. }
  1673. }
  1674. },
  1675. "md.SmsList": {
  1676. "type": "object",
  1677. "properties": {
  1678. "name": {
  1679. "type": "string",
  1680. "example": "站长名称"
  1681. },
  1682. "num": {
  1683. "description": "短信条数",
  1684. "type": "integer"
  1685. },
  1686. "uuid": {
  1687. "type": "string",
  1688. "example": "站长ID"
  1689. }
  1690. }
  1691. },
  1692. "md.SmsListReq": {
  1693. "type": "object",
  1694. "properties": {
  1695. "limit": {
  1696. "type": "integer"
  1697. },
  1698. "name": {
  1699. "type": "string",
  1700. "example": "站长名称"
  1701. },
  1702. "page": {
  1703. "type": "integer"
  1704. },
  1705. "uuid": {
  1706. "type": "string",
  1707. "example": "站长ID"
  1708. }
  1709. }
  1710. },
  1711. "md.SmsListResp": {
  1712. "type": "object",
  1713. "properties": {
  1714. "list": {
  1715. "type": "array",
  1716. "items": {
  1717. "$ref": "#/definitions/md.SmsList"
  1718. }
  1719. },
  1720. "total": {
  1721. "type": "integer"
  1722. }
  1723. }
  1724. },
  1725. "md.UpdateAdminReq": {
  1726. "type": "object",
  1727. "required": [
  1728. "adm_id",
  1729. "password",
  1730. "username"
  1731. ],
  1732. "properties": {
  1733. "adm_id": {
  1734. "type": "integer"
  1735. },
  1736. "memo": {
  1737. "type": "string"
  1738. },
  1739. "password": {
  1740. "type": "string"
  1741. },
  1742. "username": {
  1743. "type": "string"
  1744. }
  1745. }
  1746. },
  1747. "md.UpdateAdminStateReq": {
  1748. "type": "object",
  1749. "required": [
  1750. "adm_id",
  1751. "state"
  1752. ],
  1753. "properties": {
  1754. "adm_id": {
  1755. "type": "integer"
  1756. },
  1757. "state": {
  1758. "type": "integer"
  1759. }
  1760. }
  1761. },
  1762. "md.UpdateRoleReq": {
  1763. "type": "object",
  1764. "required": [
  1765. "memo",
  1766. "name",
  1767. "role_id"
  1768. ],
  1769. "properties": {
  1770. "memo": {
  1771. "type": "string"
  1772. },
  1773. "name": {
  1774. "type": "string"
  1775. },
  1776. "role_id": {
  1777. "type": "integer"
  1778. }
  1779. }
  1780. },
  1781. "md.UpdateRoleStateReq": {
  1782. "type": "object",
  1783. "required": [
  1784. "role_id",
  1785. "state"
  1786. ],
  1787. "properties": {
  1788. "role_id": {
  1789. "type": "integer"
  1790. },
  1791. "state": {
  1792. "type": "integer"
  1793. }
  1794. }
  1795. }
  1796. },
  1797. "securityDefinitions": {
  1798. "MasterID": {
  1799. "type": "apiKey",
  1800. "name": "MasterID",
  1801. "in": "header"
  1802. }
  1803. }
  1804. }`
  1805. // SwaggerInfo holds exported Swagger Info so clients can modify it
  1806. var SwaggerInfo = &swag.Spec{
  1807. Version: "1.0",
  1808. Host: "localhost:1001 or advertisement.dengbiao.top",
  1809. BasePath: "",
  1810. Schemes: []string{},
  1811. Title: "广告联盟-总站长平台",
  1812. Description: "总站长后台接口",
  1813. InfoInstanceName: "swagger",
  1814. SwaggerTemplate: docTemplate,
  1815. }
  1816. func init() {
  1817. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  1818. }