广告平台(媒体使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1782 lines
57 KiB

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