广告平台(媒体使用)
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

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