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

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