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

1684 lines
54 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/smsCenter/detail": {
  836. "post": {
  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. "description": "请求参数",
  858. "name": "args",
  859. "in": "body",
  860. "required": true,
  861. "schema": {
  862. "$ref": "#/definitions/md.SmsDetailReq"
  863. }
  864. }
  865. ],
  866. "responses": {
  867. "200": {
  868. "description": "具体看返回内容 这是data里面的数据",
  869. "schema": {
  870. "$ref": "#/definitions/md.SmsDetailResp"
  871. }
  872. },
  873. "400": {
  874. "description": "具体错误",
  875. "schema": {
  876. "$ref": "#/definitions/md.Response"
  877. }
  878. }
  879. }
  880. }
  881. },
  882. "/api/smsCenter/list": {
  883. "post": {
  884. "description": "短信中心-列表",
  885. "consumes": [
  886. "application/json"
  887. ],
  888. "produces": [
  889. "application/json"
  890. ],
  891. "tags": [
  892. "短信中心"
  893. ],
  894. "summary": "列表",
  895. "parameters": [
  896. {
  897. "type": "string",
  898. "description": "验证参数Bearer和token空格拼接",
  899. "name": "Authorization",
  900. "in": "header",
  901. "required": true
  902. },
  903. {
  904. "description": "请求参数",
  905. "name": "args",
  906. "in": "body",
  907. "required": true,
  908. "schema": {
  909. "$ref": "#/definitions/md.SmsListReq"
  910. }
  911. }
  912. ],
  913. "responses": {
  914. "200": {
  915. "description": "具体看返回内容 这是data里面的数据",
  916. "schema": {
  917. "$ref": "#/definitions/md.SmsListResp"
  918. }
  919. },
  920. "400": {
  921. "description": "具体错误",
  922. "schema": {
  923. "$ref": "#/definitions/md.Response"
  924. }
  925. }
  926. }
  927. }
  928. },
  929. "/api/smsCenter/update": {
  930. "post": {
  931. "description": "短信中心-修改",
  932. "consumes": [
  933. "application/json"
  934. ],
  935. "produces": [
  936. "application/json"
  937. ],
  938. "tags": [
  939. "短信中心"
  940. ],
  941. "summary": "修改",
  942. "parameters": [
  943. {
  944. "type": "string",
  945. "description": "验证参数Bearer和token空格拼接",
  946. "name": "Authorization",
  947. "in": "header",
  948. "required": true
  949. },
  950. {
  951. "description": "请求参数",
  952. "name": "args",
  953. "in": "body",
  954. "required": true,
  955. "schema": {
  956. "$ref": "#/definitions/md.SmsDetailReq"
  957. }
  958. }
  959. ],
  960. "responses": {
  961. "200": {
  962. "description": "success",
  963. "schema": {
  964. "type": "string"
  965. }
  966. },
  967. "400": {
  968. "description": "具体错误",
  969. "schema": {
  970. "$ref": "#/definitions/md.Response"
  971. }
  972. }
  973. }
  974. }
  975. }
  976. },
  977. "definitions": {
  978. "md.AddAdminReq": {
  979. "type": "object",
  980. "required": [
  981. "password",
  982. "username"
  983. ],
  984. "properties": {
  985. "memo": {
  986. "type": "string"
  987. },
  988. "password": {
  989. "type": "string"
  990. },
  991. "username": {
  992. "type": "string"
  993. }
  994. }
  995. },
  996. "md.AddRoleReq": {
  997. "type": "object",
  998. "required": [
  999. "memo",
  1000. "name"
  1001. ],
  1002. "properties": {
  1003. "memo": {
  1004. "type": "string"
  1005. },
  1006. "name": {
  1007. "type": "string"
  1008. }
  1009. }
  1010. },
  1011. "md.AdminListReq": {
  1012. "type": "object",
  1013. "properties": {
  1014. "limit": {
  1015. "type": "integer"
  1016. },
  1017. "page": {
  1018. "type": "integer"
  1019. },
  1020. "state": {
  1021. "type": "integer"
  1022. },
  1023. "username": {
  1024. "type": "string"
  1025. }
  1026. }
  1027. },
  1028. "md.BindAdminRoleReq": {
  1029. "type": "object",
  1030. "required": [
  1031. "adm_id"
  1032. ],
  1033. "properties": {
  1034. "adm_id": {
  1035. "type": "integer"
  1036. },
  1037. "role_ids": {
  1038. "type": "array",
  1039. "items": {
  1040. "type": "integer"
  1041. }
  1042. }
  1043. }
  1044. },
  1045. "md.DataCenterGenerateDataCommReq": {
  1046. "type": "object",
  1047. "properties": {
  1048. "id": {
  1049. "type": "string",
  1050. "example": "列表id"
  1051. }
  1052. }
  1053. },
  1054. "md.DataCenterGenerateDataData": {
  1055. "type": "object",
  1056. "properties": {
  1057. "adv_name": {
  1058. "type": "string",
  1059. "example": "广告位"
  1060. },
  1061. "agent_revenue": {
  1062. "type": "string",
  1063. "example": "代理收益(元)"
  1064. },
  1065. "agreement_sharing": {
  1066. "type": "string",
  1067. "example": "协议分成(元)"
  1068. },
  1069. "agreement_sharing_total": {
  1070. "type": "string",
  1071. "example": "协议总分成(元)"
  1072. },
  1073. "click_count": {
  1074. "type": "string",
  1075. "example": "现-点击量"
  1076. },
  1077. "click_rate": {
  1078. "type": "string",
  1079. "example": "现-点击率"
  1080. },
  1081. "commission_retention": {
  1082. "type": "string",
  1083. "example": "佣金留存(元)"
  1084. },
  1085. "date": {
  1086. "type": "string",
  1087. "example": "日期"
  1088. },
  1089. "ecpm": {
  1090. "type": "string",
  1091. "example": "'现-ecpm(元)"
  1092. },
  1093. "exposure_count": {
  1094. "type": "string",
  1095. "example": "现-曝光量"
  1096. },
  1097. "extra_revenue": {
  1098. "type": "string",
  1099. "example": "额外收益(元)"
  1100. },
  1101. "id": {
  1102. "type": "string",
  1103. "example": "id"
  1104. },
  1105. "is_generate_report": {
  1106. "type": "string",
  1107. "example": "是否已生成报表(0:未 1:已)"
  1108. },
  1109. "media_revenue": {
  1110. "type": "string",
  1111. "example": "媒体收益(元)"
  1112. },
  1113. "name": {
  1114. "type": "string",
  1115. "example": "名称"
  1116. },
  1117. "old_click_count": {
  1118. "type": "string",
  1119. "example": "原-点击量"
  1120. },
  1121. "old_click_rate": {
  1122. "type": "string",
  1123. "example": "原-点击率"
  1124. },
  1125. "old_ecpm": {
  1126. "type": "string",
  1127. "example": "'原-ecpm(元)"
  1128. },
  1129. "old_exposure_count": {
  1130. "type": "string",
  1131. "example": "原-曝光量"
  1132. },
  1133. "platform": {
  1134. "type": "string",
  1135. "example": "平台名称"
  1136. },
  1137. "platform_retention": {
  1138. "type": "string",
  1139. "example": "平台留存(元)"
  1140. },
  1141. "price_adjustment_retention": {
  1142. "type": "string",
  1143. "example": "调价留存(元)"
  1144. },
  1145. "state": {
  1146. "type": "string",
  1147. "example": "状态id"
  1148. }
  1149. }
  1150. },
  1151. "md.DataCenterGenerateDataDetailAgentReward": {
  1152. "type": "object",
  1153. "properties": {
  1154. "account": {
  1155. "type": "string"
  1156. },
  1157. "agent_revenue": {
  1158. "type": "string",
  1159. "example": "代理收益(元)"
  1160. },
  1161. "agent_revenue_rate": {
  1162. "type": "string",
  1163. "example": "代理收益百分比"
  1164. },
  1165. "extra_revenue": {
  1166. "type": "string",
  1167. "example": "额外收益(元)"
  1168. },
  1169. "extra_revenue_rate": {
  1170. "type": "string",
  1171. "example": "'额外收益百分比"
  1172. },
  1173. "name": {
  1174. "type": "string"
  1175. }
  1176. }
  1177. },
  1178. "md.DataCenterGenerateDataDetailData": {
  1179. "type": "object",
  1180. "properties": {
  1181. "agent_revenue_rate": {
  1182. "type": "string",
  1183. "example": "代理收益百分比"
  1184. },
  1185. "agent_reward": {
  1186. "type": "array",
  1187. "items": {
  1188. "$ref": "#/definitions/md.DataCenterGenerateDataDetailAgentReward"
  1189. }
  1190. },
  1191. "agreement_sharing_rate": {
  1192. "type": "string",
  1193. "example": "协议分成百分比"
  1194. },
  1195. "commission_retention_rate": {
  1196. "type": "string",
  1197. "example": "佣金留存百分比"
  1198. },
  1199. "create_at": {
  1200. "type": "string"
  1201. },
  1202. "extra_revenue_rate": {
  1203. "type": "string",
  1204. "example": "额外收益百分比"
  1205. },
  1206. "media_revenue_rate": {
  1207. "type": "string",
  1208. "example": "媒体收益百分比"
  1209. },
  1210. "platform_retention_rate": {
  1211. "type": "string",
  1212. "example": "平台留存百分比"
  1213. },
  1214. "update_at": {
  1215. "type": "string"
  1216. }
  1217. }
  1218. },
  1219. "md.DataCenterGenerateDataReq": {
  1220. "type": "object",
  1221. "properties": {
  1222. "end_time": {
  1223. "type": "string"
  1224. },
  1225. "limit": {
  1226. "type": "string"
  1227. },
  1228. "name": {
  1229. "type": "string"
  1230. },
  1231. "page": {
  1232. "type": "string"
  1233. },
  1234. "platform": {
  1235. "type": "string"
  1236. },
  1237. "start_time": {
  1238. "type": "string"
  1239. },
  1240. "state": {
  1241. "type": "string"
  1242. }
  1243. }
  1244. },
  1245. "md.DataCenterGenerateDataRes": {
  1246. "type": "object",
  1247. "properties": {
  1248. "list": {
  1249. "type": "array",
  1250. "items": {
  1251. "$ref": "#/definitions/md.DataCenterGenerateDataData"
  1252. }
  1253. },
  1254. "platform": {
  1255. "type": "array",
  1256. "items": {
  1257. "$ref": "#/definitions/md.SelectData"
  1258. }
  1259. },
  1260. "state": {
  1261. "type": "array",
  1262. "items": {
  1263. "$ref": "#/definitions/md.SelectData"
  1264. }
  1265. },
  1266. "total": {
  1267. "type": "integer"
  1268. }
  1269. }
  1270. },
  1271. "md.DataCenterOriginalDataData": {
  1272. "type": "object",
  1273. "properties": {
  1274. "adv_name": {
  1275. "type": "string",
  1276. "example": "广告位"
  1277. },
  1278. "click_count": {
  1279. "type": "string",
  1280. "example": "点击量"
  1281. },
  1282. "click_rate": {
  1283. "type": "string",
  1284. "example": "点击率"
  1285. },
  1286. "date": {
  1287. "type": "string",
  1288. "example": "日期"
  1289. },
  1290. "ecpm": {
  1291. "type": "string",
  1292. "example": "'ecpm(元)"
  1293. },
  1294. "exposure_count": {
  1295. "type": "string",
  1296. "example": "曝光量"
  1297. },
  1298. "exposure_rate": {
  1299. "type": "string",
  1300. "example": "曝光率"
  1301. },
  1302. "id": {
  1303. "type": "string",
  1304. "example": "id"
  1305. },
  1306. "is_apply": {
  1307. "type": "string",
  1308. "example": "是否已应用"
  1309. },
  1310. "name": {
  1311. "type": "string",
  1312. "example": "名称"
  1313. },
  1314. "platform": {
  1315. "type": "string",
  1316. "example": "平台名称"
  1317. },
  1318. "publisher_income": {
  1319. "type": "string",
  1320. "example": "总收益(元)"
  1321. },
  1322. "req_succ_count": {
  1323. "type": "string",
  1324. "example": "拉取量"
  1325. },
  1326. "state": {
  1327. "type": "string",
  1328. "example": "状态id"
  1329. }
  1330. }
  1331. },
  1332. "md.DataCenterOriginalDataReq": {
  1333. "type": "object",
  1334. "properties": {
  1335. "end_time": {
  1336. "type": "string"
  1337. },
  1338. "limit": {
  1339. "type": "string"
  1340. },
  1341. "name": {
  1342. "type": "string"
  1343. },
  1344. "page": {
  1345. "type": "string"
  1346. },
  1347. "platform": {
  1348. "type": "string"
  1349. },
  1350. "start_time": {
  1351. "type": "string"
  1352. },
  1353. "state": {
  1354. "type": "string"
  1355. }
  1356. }
  1357. },
  1358. "md.DataCenterOriginalDataRes": {
  1359. "type": "object",
  1360. "properties": {
  1361. "list": {
  1362. "type": "array",
  1363. "items": {
  1364. "$ref": "#/definitions/md.DataCenterOriginalDataData"
  1365. }
  1366. },
  1367. "platform": {
  1368. "type": "array",
  1369. "items": {
  1370. "$ref": "#/definitions/md.SelectData"
  1371. }
  1372. },
  1373. "state": {
  1374. "type": "array",
  1375. "items": {
  1376. "$ref": "#/definitions/md.SelectData"
  1377. }
  1378. },
  1379. "total": {
  1380. "type": "integer"
  1381. }
  1382. }
  1383. },
  1384. "md.LoginInfoResponse": {
  1385. "type": "object",
  1386. "properties": {
  1387. "adm_id": {
  1388. "description": "管理员id",
  1389. "type": "integer"
  1390. },
  1391. "create_at": {
  1392. "type": "string"
  1393. },
  1394. "is_super_administrator": {
  1395. "description": "是否为超级管理员(0:否 1:是)",
  1396. "type": "integer"
  1397. },
  1398. "memo": {
  1399. "type": "string",
  1400. "example": "备注信息"
  1401. },
  1402. "update_at": {
  1403. "type": "string"
  1404. },
  1405. "username": {
  1406. "type": "string",
  1407. "example": "登录账号"
  1408. }
  1409. }
  1410. },
  1411. "md.LoginReq": {
  1412. "type": "object",
  1413. "required": [
  1414. "password",
  1415. "username"
  1416. ],
  1417. "properties": {
  1418. "code": {
  1419. "type": "string",
  1420. "example": "验证码"
  1421. },
  1422. "password": {
  1423. "type": "string",
  1424. "example": "登录密码"
  1425. },
  1426. "username": {
  1427. "type": "string",
  1428. "example": "登录账号"
  1429. }
  1430. }
  1431. },
  1432. "md.LoginResponse": {
  1433. "type": "object",
  1434. "properties": {
  1435. "token": {
  1436. "type": "string"
  1437. }
  1438. }
  1439. },
  1440. "md.Response": {
  1441. "type": "object",
  1442. "properties": {
  1443. "code": {
  1444. "type": "string",
  1445. "example": "响应码"
  1446. },
  1447. "data": {
  1448. "description": "内容"
  1449. },
  1450. "msg": {
  1451. "type": "string",
  1452. "example": "具体错误原因"
  1453. }
  1454. }
  1455. },
  1456. "md.RoleBindPermissionGroupReq": {
  1457. "type": "object",
  1458. "required": [
  1459. "role_id"
  1460. ],
  1461. "properties": {
  1462. "permission_ids": {
  1463. "type": "array",
  1464. "items": {
  1465. "type": "integer"
  1466. }
  1467. },
  1468. "role_id": {
  1469. "type": "integer"
  1470. }
  1471. }
  1472. },
  1473. "md.SelectData": {
  1474. "type": "object",
  1475. "properties": {
  1476. "name": {
  1477. "type": "string",
  1478. "example": "名称"
  1479. },
  1480. "value": {
  1481. "type": "string",
  1482. "example": "值"
  1483. }
  1484. }
  1485. },
  1486. "md.SmsDetail": {
  1487. "type": "object",
  1488. "properties": {
  1489. "create_at": {
  1490. "type": "string",
  1491. "example": "创建时间"
  1492. },
  1493. "id": {
  1494. "type": "integer"
  1495. },
  1496. "phone": {
  1497. "type": "string",
  1498. "example": "接收号码"
  1499. },
  1500. "state_zh": {
  1501. "type": "string",
  1502. "example": "发送状态"
  1503. }
  1504. }
  1505. },
  1506. "md.SmsDetailReq": {
  1507. "type": "object",
  1508. "properties": {
  1509. "limit": {
  1510. "type": "integer"
  1511. },
  1512. "page": {
  1513. "type": "integer"
  1514. },
  1515. "uuid": {
  1516. "type": "string",
  1517. "example": "站长ID"
  1518. }
  1519. }
  1520. },
  1521. "md.SmsDetailResp": {
  1522. "type": "object",
  1523. "properties": {
  1524. "list": {
  1525. "type": "array",
  1526. "items": {
  1527. "$ref": "#/definitions/md.SmsDetail"
  1528. }
  1529. },
  1530. "total": {
  1531. "type": "integer"
  1532. }
  1533. }
  1534. },
  1535. "md.SmsList": {
  1536. "type": "object",
  1537. "properties": {
  1538. "name": {
  1539. "type": "string",
  1540. "example": "站长名称"
  1541. },
  1542. "num": {
  1543. "description": "短信条数",
  1544. "type": "integer"
  1545. },
  1546. "uuid": {
  1547. "type": "string",
  1548. "example": "站长ID"
  1549. }
  1550. }
  1551. },
  1552. "md.SmsListReq": {
  1553. "type": "object",
  1554. "properties": {
  1555. "limit": {
  1556. "type": "integer"
  1557. },
  1558. "name": {
  1559. "type": "string",
  1560. "example": "站长名称"
  1561. },
  1562. "page": {
  1563. "type": "integer"
  1564. },
  1565. "uuid": {
  1566. "type": "string",
  1567. "example": "站长ID"
  1568. }
  1569. }
  1570. },
  1571. "md.SmsListResp": {
  1572. "type": "object",
  1573. "properties": {
  1574. "list": {
  1575. "type": "array",
  1576. "items": {
  1577. "$ref": "#/definitions/md.SmsList"
  1578. }
  1579. },
  1580. "total": {
  1581. "type": "integer"
  1582. }
  1583. }
  1584. },
  1585. "md.UpdateAdminReq": {
  1586. "type": "object",
  1587. "required": [
  1588. "adm_id",
  1589. "password",
  1590. "username"
  1591. ],
  1592. "properties": {
  1593. "adm_id": {
  1594. "type": "integer"
  1595. },
  1596. "memo": {
  1597. "type": "string"
  1598. },
  1599. "password": {
  1600. "type": "string"
  1601. },
  1602. "username": {
  1603. "type": "string"
  1604. }
  1605. }
  1606. },
  1607. "md.UpdateAdminStateReq": {
  1608. "type": "object",
  1609. "required": [
  1610. "adm_id",
  1611. "state"
  1612. ],
  1613. "properties": {
  1614. "adm_id": {
  1615. "type": "integer"
  1616. },
  1617. "state": {
  1618. "type": "integer"
  1619. }
  1620. }
  1621. },
  1622. "md.UpdateRoleReq": {
  1623. "type": "object",
  1624. "required": [
  1625. "memo",
  1626. "name",
  1627. "role_id"
  1628. ],
  1629. "properties": {
  1630. "memo": {
  1631. "type": "string"
  1632. },
  1633. "name": {
  1634. "type": "string"
  1635. },
  1636. "role_id": {
  1637. "type": "integer"
  1638. }
  1639. }
  1640. },
  1641. "md.UpdateRoleStateReq": {
  1642. "type": "object",
  1643. "required": [
  1644. "role_id",
  1645. "state"
  1646. ],
  1647. "properties": {
  1648. "role_id": {
  1649. "type": "integer"
  1650. },
  1651. "state": {
  1652. "type": "integer"
  1653. }
  1654. }
  1655. }
  1656. },
  1657. "securityDefinitions": {
  1658. "MasterID": {
  1659. "type": "apiKey",
  1660. "name": "MasterID",
  1661. "in": "header"
  1662. }
  1663. }
  1664. }`
  1665. // SwaggerInfo holds exported Swagger Info so clients can modify it
  1666. var SwaggerInfo = &swag.Spec{
  1667. Version: "1.0",
  1668. Host: "localhost:1001 or advertisement.dengbiao.top",
  1669. BasePath: "",
  1670. Schemes: []string{},
  1671. Title: "广告联盟-总站长平台",
  1672. Description: "总站长后台接口",
  1673. InfoInstanceName: "swagger",
  1674. SwaggerTemplate: docTemplate,
  1675. }
  1676. func init() {
  1677. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  1678. }