广告平台(总站长使用)
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

1842 linhas
59 KiB

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