广告平台(总站长使用)
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

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