广告平台(总站长使用)
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

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