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

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