广告平台(总站长使用)
Não pode escolher mais do que 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.
 
 
 
 
 
 

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