广告平台(媒体使用)
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

1757 rader
56 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:1004 or xxxxx.medium.dengbiao.top",
  19. "paths": {
  20. "/api/applet/application/ad/space/save": {
  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.AppletApplicationAdSpaceSaveReq"
  48. }
  49. }
  50. ],
  51. "responses": {
  52. "200": {
  53. "description": "具体看返回内容",
  54. "schema": {
  55. "type": "string"
  56. }
  57. },
  58. "400": {
  59. "description": "具体错误",
  60. "schema": {
  61. "$ref": "#/definitions/md.Response"
  62. }
  63. }
  64. }
  65. }
  66. },
  67. "/api/application/applet/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.AppletApplicationListReq"
  95. }
  96. }
  97. ],
  98. "responses": {
  99. "200": {
  100. "description": "具体看返回内容---这是data里面的数据",
  101. "schema": {
  102. "$ref": "#/definitions/md.AppletApplicationListRes"
  103. }
  104. },
  105. "400": {
  106. "description": "具体错误",
  107. "schema": {
  108. "$ref": "#/definitions/md.Response"
  109. }
  110. }
  111. }
  112. }
  113. },
  114. "/api/application/applet/save": {
  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.AppletApplicationSaveReq"
  142. }
  143. }
  144. ],
  145. "responses": {
  146. "200": {
  147. "description": "具体看返回内容",
  148. "schema": {
  149. "type": "string"
  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. "ADMIN"
  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/qiniuyun/upload": {
  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. },
  221. {
  222. "description": "请求参数",
  223. "name": "args",
  224. "in": "body",
  225. "required": true,
  226. "schema": {
  227. "$ref": "#/definitions/md.ImgReqUpload"
  228. }
  229. }
  230. ],
  231. "responses": {
  232. "200": {
  233. "description": "success",
  234. "schema": {
  235. "type": "string"
  236. }
  237. },
  238. "400": {
  239. "description": "具体错误",
  240. "schema": {
  241. "$ref": "#/definitions/md.Response"
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "/api/qualification/bank/save": {
  248. "post": {
  249. "description": "资质认证-银行资质保存",
  250. "consumes": [
  251. "application/json"
  252. ],
  253. "produces": [
  254. "application/json"
  255. ],
  256. "tags": [
  257. "资质认证------嘉俊"
  258. ],
  259. "summary": "银行资质保存",
  260. "parameters": [
  261. {
  262. "type": "string",
  263. "description": "验证参数Bearer和token空格拼接",
  264. "name": "Authorization",
  265. "in": "header",
  266. "required": true
  267. },
  268. {
  269. "description": "请求参数",
  270. "name": "args",
  271. "in": "body",
  272. "required": true,
  273. "schema": {
  274. "$ref": "#/definitions/md.MediumBankInfo"
  275. }
  276. }
  277. ],
  278. "responses": {
  279. "200": {
  280. "description": "具体看返回内容",
  281. "schema": {
  282. "type": "string"
  283. }
  284. },
  285. "400": {
  286. "description": "具体错误",
  287. "schema": {
  288. "$ref": "#/definitions/md.Response"
  289. }
  290. }
  291. }
  292. }
  293. },
  294. "/api/qualification/contact/save": {
  295. "post": {
  296. "description": "资质认证-联系方式保存",
  297. "consumes": [
  298. "application/json"
  299. ],
  300. "produces": [
  301. "application/json"
  302. ],
  303. "tags": [
  304. "资质认证------嘉俊"
  305. ],
  306. "summary": "联系方式保存",
  307. "parameters": [
  308. {
  309. "type": "string",
  310. "description": "验证参数Bearer和token空格拼接",
  311. "name": "Authorization",
  312. "in": "header",
  313. "required": true
  314. },
  315. {
  316. "description": "请求参数",
  317. "name": "args",
  318. "in": "body",
  319. "required": true,
  320. "schema": {
  321. "$ref": "#/definitions/md.MediumContactInfo"
  322. }
  323. }
  324. ],
  325. "responses": {
  326. "200": {
  327. "description": "具体看返回内容",
  328. "schema": {
  329. "type": "string"
  330. }
  331. },
  332. "400": {
  333. "description": "具体错误",
  334. "schema": {
  335. "$ref": "#/definitions/md.Response"
  336. }
  337. }
  338. }
  339. }
  340. },
  341. "/api/qualification/enterprise/save": {
  342. "post": {
  343. "description": "资质认证-企业认证保存",
  344. "consumes": [
  345. "application/json"
  346. ],
  347. "produces": [
  348. "application/json"
  349. ],
  350. "tags": [
  351. "资质认证------嘉俊"
  352. ],
  353. "summary": "企业认证保存",
  354. "parameters": [
  355. {
  356. "type": "string",
  357. "description": "验证参数Bearer和token空格拼接",
  358. "name": "Authorization",
  359. "in": "header",
  360. "required": true
  361. },
  362. {
  363. "description": "请求参数",
  364. "name": "args",
  365. "in": "body",
  366. "required": true,
  367. "schema": {
  368. "$ref": "#/definitions/md.MediumList"
  369. }
  370. }
  371. ],
  372. "responses": {
  373. "200": {
  374. "description": "具体看返回内容",
  375. "schema": {
  376. "type": "string"
  377. }
  378. },
  379. "400": {
  380. "description": "具体错误",
  381. "schema": {
  382. "$ref": "#/definitions/md.Response"
  383. }
  384. }
  385. }
  386. }
  387. },
  388. "/api/qualification/info": {
  389. "get": {
  390. "description": "资质认证-基本信息",
  391. "consumes": [
  392. "application/json"
  393. ],
  394. "produces": [
  395. "application/json"
  396. ],
  397. "tags": [
  398. "资质认证------嘉俊"
  399. ],
  400. "summary": "基本信息",
  401. "parameters": [
  402. {
  403. "type": "string",
  404. "description": "验证参数Bearer和token空格拼接",
  405. "name": "Authorization",
  406. "in": "header",
  407. "required": true
  408. }
  409. ],
  410. "responses": {
  411. "200": {
  412. "description": "具体看返回内容",
  413. "schema": {
  414. "type": "string"
  415. }
  416. },
  417. "400": {
  418. "description": "具体错误",
  419. "schema": {
  420. "$ref": "#/definitions/md.Response"
  421. }
  422. }
  423. }
  424. }
  425. },
  426. "/api/qualification/select/base": {
  427. "get": {
  428. "description": "资质认证-认证下拉框选择内容",
  429. "consumes": [
  430. "application/json"
  431. ],
  432. "produces": [
  433. "application/json"
  434. ],
  435. "tags": [
  436. "资质认证------嘉俊"
  437. ],
  438. "summary": "认证下拉框选择内容",
  439. "parameters": [
  440. {
  441. "type": "string",
  442. "description": "验证参数Bearer和token空格拼接",
  443. "name": "Authorization",
  444. "in": "header",
  445. "required": true
  446. }
  447. ],
  448. "responses": {
  449. "200": {
  450. "description": "具体看返回内容",
  451. "schema": {
  452. "type": "string"
  453. }
  454. },
  455. "400": {
  456. "description": "具体错误",
  457. "schema": {
  458. "$ref": "#/definitions/md.Response"
  459. }
  460. }
  461. }
  462. }
  463. },
  464. "/api/role/addAdmin": {
  465. "post": {
  466. "description": "新增管理员",
  467. "consumes": [
  468. "application/json"
  469. ],
  470. "produces": [
  471. "application/json"
  472. ],
  473. "tags": [
  474. "ADMIN-权限管理"
  475. ],
  476. "summary": "新增管理员",
  477. "parameters": [
  478. {
  479. "type": "string",
  480. "description": "验证参数Bearer和token空格拼接",
  481. "name": "Authorization",
  482. "in": "header",
  483. "required": true
  484. },
  485. {
  486. "description": "请求参数",
  487. "name": "args",
  488. "in": "body",
  489. "required": true,
  490. "schema": {
  491. "$ref": "#/definitions/md.AddAdminReq"
  492. }
  493. }
  494. ],
  495. "responses": {
  496. "200": {
  497. "description": "success",
  498. "schema": {
  499. "type": "string"
  500. }
  501. },
  502. "400": {
  503. "description": "具体错误",
  504. "schema": {
  505. "$ref": "#/definitions/md.Response"
  506. }
  507. }
  508. }
  509. }
  510. },
  511. "/api/role/addRole": {
  512. "post": {
  513. "description": "添加角色",
  514. "consumes": [
  515. "application/json"
  516. ],
  517. "produces": [
  518. "application/json"
  519. ],
  520. "tags": [
  521. "ADMIN-权限管理"
  522. ],
  523. "summary": "添加角色",
  524. "parameters": [
  525. {
  526. "type": "string",
  527. "description": "验证参数Bearer和token空格拼接",
  528. "name": "Authorization",
  529. "in": "header",
  530. "required": true
  531. },
  532. {
  533. "description": "请求参数",
  534. "name": "args",
  535. "in": "body",
  536. "required": true,
  537. "schema": {
  538. "$ref": "#/definitions/md.AddRoleReq"
  539. }
  540. }
  541. ],
  542. "responses": {
  543. "200": {
  544. "description": "success",
  545. "schema": {
  546. "type": "string"
  547. }
  548. },
  549. "400": {
  550. "description": "具体错误",
  551. "schema": {
  552. "$ref": "#/definitions/md.Response"
  553. }
  554. }
  555. }
  556. }
  557. },
  558. "/api/role/adminInfo": {
  559. "get": {
  560. "description": "管理员信息",
  561. "consumes": [
  562. "application/json"
  563. ],
  564. "produces": [
  565. "application/json"
  566. ],
  567. "tags": [
  568. "ADMIN-权限管理"
  569. ],
  570. "summary": "管理员信息",
  571. "parameters": [
  572. {
  573. "type": "string",
  574. "description": "验证参数Bearer和token空格拼接",
  575. "name": "Authorization",
  576. "in": "header",
  577. "required": true
  578. },
  579. {
  580. "type": "string",
  581. "description": "管理员id",
  582. "name": "adm_id",
  583. "in": "query",
  584. "required": true
  585. }
  586. ],
  587. "responses": {
  588. "200": {
  589. "description": "具体看返回内容",
  590. "schema": {
  591. "type": "string"
  592. }
  593. },
  594. "400": {
  595. "description": "具体错误",
  596. "schema": {
  597. "$ref": "#/definitions/md.Response"
  598. }
  599. }
  600. }
  601. }
  602. },
  603. "/api/role/adminList": {
  604. "post": {
  605. "description": "管理员列表",
  606. "consumes": [
  607. "application/json"
  608. ],
  609. "produces": [
  610. "application/json"
  611. ],
  612. "tags": [
  613. "ADMIN-权限管理"
  614. ],
  615. "summary": "管理员列表",
  616. "parameters": [
  617. {
  618. "type": "string",
  619. "description": "验证参数Bearer和token空格拼接",
  620. "name": "Authorization",
  621. "in": "header",
  622. "required": true
  623. },
  624. {
  625. "description": "请求参数",
  626. "name": "args",
  627. "in": "body",
  628. "required": true,
  629. "schema": {
  630. "$ref": "#/definitions/md.AdminListReq"
  631. }
  632. }
  633. ],
  634. "responses": {
  635. "200": {
  636. "description": "具体看返回内容",
  637. "schema": {
  638. "type": "string"
  639. }
  640. },
  641. "400": {
  642. "description": "具体错误",
  643. "schema": {
  644. "$ref": "#/definitions/md.Response"
  645. }
  646. }
  647. }
  648. }
  649. },
  650. "/api/role/bindAdminRole/": {
  651. "post": {
  652. "description": "管理员绑定角色",
  653. "consumes": [
  654. "application/json"
  655. ],
  656. "produces": [
  657. "application/json"
  658. ],
  659. "tags": [
  660. "ADMIN-权限管理"
  661. ],
  662. "summary": "管理员绑定角色",
  663. "parameters": [
  664. {
  665. "type": "string",
  666. "description": "验证参数Bearer和token空格拼接",
  667. "name": "Authorization",
  668. "in": "header",
  669. "required": true
  670. },
  671. {
  672. "description": "请求参数",
  673. "name": "args",
  674. "in": "body",
  675. "required": true,
  676. "schema": {
  677. "$ref": "#/definitions/md.BindAdminRoleReq"
  678. }
  679. }
  680. ],
  681. "responses": {
  682. "200": {
  683. "description": "success",
  684. "schema": {
  685. "type": "string"
  686. }
  687. },
  688. "400": {
  689. "description": "具体错误",
  690. "schema": {
  691. "$ref": "#/definitions/md.Response"
  692. }
  693. }
  694. }
  695. }
  696. },
  697. "/api/role/deleteAdmin/{$adm_id}": {
  698. "delete": {
  699. "description": "删除管理员",
  700. "consumes": [
  701. "application/json"
  702. ],
  703. "produces": [
  704. "application/json"
  705. ],
  706. "tags": [
  707. "ADMIN-权限管理"
  708. ],
  709. "summary": "删除管理员",
  710. "parameters": [
  711. {
  712. "type": "string",
  713. "description": "验证参数Bearer和token空格拼接",
  714. "name": "Authorization",
  715. "in": "header",
  716. "required": true
  717. }
  718. ],
  719. "responses": {
  720. "200": {
  721. "description": "success",
  722. "schema": {
  723. "type": "string"
  724. }
  725. },
  726. "400": {
  727. "description": "具体错误",
  728. "schema": {
  729. "$ref": "#/definitions/md.Response"
  730. }
  731. }
  732. }
  733. }
  734. },
  735. "/api/role/deleteRole/{$id}": {
  736. "delete": {
  737. "description": "删除角色",
  738. "consumes": [
  739. "application/json"
  740. ],
  741. "produces": [
  742. "application/json"
  743. ],
  744. "tags": [
  745. "ADMIN-权限管理"
  746. ],
  747. "summary": "删除角色",
  748. "parameters": [
  749. {
  750. "type": "string",
  751. "description": "验证参数Bearer和token空格拼接",
  752. "name": "Authorization",
  753. "in": "header",
  754. "required": true
  755. },
  756. {
  757. "description": "请求参数",
  758. "name": "args",
  759. "in": "body",
  760. "required": true,
  761. "schema": {
  762. "$ref": "#/definitions/md.UpdateRoleStateReq"
  763. }
  764. }
  765. ],
  766. "responses": {
  767. "200": {
  768. "description": "success",
  769. "schema": {
  770. "type": "string"
  771. }
  772. },
  773. "400": {
  774. "description": "具体错误",
  775. "schema": {
  776. "$ref": "#/definitions/md.Response"
  777. }
  778. }
  779. }
  780. }
  781. },
  782. "/api/role/permissionGroupList": {
  783. "get": {
  784. "description": "权限组列表",
  785. "consumes": [
  786. "application/json"
  787. ],
  788. "produces": [
  789. "application/json"
  790. ],
  791. "tags": [
  792. "ADMIN-权限管理"
  793. ],
  794. "summary": "权限组列表",
  795. "parameters": [
  796. {
  797. "type": "string",
  798. "description": "验证参数Bearer和token空格拼接",
  799. "name": "Authorization",
  800. "in": "header",
  801. "required": true
  802. },
  803. {
  804. "type": "string",
  805. "description": "管理员id",
  806. "name": "adm_id",
  807. "in": "query",
  808. "required": true
  809. }
  810. ],
  811. "responses": {
  812. "200": {
  813. "description": "具体看返回内容",
  814. "schema": {
  815. "type": "string"
  816. }
  817. },
  818. "400": {
  819. "description": "具体错误",
  820. "schema": {
  821. "$ref": "#/definitions/md.Response"
  822. }
  823. }
  824. }
  825. }
  826. },
  827. "/api/role/roleBindPermissionGroup": {
  828. "post": {
  829. "description": "角色绑定权限组",
  830. "consumes": [
  831. "application/json"
  832. ],
  833. "produces": [
  834. "application/json"
  835. ],
  836. "tags": [
  837. "ADMIN-权限管理"
  838. ],
  839. "summary": "角色绑定权限组",
  840. "parameters": [
  841. {
  842. "type": "string",
  843. "description": "验证参数Bearer和token空格拼接",
  844. "name": "Authorization",
  845. "in": "header",
  846. "required": true
  847. },
  848. {
  849. "description": "请求参数",
  850. "name": "args",
  851. "in": "body",
  852. "required": true,
  853. "schema": {
  854. "$ref": "#/definitions/md.RoleBindPermissionGroupReq"
  855. }
  856. }
  857. ],
  858. "responses": {
  859. "200": {
  860. "description": "success",
  861. "schema": {
  862. "type": "string"
  863. }
  864. },
  865. "400": {
  866. "description": "具体错误",
  867. "schema": {
  868. "$ref": "#/definitions/md.Response"
  869. }
  870. }
  871. }
  872. }
  873. },
  874. "/api/role/roleList": {
  875. "get": {
  876. "description": "角色列表",
  877. "consumes": [
  878. "application/json"
  879. ],
  880. "produces": [
  881. "application/json"
  882. ],
  883. "tags": [
  884. "ADMIN-权限管理"
  885. ],
  886. "summary": "角色列表",
  887. "parameters": [
  888. {
  889. "type": "string",
  890. "description": "验证参数Bearer和token空格拼接",
  891. "name": "Authorization",
  892. "in": "header",
  893. "required": true
  894. }
  895. ],
  896. "responses": {
  897. "200": {
  898. "description": "具体看返回内容",
  899. "schema": {
  900. "type": "string"
  901. }
  902. },
  903. "400": {
  904. "description": "具体错误",
  905. "schema": {
  906. "$ref": "#/definitions/md.Response"
  907. }
  908. }
  909. }
  910. }
  911. },
  912. "/api/role/updateAdmin": {
  913. "post": {
  914. "description": "修改管理员信息",
  915. "consumes": [
  916. "application/json"
  917. ],
  918. "produces": [
  919. "application/json"
  920. ],
  921. "tags": [
  922. "ADMIN-权限管理"
  923. ],
  924. "summary": "修改管理员信息",
  925. "parameters": [
  926. {
  927. "type": "string",
  928. "description": "验证参数Bearer和token空格拼接",
  929. "name": "Authorization",
  930. "in": "header",
  931. "required": true
  932. },
  933. {
  934. "description": "请求参数",
  935. "name": "args",
  936. "in": "body",
  937. "required": true,
  938. "schema": {
  939. "$ref": "#/definitions/md.UpdateAdminReq"
  940. }
  941. }
  942. ],
  943. "responses": {
  944. "200": {
  945. "description": "success",
  946. "schema": {
  947. "type": "string"
  948. }
  949. },
  950. "400": {
  951. "description": "具体错误",
  952. "schema": {
  953. "$ref": "#/definitions/md.Response"
  954. }
  955. }
  956. }
  957. }
  958. },
  959. "/api/role/updateAdminState": {
  960. "post": {
  961. "description": "修改管理员状态",
  962. "consumes": [
  963. "application/json"
  964. ],
  965. "produces": [
  966. "application/json"
  967. ],
  968. "tags": [
  969. "ADMIN-权限管理"
  970. ],
  971. "summary": "修改管理员状态",
  972. "parameters": [
  973. {
  974. "type": "string",
  975. "description": "验证参数Bearer和token空格拼接",
  976. "name": "Authorization",
  977. "in": "header",
  978. "required": true
  979. },
  980. {
  981. "description": "请求参数",
  982. "name": "args",
  983. "in": "body",
  984. "required": true,
  985. "schema": {
  986. "$ref": "#/definitions/md.UpdateAdminStateReq"
  987. }
  988. }
  989. ],
  990. "responses": {
  991. "200": {
  992. "description": "success",
  993. "schema": {
  994. "type": "string"
  995. }
  996. },
  997. "400": {
  998. "description": "具体错误",
  999. "schema": {
  1000. "$ref": "#/definitions/md.Response"
  1001. }
  1002. }
  1003. }
  1004. }
  1005. },
  1006. "/api/role/updateRole": {
  1007. "post": {
  1008. "description": "修改角色状态",
  1009. "consumes": [
  1010. "application/json"
  1011. ],
  1012. "produces": [
  1013. "application/json"
  1014. ],
  1015. "tags": [
  1016. "ADMIN-权限管理"
  1017. ],
  1018. "summary": "修改角色状态",
  1019. "parameters": [
  1020. {
  1021. "type": "string",
  1022. "description": "验证参数Bearer和token空格拼接",
  1023. "name": "Authorization",
  1024. "in": "header",
  1025. "required": true
  1026. },
  1027. {
  1028. "description": "请求参数",
  1029. "name": "args",
  1030. "in": "body",
  1031. "required": true,
  1032. "schema": {
  1033. "$ref": "#/definitions/md.UpdateRoleStateReq"
  1034. }
  1035. }
  1036. ],
  1037. "responses": {
  1038. "200": {
  1039. "description": "success",
  1040. "schema": {
  1041. "type": "string"
  1042. }
  1043. },
  1044. "400": {
  1045. "description": "具体错误",
  1046. "schema": {
  1047. "$ref": "#/definitions/md.Response"
  1048. }
  1049. }
  1050. }
  1051. }
  1052. },
  1053. "/api/sms": {
  1054. "post": {
  1055. "description": "短信-短信发送",
  1056. "consumes": [
  1057. "application/json"
  1058. ],
  1059. "produces": [
  1060. "application/json"
  1061. ],
  1062. "tags": [
  1063. "短信"
  1064. ],
  1065. "summary": "短信发送",
  1066. "parameters": [
  1067. {
  1068. "type": "string",
  1069. "description": "验证参数Bearer和token空格拼接",
  1070. "name": "Authorization",
  1071. "in": "header"
  1072. },
  1073. {
  1074. "description": "请求参数",
  1075. "name": "args",
  1076. "in": "body",
  1077. "required": true,
  1078. "schema": {
  1079. "$ref": "#/definitions/md.SmsReq"
  1080. }
  1081. }
  1082. ],
  1083. "responses": {
  1084. "200": {
  1085. "description": "success",
  1086. "schema": {
  1087. "type": "string"
  1088. }
  1089. },
  1090. "400": {
  1091. "description": "具体错误",
  1092. "schema": {
  1093. "$ref": "#/definitions/md.Response"
  1094. }
  1095. }
  1096. }
  1097. }
  1098. }
  1099. },
  1100. "definitions": {
  1101. "md.AddAdminReq": {
  1102. "type": "object",
  1103. "required": [
  1104. "password",
  1105. "username"
  1106. ],
  1107. "properties": {
  1108. "memo": {
  1109. "type": "string"
  1110. },
  1111. "password": {
  1112. "type": "string"
  1113. },
  1114. "username": {
  1115. "type": "string"
  1116. }
  1117. }
  1118. },
  1119. "md.AddRoleReq": {
  1120. "type": "object",
  1121. "required": [
  1122. "memo",
  1123. "name"
  1124. ],
  1125. "properties": {
  1126. "memo": {
  1127. "type": "string"
  1128. },
  1129. "name": {
  1130. "type": "string"
  1131. }
  1132. }
  1133. },
  1134. "md.AdminListReq": {
  1135. "type": "object",
  1136. "properties": {
  1137. "limit": {
  1138. "type": "integer"
  1139. },
  1140. "page": {
  1141. "type": "integer"
  1142. },
  1143. "state": {
  1144. "type": "integer"
  1145. },
  1146. "username": {
  1147. "type": "string"
  1148. }
  1149. }
  1150. },
  1151. "md.AppletApplicationAdSpaceListData": {
  1152. "type": "object",
  1153. "properties": {
  1154. "ad_id": {
  1155. "type": "string",
  1156. "example": "广告位id"
  1157. },
  1158. "app_id": {
  1159. "type": "string",
  1160. "example": "小程序appid"
  1161. },
  1162. "cooperate_state": {
  1163. "type": "string",
  1164. "example": "合作状态"
  1165. },
  1166. "id": {
  1167. "type": "string",
  1168. "example": "id"
  1169. },
  1170. "kind": {
  1171. "type": "string",
  1172. "example": "广告位类型"
  1173. },
  1174. "logo": {
  1175. "type": "string",
  1176. "example": "logo"
  1177. },
  1178. "memo": {
  1179. "type": "string",
  1180. "example": "备注"
  1181. },
  1182. "name": {
  1183. "type": "string",
  1184. "example": "应用名称"
  1185. },
  1186. "platform": {
  1187. "type": "string",
  1188. "example": "平台"
  1189. },
  1190. "state": {
  1191. "type": "string",
  1192. "example": "应用状态 state=2 才能再次编辑"
  1193. }
  1194. }
  1195. },
  1196. "md.AppletApplicationAdSpaceListReq": {
  1197. "type": "object",
  1198. "properties": {
  1199. "cooperate_state": {
  1200. "type": "string",
  1201. "example": "合作状态"
  1202. },
  1203. "limit": {
  1204. "type": "string"
  1205. },
  1206. "name": {
  1207. "type": "string"
  1208. },
  1209. "page": {
  1210. "type": "string"
  1211. },
  1212. "platform": {
  1213. "type": "string"
  1214. }
  1215. }
  1216. },
  1217. "md.AppletApplicationAdSpaceListRes": {
  1218. "type": "object",
  1219. "properties": {
  1220. "ad_type": {
  1221. "type": "array",
  1222. "items": {
  1223. "$ref": "#/definitions/md.SelectData"
  1224. }
  1225. },
  1226. "application": {
  1227. "type": "array",
  1228. "items": {
  1229. "type": "object",
  1230. "additionalProperties": {
  1231. "type": "string"
  1232. }
  1233. }
  1234. },
  1235. "cooperate_state": {
  1236. "type": "array",
  1237. "items": {
  1238. "$ref": "#/definitions/md.SelectData"
  1239. }
  1240. },
  1241. "list": {
  1242. "type": "array",
  1243. "items": {
  1244. "$ref": "#/definitions/md.AppletApplicationAdSpaceListData"
  1245. }
  1246. },
  1247. "platform": {
  1248. "type": "array",
  1249. "items": {
  1250. "$ref": "#/definitions/md.SelectData"
  1251. }
  1252. },
  1253. "state": {
  1254. "type": "array",
  1255. "items": {
  1256. "$ref": "#/definitions/md.SelectData"
  1257. }
  1258. },
  1259. "total": {
  1260. "type": "integer"
  1261. }
  1262. }
  1263. },
  1264. "md.AppletApplicationAdSpaceSaveReq": {
  1265. "type": "object",
  1266. "properties": {
  1267. "app_id": {
  1268. "type": "string",
  1269. "example": "小程序appid"
  1270. },
  1271. "kind": {
  1272. "type": "string",
  1273. "example": "广告类型"
  1274. },
  1275. "name": {
  1276. "type": "string",
  1277. "example": "应用名称"
  1278. }
  1279. }
  1280. },
  1281. "md.AppletApplicationListData": {
  1282. "type": "object",
  1283. "properties": {
  1284. "app_id": {
  1285. "type": "string",
  1286. "example": "小程序appid"
  1287. },
  1288. "cooperate_state": {
  1289. "type": "string",
  1290. "example": "合作状态"
  1291. },
  1292. "id": {
  1293. "type": "string",
  1294. "example": "id"
  1295. },
  1296. "logo": {
  1297. "type": "string",
  1298. "example": "logo"
  1299. },
  1300. "memo": {
  1301. "type": "string",
  1302. "example": "备注"
  1303. },
  1304. "name": {
  1305. "type": "string",
  1306. "example": "应用名称"
  1307. },
  1308. "original_id": {
  1309. "type": "string",
  1310. "example": "小程序id"
  1311. },
  1312. "platform": {
  1313. "type": "string",
  1314. "example": "平台"
  1315. },
  1316. "state": {
  1317. "type": "string",
  1318. "example": "应用状态 state=3 才能再次编辑"
  1319. }
  1320. }
  1321. },
  1322. "md.AppletApplicationListReq": {
  1323. "type": "object",
  1324. "properties": {
  1325. "cooperate_state": {
  1326. "type": "string",
  1327. "example": "合作状态"
  1328. },
  1329. "limit": {
  1330. "type": "string"
  1331. },
  1332. "name": {
  1333. "type": "string"
  1334. },
  1335. "page": {
  1336. "type": "string"
  1337. },
  1338. "platform": {
  1339. "type": "string"
  1340. }
  1341. }
  1342. },
  1343. "md.AppletApplicationListRes": {
  1344. "type": "object",
  1345. "properties": {
  1346. "cooperate_state": {
  1347. "type": "array",
  1348. "items": {
  1349. "$ref": "#/definitions/md.SelectData"
  1350. }
  1351. },
  1352. "list": {
  1353. "type": "array",
  1354. "items": {
  1355. "$ref": "#/definitions/md.AppletApplicationListData"
  1356. }
  1357. },
  1358. "platform": {
  1359. "type": "array",
  1360. "items": {
  1361. "$ref": "#/definitions/md.SelectData"
  1362. }
  1363. },
  1364. "state": {
  1365. "type": "array",
  1366. "items": {
  1367. "$ref": "#/definitions/md.SelectData"
  1368. }
  1369. },
  1370. "total": {
  1371. "type": "integer"
  1372. }
  1373. }
  1374. },
  1375. "md.AppletApplicationSaveReq": {
  1376. "type": "object",
  1377. "properties": {
  1378. "app_id": {
  1379. "type": "string",
  1380. "example": "小程序appid"
  1381. },
  1382. "id": {
  1383. "type": "string",
  1384. "example": "id"
  1385. },
  1386. "logo": {
  1387. "type": "string",
  1388. "example": "logo"
  1389. },
  1390. "name": {
  1391. "type": "string",
  1392. "example": "应用名称"
  1393. },
  1394. "original_id": {
  1395. "type": "string",
  1396. "example": "小程序id"
  1397. },
  1398. "platform": {
  1399. "type": "string",
  1400. "example": "平台 微信小程序:wx_applet"
  1401. }
  1402. }
  1403. },
  1404. "md.BindAdminRoleReq": {
  1405. "type": "object",
  1406. "required": [
  1407. "id"
  1408. ],
  1409. "properties": {
  1410. "id": {
  1411. "type": "integer"
  1412. },
  1413. "role_ids": {
  1414. "type": "array",
  1415. "items": {
  1416. "type": "integer"
  1417. }
  1418. }
  1419. }
  1420. },
  1421. "md.ImgReqUpload": {
  1422. "type": "object",
  1423. "properties": {
  1424. "dir": {
  1425. "type": "string"
  1426. },
  1427. "file_name": {
  1428. "type": "string"
  1429. },
  1430. "file_size": {
  1431. "description": "文件大小, 单位byte",
  1432. "type": "integer"
  1433. }
  1434. }
  1435. },
  1436. "md.LoginPhoneReq": {
  1437. "type": "object",
  1438. "required": [
  1439. "captcha",
  1440. "username"
  1441. ],
  1442. "properties": {
  1443. "captcha": {
  1444. "type": "string",
  1445. "example": "验证码"
  1446. },
  1447. "username": {
  1448. "type": "string",
  1449. "example": "登录账号"
  1450. }
  1451. }
  1452. },
  1453. "md.LoginReq": {
  1454. "type": "object",
  1455. "required": [
  1456. "password",
  1457. "username"
  1458. ],
  1459. "properties": {
  1460. "code": {
  1461. "type": "string",
  1462. "example": "验证码"
  1463. },
  1464. "password": {
  1465. "type": "string",
  1466. "example": "登录密码"
  1467. },
  1468. "username": {
  1469. "type": "string",
  1470. "example": "登录账号"
  1471. }
  1472. }
  1473. },
  1474. "md.LoginResponse": {
  1475. "type": "object",
  1476. "properties": {
  1477. "token": {
  1478. "type": "string"
  1479. }
  1480. }
  1481. },
  1482. "md.MediumBankInfo": {
  1483. "type": "object",
  1484. "properties": {
  1485. "bank": {
  1486. "type": "string"
  1487. },
  1488. "bank_branch": {
  1489. "type": "string"
  1490. },
  1491. "bank_no": {
  1492. "type": "string"
  1493. },
  1494. "currency_conf": {
  1495. "type": "integer"
  1496. },
  1497. "id": {
  1498. "type": "integer"
  1499. },
  1500. "licence": {
  1501. "type": "string"
  1502. },
  1503. "medium_id": {
  1504. "type": "integer"
  1505. },
  1506. "memo": {
  1507. "type": "string"
  1508. },
  1509. "state": {
  1510. "type": "integer"
  1511. },
  1512. "uuid": {
  1513. "type": "integer"
  1514. }
  1515. }
  1516. },
  1517. "md.MediumContactInfo": {
  1518. "type": "object",
  1519. "properties": {
  1520. "address": {
  1521. "type": "string"
  1522. },
  1523. "email": {
  1524. "type": "string"
  1525. },
  1526. "id": {
  1527. "type": "integer"
  1528. },
  1529. "medium_id": {
  1530. "type": "integer"
  1531. },
  1532. "memo": {
  1533. "type": "string"
  1534. },
  1535. "name": {
  1536. "type": "string"
  1537. },
  1538. "phone": {
  1539. "type": "string"
  1540. },
  1541. "state": {
  1542. "type": "integer"
  1543. },
  1544. "uuid": {
  1545. "type": "integer"
  1546. }
  1547. }
  1548. },
  1549. "md.MediumList": {
  1550. "type": "object",
  1551. "properties": {
  1552. "business_license_address": {
  1553. "type": "string"
  1554. },
  1555. "business_license_img_url": {
  1556. "type": "string"
  1557. },
  1558. "certificate_first_type": {
  1559. "type": "integer"
  1560. },
  1561. "certificate_type": {
  1562. "type": "integer"
  1563. },
  1564. "certificate_validity": {
  1565. "type": "string"
  1566. },
  1567. "company_abbreviation": {
  1568. "type": "string"
  1569. },
  1570. "company_name": {
  1571. "type": "string"
  1572. },
  1573. "country_region": {
  1574. "type": "string"
  1575. },
  1576. "country_region_id": {
  1577. "type": "integer"
  1578. },
  1579. "id": {
  1580. "type": "integer"
  1581. },
  1582. "kind": {
  1583. "type": "integer"
  1584. },
  1585. "legal_representative": {
  1586. "type": "string"
  1587. },
  1588. "medium_id": {
  1589. "type": "integer"
  1590. },
  1591. "memo": {
  1592. "type": "string"
  1593. },
  1594. "registered_address": {
  1595. "type": "string"
  1596. },
  1597. "registered_address_city_id": {
  1598. "type": "integer"
  1599. },
  1600. "registered_address_country_id": {
  1601. "type": "integer"
  1602. },
  1603. "registered_address_county_id": {
  1604. "type": "integer"
  1605. },
  1606. "registered_address_province_id": {
  1607. "type": "integer"
  1608. },
  1609. "state": {
  1610. "type": "integer"
  1611. },
  1612. "unified_social_credit_code": {
  1613. "type": "string"
  1614. },
  1615. "uuid": {
  1616. "type": "integer"
  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.SmsReq": {
  1667. "type": "object",
  1668. "properties": {
  1669. "phone": {
  1670. "type": "string"
  1671. },
  1672. "type": {
  1673. "type": "string",
  1674. "example": "手机号登陆:fast_login 注册:register"
  1675. }
  1676. }
  1677. },
  1678. "md.UpdateAdminReq": {
  1679. "type": "object",
  1680. "required": [
  1681. "id",
  1682. "password",
  1683. "username"
  1684. ],
  1685. "properties": {
  1686. "id": {
  1687. "type": "integer"
  1688. },
  1689. "memo": {
  1690. "type": "string"
  1691. },
  1692. "password": {
  1693. "type": "string"
  1694. },
  1695. "username": {
  1696. "type": "string"
  1697. }
  1698. }
  1699. },
  1700. "md.UpdateAdminStateReq": {
  1701. "type": "object",
  1702. "required": [
  1703. "id",
  1704. "state"
  1705. ],
  1706. "properties": {
  1707. "id": {
  1708. "type": "integer"
  1709. },
  1710. "state": {
  1711. "type": "integer"
  1712. }
  1713. }
  1714. },
  1715. "md.UpdateRoleReq": {
  1716. "type": "object",
  1717. "required": [
  1718. "memo",
  1719. "name",
  1720. "role_id"
  1721. ],
  1722. "properties": {
  1723. "memo": {
  1724. "type": "string"
  1725. },
  1726. "name": {
  1727. "type": "string"
  1728. },
  1729. "role_id": {
  1730. "type": "integer"
  1731. }
  1732. }
  1733. },
  1734. "md.UpdateRoleStateReq": {
  1735. "type": "object",
  1736. "required": [
  1737. "role_id",
  1738. "state"
  1739. ],
  1740. "properties": {
  1741. "role_id": {
  1742. "type": "integer"
  1743. },
  1744. "state": {
  1745. "type": "integer"
  1746. }
  1747. }
  1748. }
  1749. },
  1750. "securityDefinitions": {
  1751. "MasterID": {
  1752. "type": "apiKey",
  1753. "name": "MasterID",
  1754. "in": "header"
  1755. }
  1756. }
  1757. }