广告平台(媒体使用)
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

2107 рядки
68 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/application/applet/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/application/applet/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. "ad_type": {
  1526. "type": "string",
  1527. "example": "广告位类型"
  1528. },
  1529. "cooperate_state": {
  1530. "type": "string",
  1531. "example": "合作状态"
  1532. },
  1533. "limit": {
  1534. "type": "string"
  1535. },
  1536. "name": {
  1537. "type": "string"
  1538. },
  1539. "page": {
  1540. "type": "string"
  1541. },
  1542. "platform": {
  1543. "type": "string"
  1544. }
  1545. }
  1546. },
  1547. "md.AppletApplicationAdSpaceListRes": {
  1548. "type": "object",
  1549. "properties": {
  1550. "ad_type": {
  1551. "type": "array",
  1552. "items": {
  1553. "$ref": "#/definitions/md.SelectData"
  1554. }
  1555. },
  1556. "application": {
  1557. "type": "array",
  1558. "items": {
  1559. "type": "object",
  1560. "additionalProperties": {
  1561. "type": "string"
  1562. }
  1563. }
  1564. },
  1565. "cooperate_state": {
  1566. "type": "array",
  1567. "items": {
  1568. "$ref": "#/definitions/md.SelectData"
  1569. }
  1570. },
  1571. "list": {
  1572. "type": "array",
  1573. "items": {
  1574. "$ref": "#/definitions/md.AppletApplicationAdSpaceListData"
  1575. }
  1576. },
  1577. "platform": {
  1578. "type": "array",
  1579. "items": {
  1580. "$ref": "#/definitions/md.SelectData"
  1581. }
  1582. },
  1583. "state": {
  1584. "type": "array",
  1585. "items": {
  1586. "$ref": "#/definitions/md.SelectData"
  1587. }
  1588. },
  1589. "total": {
  1590. "type": "integer"
  1591. }
  1592. }
  1593. },
  1594. "md.AppletApplicationAdSpaceSaveReq": {
  1595. "type": "object",
  1596. "properties": {
  1597. "app_id": {
  1598. "type": "string",
  1599. "example": "小程序appid"
  1600. },
  1601. "kind": {
  1602. "type": "string",
  1603. "example": "广告类型"
  1604. },
  1605. "name": {
  1606. "type": "string",
  1607. "example": "应用名称"
  1608. }
  1609. }
  1610. },
  1611. "md.AppletApplicationListData": {
  1612. "type": "object",
  1613. "properties": {
  1614. "app_id": {
  1615. "type": "string",
  1616. "example": "小程序appid"
  1617. },
  1618. "cooperate_state": {
  1619. "type": "string",
  1620. "example": "合作状态"
  1621. },
  1622. "id": {
  1623. "type": "string",
  1624. "example": "id"
  1625. },
  1626. "logo": {
  1627. "type": "string",
  1628. "example": "logo"
  1629. },
  1630. "memo": {
  1631. "type": "string",
  1632. "example": "备注"
  1633. },
  1634. "name": {
  1635. "type": "string",
  1636. "example": "应用名称"
  1637. },
  1638. "original_id": {
  1639. "type": "string",
  1640. "example": "小程序id"
  1641. },
  1642. "platform": {
  1643. "type": "string",
  1644. "example": "平台"
  1645. },
  1646. "state": {
  1647. "type": "string",
  1648. "example": "应用状态 state=3 才能再次编辑"
  1649. }
  1650. }
  1651. },
  1652. "md.AppletApplicationListReq": {
  1653. "type": "object",
  1654. "properties": {
  1655. "cooperate_state": {
  1656. "type": "string",
  1657. "example": "合作状态"
  1658. },
  1659. "limit": {
  1660. "type": "string"
  1661. },
  1662. "name": {
  1663. "type": "string"
  1664. },
  1665. "page": {
  1666. "type": "string"
  1667. },
  1668. "platform": {
  1669. "type": "string"
  1670. }
  1671. }
  1672. },
  1673. "md.AppletApplicationListRes": {
  1674. "type": "object",
  1675. "properties": {
  1676. "cooperate_state": {
  1677. "type": "array",
  1678. "items": {
  1679. "$ref": "#/definitions/md.SelectData"
  1680. }
  1681. },
  1682. "list": {
  1683. "type": "array",
  1684. "items": {
  1685. "$ref": "#/definitions/md.AppletApplicationListData"
  1686. }
  1687. },
  1688. "platform": {
  1689. "type": "array",
  1690. "items": {
  1691. "$ref": "#/definitions/md.SelectData"
  1692. }
  1693. },
  1694. "state": {
  1695. "type": "array",
  1696. "items": {
  1697. "$ref": "#/definitions/md.SelectData"
  1698. }
  1699. },
  1700. "total": {
  1701. "type": "integer"
  1702. }
  1703. }
  1704. },
  1705. "md.AppletApplicationSaveReq": {
  1706. "type": "object",
  1707. "properties": {
  1708. "app_id": {
  1709. "type": "string",
  1710. "example": "小程序appid"
  1711. },
  1712. "id": {
  1713. "type": "string",
  1714. "example": "id"
  1715. },
  1716. "logo": {
  1717. "type": "string",
  1718. "example": "logo"
  1719. },
  1720. "name": {
  1721. "type": "string",
  1722. "example": "应用名称"
  1723. },
  1724. "original_id": {
  1725. "type": "string",
  1726. "example": "小程序id"
  1727. },
  1728. "platform": {
  1729. "type": "string",
  1730. "example": "平台 微信小程序:wx_applet"
  1731. }
  1732. }
  1733. },
  1734. "md.BindAdminRoleReq": {
  1735. "type": "object",
  1736. "required": [
  1737. "id"
  1738. ],
  1739. "properties": {
  1740. "id": {
  1741. "type": "integer"
  1742. },
  1743. "role_ids": {
  1744. "type": "array",
  1745. "items": {
  1746. "type": "integer"
  1747. }
  1748. }
  1749. }
  1750. },
  1751. "md.ImgReqUpload": {
  1752. "type": "object",
  1753. "properties": {
  1754. "dir": {
  1755. "type": "string"
  1756. },
  1757. "file_name": {
  1758. "type": "string"
  1759. },
  1760. "file_size": {
  1761. "description": "文件大小, 单位byte",
  1762. "type": "integer"
  1763. }
  1764. }
  1765. },
  1766. "md.LoginPhoneReq": {
  1767. "type": "object",
  1768. "required": [
  1769. "captcha",
  1770. "username"
  1771. ],
  1772. "properties": {
  1773. "captcha": {
  1774. "type": "string",
  1775. "example": "验证码"
  1776. },
  1777. "username": {
  1778. "type": "string",
  1779. "example": "登录账号"
  1780. }
  1781. }
  1782. },
  1783. "md.LoginReq": {
  1784. "type": "object",
  1785. "required": [
  1786. "password",
  1787. "username"
  1788. ],
  1789. "properties": {
  1790. "code": {
  1791. "type": "string",
  1792. "example": "验证码"
  1793. },
  1794. "password": {
  1795. "type": "string",
  1796. "example": "登录密码"
  1797. },
  1798. "username": {
  1799. "type": "string",
  1800. "example": "登录账号"
  1801. }
  1802. }
  1803. },
  1804. "md.LoginResponse": {
  1805. "type": "object",
  1806. "properties": {
  1807. "token": {
  1808. "type": "string"
  1809. }
  1810. }
  1811. },
  1812. "md.MediumBankInfo": {
  1813. "type": "object",
  1814. "properties": {
  1815. "bank": {
  1816. "type": "string"
  1817. },
  1818. "bank_branch": {
  1819. "type": "string"
  1820. },
  1821. "bank_no": {
  1822. "type": "string"
  1823. },
  1824. "currency_conf": {
  1825. "type": "string"
  1826. },
  1827. "id": {
  1828. "type": "string"
  1829. },
  1830. "licence": {
  1831. "type": "string"
  1832. },
  1833. "medium_id": {
  1834. "type": "string"
  1835. },
  1836. "memo": {
  1837. "type": "string"
  1838. },
  1839. "state": {
  1840. "type": "string"
  1841. },
  1842. "uuid": {
  1843. "type": "string"
  1844. }
  1845. }
  1846. },
  1847. "md.MediumContactInfo": {
  1848. "type": "object",
  1849. "properties": {
  1850. "address": {
  1851. "type": "string"
  1852. },
  1853. "email": {
  1854. "type": "string"
  1855. },
  1856. "id": {
  1857. "type": "string"
  1858. },
  1859. "medium_id": {
  1860. "type": "string"
  1861. },
  1862. "memo": {
  1863. "type": "string"
  1864. },
  1865. "name": {
  1866. "type": "string"
  1867. },
  1868. "phone": {
  1869. "type": "string"
  1870. },
  1871. "state": {
  1872. "type": "string"
  1873. },
  1874. "uuid": {
  1875. "type": "string"
  1876. }
  1877. }
  1878. },
  1879. "md.MediumList": {
  1880. "type": "object",
  1881. "properties": {
  1882. "business_license_address": {
  1883. "type": "string"
  1884. },
  1885. "business_license_img_url": {
  1886. "type": "string"
  1887. },
  1888. "certificate_first_type": {
  1889. "type": "string"
  1890. },
  1891. "certificate_type": {
  1892. "type": "string"
  1893. },
  1894. "certificate_validity": {
  1895. "type": "string"
  1896. },
  1897. "company_abbreviation": {
  1898. "type": "string"
  1899. },
  1900. "company_name": {
  1901. "type": "string"
  1902. },
  1903. "country_region": {
  1904. "type": "string"
  1905. },
  1906. "country_region_id": {
  1907. "type": "string"
  1908. },
  1909. "id": {
  1910. "type": "string"
  1911. },
  1912. "kind": {
  1913. "type": "string"
  1914. },
  1915. "legal_representative": {
  1916. "type": "string"
  1917. },
  1918. "medium_id": {
  1919. "type": "string"
  1920. },
  1921. "memo": {
  1922. "type": "string"
  1923. },
  1924. "registered_address": {
  1925. "type": "string"
  1926. },
  1927. "registered_address_city_id": {
  1928. "type": "string"
  1929. },
  1930. "registered_address_country_id": {
  1931. "type": "string"
  1932. },
  1933. "registered_address_county_id": {
  1934. "type": "string"
  1935. },
  1936. "registered_address_province_id": {
  1937. "type": "string"
  1938. },
  1939. "state": {
  1940. "type": "string"
  1941. },
  1942. "unified_social_credit_code": {
  1943. "type": "string"
  1944. },
  1945. "uuid": {
  1946. "type": "string"
  1947. }
  1948. }
  1949. },
  1950. "md.Response": {
  1951. "type": "object",
  1952. "properties": {
  1953. "code": {
  1954. "type": "string",
  1955. "example": "响应码"
  1956. },
  1957. "data": {
  1958. "description": "内容"
  1959. },
  1960. "msg": {
  1961. "type": "string",
  1962. "example": "具体错误原因"
  1963. }
  1964. }
  1965. },
  1966. "md.RoleBindPermissionGroupReq": {
  1967. "type": "object",
  1968. "required": [
  1969. "role_id"
  1970. ],
  1971. "properties": {
  1972. "permission_ids": {
  1973. "type": "array",
  1974. "items": {
  1975. "type": "integer"
  1976. }
  1977. },
  1978. "role_id": {
  1979. "type": "integer"
  1980. }
  1981. }
  1982. },
  1983. "md.SelectData": {
  1984. "type": "object",
  1985. "properties": {
  1986. "name": {
  1987. "type": "string",
  1988. "example": "名称"
  1989. },
  1990. "value": {
  1991. "type": "string",
  1992. "example": "值"
  1993. }
  1994. }
  1995. },
  1996. "md.SmsReq": {
  1997. "type": "object",
  1998. "properties": {
  1999. "phone": {
  2000. "type": "string"
  2001. },
  2002. "type": {
  2003. "type": "string",
  2004. "example": "手机号登陆:fast_login 注册:register 修改密码(不用传手机号):update_password"
  2005. }
  2006. }
  2007. },
  2008. "md.UpdateAdminReq": {
  2009. "type": "object",
  2010. "required": [
  2011. "id",
  2012. "password",
  2013. "username"
  2014. ],
  2015. "properties": {
  2016. "id": {
  2017. "type": "integer"
  2018. },
  2019. "memo": {
  2020. "type": "string"
  2021. },
  2022. "password": {
  2023. "type": "string"
  2024. },
  2025. "username": {
  2026. "type": "string"
  2027. }
  2028. }
  2029. },
  2030. "md.UpdateAdminStateReq": {
  2031. "type": "object",
  2032. "required": [
  2033. "id",
  2034. "state"
  2035. ],
  2036. "properties": {
  2037. "id": {
  2038. "type": "integer"
  2039. },
  2040. "state": {
  2041. "type": "integer"
  2042. }
  2043. }
  2044. },
  2045. "md.UpdateRoleReq": {
  2046. "type": "object",
  2047. "required": [
  2048. "memo",
  2049. "name",
  2050. "role_id"
  2051. ],
  2052. "properties": {
  2053. "memo": {
  2054. "type": "string"
  2055. },
  2056. "name": {
  2057. "type": "string"
  2058. },
  2059. "role_id": {
  2060. "type": "integer"
  2061. }
  2062. }
  2063. },
  2064. "md.UpdateRoleStateReq": {
  2065. "type": "object",
  2066. "required": [
  2067. "role_id",
  2068. "state"
  2069. ],
  2070. "properties": {
  2071. "role_id": {
  2072. "type": "integer"
  2073. },
  2074. "state": {
  2075. "type": "integer"
  2076. }
  2077. }
  2078. }
  2079. },
  2080. "securityDefinitions": {
  2081. "MasterID": {
  2082. "type": "apiKey",
  2083. "name": "MasterID",
  2084. "in": "header"
  2085. }
  2086. }
  2087. }`
  2088. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2089. var SwaggerInfo = &swag.Spec{
  2090. Version: "1.0",
  2091. Host: "localhost:1004 or xxxxx.medium.dengbiao.top",
  2092. BasePath: "",
  2093. Schemes: []string{},
  2094. Title: "广告联盟-媒体平台",
  2095. Description: "媒体后台接口",
  2096. InfoInstanceName: "swagger",
  2097. SwaggerTemplate: docTemplate,
  2098. }
  2099. func init() {
  2100. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  2101. }