广告平台(总站长使用)
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

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