广告平台(总站长使用)
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.
 
 
 
 
 
 

1134 lines
36 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/agentQualification/enterprise": {
  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.AgentQualificationEnterpriseReq"
  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/agentQualification/enterprise/audit": {
  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.AgentQualificationEnterpriseAuditReq"
  100. }
  101. }
  102. ],
  103. "responses": {
  104. "200": {
  105. "description": "具体看返回内容",
  106. "schema": {
  107. "type": "string"
  108. }
  109. },
  110. "400": {
  111. "description": "具体错误",
  112. "schema": {
  113. "$ref": "#/definitions/md.Response"
  114. }
  115. }
  116. }
  117. }
  118. },
  119. "/api/login": {
  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. "description": "用户名密码",
  135. "name": "req",
  136. "in": "body",
  137. "required": true,
  138. "schema": {
  139. "$ref": "#/definitions/md.LoginReq"
  140. }
  141. }
  142. ],
  143. "responses": {
  144. "200": {
  145. "description": "token",
  146. "schema": {
  147. "$ref": "#/definitions/md.LoginResponse"
  148. }
  149. },
  150. "400": {
  151. "description": "具体错误",
  152. "schema": {
  153. "$ref": "#/definitions/md.Response"
  154. }
  155. }
  156. }
  157. }
  158. },
  159. "/api/mediumQualification/enterprise": {
  160. "post": {
  161. "description": "渠道资质-主体资质",
  162. "consumes": [
  163. "application/json"
  164. ],
  165. "produces": [
  166. "application/json"
  167. ],
  168. "tags": [
  169. "渠道资质"
  170. ],
  171. "summary": "主体资质",
  172. "parameters": [
  173. {
  174. "type": "string",
  175. "description": "验证参数Bearer和token空格拼接",
  176. "name": "Authorization",
  177. "in": "header",
  178. "required": true
  179. },
  180. {
  181. "description": "请求参数",
  182. "name": "args",
  183. "in": "body",
  184. "required": true,
  185. "schema": {
  186. "$ref": "#/definitions/md.MediumQualificationEnterpriseReq"
  187. }
  188. }
  189. ],
  190. "responses": {
  191. "200": {
  192. "description": "具体看返回内容",
  193. "schema": {
  194. "type": "string"
  195. }
  196. },
  197. "400": {
  198. "description": "具体错误",
  199. "schema": {
  200. "$ref": "#/definitions/md.Response"
  201. }
  202. }
  203. }
  204. }
  205. },
  206. "/api/mediumQualification/enterprise/audit": {
  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. "required": true
  226. },
  227. {
  228. "description": "请求参数",
  229. "name": "args",
  230. "in": "body",
  231. "required": true,
  232. "schema": {
  233. "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq"
  234. }
  235. }
  236. ],
  237. "responses": {
  238. "200": {
  239. "description": "具体看返回内容",
  240. "schema": {
  241. "type": "string"
  242. }
  243. },
  244. "400": {
  245. "description": "具体错误",
  246. "schema": {
  247. "$ref": "#/definitions/md.Response"
  248. }
  249. }
  250. }
  251. }
  252. },
  253. "/api/role/addAdmin": {
  254. "post": {
  255. "description": "权限管理-新增管理员",
  256. "consumes": [
  257. "application/json"
  258. ],
  259. "produces": [
  260. "application/json"
  261. ],
  262. "tags": [
  263. "权限管理"
  264. ],
  265. "summary": "新增管理员",
  266. "parameters": [
  267. {
  268. "type": "string",
  269. "description": "验证参数Bearer和token空格拼接",
  270. "name": "Authorization",
  271. "in": "header",
  272. "required": true
  273. },
  274. {
  275. "description": "请求参数",
  276. "name": "args",
  277. "in": "body",
  278. "required": true,
  279. "schema": {
  280. "$ref": "#/definitions/md.AddAdminReq"
  281. }
  282. }
  283. ],
  284. "responses": {
  285. "200": {
  286. "description": "success",
  287. "schema": {
  288. "type": "string"
  289. }
  290. },
  291. "400": {
  292. "description": "具体错误",
  293. "schema": {
  294. "$ref": "#/definitions/md.Response"
  295. }
  296. }
  297. }
  298. }
  299. },
  300. "/api/role/addRole": {
  301. "post": {
  302. "description": "权限管理-添加角色",
  303. "consumes": [
  304. "application/json"
  305. ],
  306. "produces": [
  307. "application/json"
  308. ],
  309. "tags": [
  310. "权限管理"
  311. ],
  312. "summary": "添加角色",
  313. "parameters": [
  314. {
  315. "type": "string",
  316. "description": "验证参数Bearer和token空格拼接",
  317. "name": "Authorization",
  318. "in": "header",
  319. "required": true
  320. },
  321. {
  322. "description": "请求参数",
  323. "name": "args",
  324. "in": "body",
  325. "required": true,
  326. "schema": {
  327. "$ref": "#/definitions/md.AddRoleReq"
  328. }
  329. }
  330. ],
  331. "responses": {
  332. "200": {
  333. "description": "success",
  334. "schema": {
  335. "type": "string"
  336. }
  337. },
  338. "400": {
  339. "description": "具体错误",
  340. "schema": {
  341. "$ref": "#/definitions/md.Response"
  342. }
  343. }
  344. }
  345. }
  346. },
  347. "/api/role/adminInfo": {
  348. "get": {
  349. "description": "权限管理-管理员信息",
  350. "consumes": [
  351. "application/json"
  352. ],
  353. "produces": [
  354. "application/json"
  355. ],
  356. "tags": [
  357. "权限管理"
  358. ],
  359. "summary": "管理员信息",
  360. "parameters": [
  361. {
  362. "type": "string",
  363. "description": "验证参数Bearer和token空格拼接",
  364. "name": "Authorization",
  365. "in": "header",
  366. "required": true
  367. },
  368. {
  369. "type": "string",
  370. "description": "管理员id",
  371. "name": "adm_id",
  372. "in": "query",
  373. "required": true
  374. }
  375. ],
  376. "responses": {
  377. "200": {
  378. "description": "具体看返回内容",
  379. "schema": {
  380. "type": "string"
  381. }
  382. },
  383. "400": {
  384. "description": "具体错误",
  385. "schema": {
  386. "$ref": "#/definitions/md.Response"
  387. }
  388. }
  389. }
  390. }
  391. },
  392. "/api/role/adminList": {
  393. "post": {
  394. "description": "权限管理-管理员列表",
  395. "consumes": [
  396. "application/json"
  397. ],
  398. "produces": [
  399. "application/json"
  400. ],
  401. "tags": [
  402. "权限管理"
  403. ],
  404. "summary": "管理员列表",
  405. "parameters": [
  406. {
  407. "type": "string",
  408. "description": "验证参数Bearer和token空格拼接",
  409. "name": "Authorization",
  410. "in": "header",
  411. "required": true
  412. },
  413. {
  414. "description": "请求参数",
  415. "name": "args",
  416. "in": "body",
  417. "required": true,
  418. "schema": {
  419. "$ref": "#/definitions/md.AdminListReq"
  420. }
  421. }
  422. ],
  423. "responses": {
  424. "200": {
  425. "description": "具体看返回内容",
  426. "schema": {
  427. "type": "string"
  428. }
  429. },
  430. "400": {
  431. "description": "具体错误",
  432. "schema": {
  433. "$ref": "#/definitions/md.Response"
  434. }
  435. }
  436. }
  437. }
  438. },
  439. "/api/role/bindAdminRole/": {
  440. "post": {
  441. "description": "权限管理-管理员绑定角色",
  442. "consumes": [
  443. "application/json"
  444. ],
  445. "produces": [
  446. "application/json"
  447. ],
  448. "tags": [
  449. "权限管理"
  450. ],
  451. "summary": "管理员绑定角色",
  452. "parameters": [
  453. {
  454. "type": "string",
  455. "description": "验证参数Bearer和token空格拼接",
  456. "name": "Authorization",
  457. "in": "header",
  458. "required": true
  459. },
  460. {
  461. "description": "请求参数",
  462. "name": "args",
  463. "in": "body",
  464. "required": true,
  465. "schema": {
  466. "$ref": "#/definitions/md.BindAdminRoleReq"
  467. }
  468. }
  469. ],
  470. "responses": {
  471. "200": {
  472. "description": "success",
  473. "schema": {
  474. "type": "string"
  475. }
  476. },
  477. "400": {
  478. "description": "具体错误",
  479. "schema": {
  480. "$ref": "#/definitions/md.Response"
  481. }
  482. }
  483. }
  484. }
  485. },
  486. "/api/role/deleteAdmin/{$adm_id}": {
  487. "delete": {
  488. "description": "权限管理-删除管理员",
  489. "consumes": [
  490. "application/json"
  491. ],
  492. "produces": [
  493. "application/json"
  494. ],
  495. "tags": [
  496. "权限管理"
  497. ],
  498. "summary": "删除管理员",
  499. "parameters": [
  500. {
  501. "type": "string",
  502. "description": "验证参数Bearer和token空格拼接",
  503. "name": "Authorization",
  504. "in": "header",
  505. "required": true
  506. }
  507. ],
  508. "responses": {
  509. "200": {
  510. "description": "success",
  511. "schema": {
  512. "type": "string"
  513. }
  514. },
  515. "400": {
  516. "description": "具体错误",
  517. "schema": {
  518. "$ref": "#/definitions/md.Response"
  519. }
  520. }
  521. }
  522. }
  523. },
  524. "/api/role/deleteRole/{$id}": {
  525. "delete": {
  526. "description": "权限管理-删除角色",
  527. "consumes": [
  528. "application/json"
  529. ],
  530. "produces": [
  531. "application/json"
  532. ],
  533. "tags": [
  534. "权限管理"
  535. ],
  536. "summary": "删除角色",
  537. "parameters": [
  538. {
  539. "type": "string",
  540. "description": "验证参数Bearer和token空格拼接",
  541. "name": "Authorization",
  542. "in": "header",
  543. "required": true
  544. },
  545. {
  546. "description": "请求参数",
  547. "name": "args",
  548. "in": "body",
  549. "required": true,
  550. "schema": {
  551. "$ref": "#/definitions/md.UpdateRoleStateReq"
  552. }
  553. }
  554. ],
  555. "responses": {
  556. "200": {
  557. "description": "success",
  558. "schema": {
  559. "type": "string"
  560. }
  561. },
  562. "400": {
  563. "description": "具体错误",
  564. "schema": {
  565. "$ref": "#/definitions/md.Response"
  566. }
  567. }
  568. }
  569. }
  570. },
  571. "/api/role/permissionGroupList": {
  572. "get": {
  573. "description": "权限管理-权限组列表",
  574. "consumes": [
  575. "application/json"
  576. ],
  577. "produces": [
  578. "application/json"
  579. ],
  580. "tags": [
  581. "权限管理"
  582. ],
  583. "summary": "权限组列表",
  584. "parameters": [
  585. {
  586. "type": "string",
  587. "description": "验证参数Bearer和token空格拼接",
  588. "name": "Authorization",
  589. "in": "header",
  590. "required": true
  591. },
  592. {
  593. "type": "string",
  594. "description": "管理员id",
  595. "name": "adm_id",
  596. "in": "query",
  597. "required": true
  598. }
  599. ],
  600. "responses": {
  601. "200": {
  602. "description": "具体看返回内容",
  603. "schema": {
  604. "type": "string"
  605. }
  606. },
  607. "400": {
  608. "description": "具体错误",
  609. "schema": {
  610. "$ref": "#/definitions/md.Response"
  611. }
  612. }
  613. }
  614. }
  615. },
  616. "/api/role/roleBindPermissionGroup": {
  617. "post": {
  618. "description": "权限管理-角色绑定权限组",
  619. "consumes": [
  620. "application/json"
  621. ],
  622. "produces": [
  623. "application/json"
  624. ],
  625. "tags": [
  626. "权限管理"
  627. ],
  628. "summary": "角色绑定权限组",
  629. "parameters": [
  630. {
  631. "type": "string",
  632. "description": "验证参数Bearer和token空格拼接",
  633. "name": "Authorization",
  634. "in": "header",
  635. "required": true
  636. },
  637. {
  638. "description": "请求参数",
  639. "name": "args",
  640. "in": "body",
  641. "required": true,
  642. "schema": {
  643. "$ref": "#/definitions/md.RoleBindPermissionGroupReq"
  644. }
  645. }
  646. ],
  647. "responses": {
  648. "200": {
  649. "description": "success",
  650. "schema": {
  651. "type": "string"
  652. }
  653. },
  654. "400": {
  655. "description": "具体错误",
  656. "schema": {
  657. "$ref": "#/definitions/md.Response"
  658. }
  659. }
  660. }
  661. }
  662. },
  663. "/api/role/roleList": {
  664. "get": {
  665. "description": "权限管理-角色列表",
  666. "consumes": [
  667. "application/json"
  668. ],
  669. "produces": [
  670. "application/json"
  671. ],
  672. "tags": [
  673. "权限管理"
  674. ],
  675. "summary": "角色列表",
  676. "parameters": [
  677. {
  678. "type": "string",
  679. "description": "验证参数Bearer和token空格拼接",
  680. "name": "Authorization",
  681. "in": "header",
  682. "required": true
  683. }
  684. ],
  685. "responses": {
  686. "200": {
  687. "description": "具体看返回内容",
  688. "schema": {
  689. "type": "string"
  690. }
  691. },
  692. "400": {
  693. "description": "具体错误",
  694. "schema": {
  695. "$ref": "#/definitions/md.Response"
  696. }
  697. }
  698. }
  699. }
  700. },
  701. "/api/role/updateAdmin": {
  702. "post": {
  703. "description": "权限管理-修改管理员信息",
  704. "consumes": [
  705. "application/json"
  706. ],
  707. "produces": [
  708. "application/json"
  709. ],
  710. "tags": [
  711. "权限管理"
  712. ],
  713. "summary": "修改管理员信息",
  714. "parameters": [
  715. {
  716. "type": "string",
  717. "description": "验证参数Bearer和token空格拼接",
  718. "name": "Authorization",
  719. "in": "header",
  720. "required": true
  721. },
  722. {
  723. "description": "请求参数",
  724. "name": "args",
  725. "in": "body",
  726. "required": true,
  727. "schema": {
  728. "$ref": "#/definitions/md.UpdateAdminReq"
  729. }
  730. }
  731. ],
  732. "responses": {
  733. "200": {
  734. "description": "success",
  735. "schema": {
  736. "type": "string"
  737. }
  738. },
  739. "400": {
  740. "description": "具体错误",
  741. "schema": {
  742. "$ref": "#/definitions/md.Response"
  743. }
  744. }
  745. }
  746. }
  747. },
  748. "/api/role/updateAdminState": {
  749. "post": {
  750. "description": "权限管理-修改管理员状态",
  751. "consumes": [
  752. "application/json"
  753. ],
  754. "produces": [
  755. "application/json"
  756. ],
  757. "tags": [
  758. "权限管理"
  759. ],
  760. "summary": "修改管理员状态",
  761. "parameters": [
  762. {
  763. "type": "string",
  764. "description": "验证参数Bearer和token空格拼接",
  765. "name": "Authorization",
  766. "in": "header",
  767. "required": true
  768. },
  769. {
  770. "description": "请求参数",
  771. "name": "args",
  772. "in": "body",
  773. "required": true,
  774. "schema": {
  775. "$ref": "#/definitions/md.UpdateAdminStateReq"
  776. }
  777. }
  778. ],
  779. "responses": {
  780. "200": {
  781. "description": "success",
  782. "schema": {
  783. "type": "string"
  784. }
  785. },
  786. "400": {
  787. "description": "具体错误",
  788. "schema": {
  789. "$ref": "#/definitions/md.Response"
  790. }
  791. }
  792. }
  793. }
  794. },
  795. "/api/role/updateRole": {
  796. "post": {
  797. "description": "权限管理-修改角色状态",
  798. "consumes": [
  799. "application/json"
  800. ],
  801. "produces": [
  802. "application/json"
  803. ],
  804. "tags": [
  805. "权限管理"
  806. ],
  807. "summary": "修改角色状态",
  808. "parameters": [
  809. {
  810. "type": "string",
  811. "description": "验证参数Bearer和token空格拼接",
  812. "name": "Authorization",
  813. "in": "header",
  814. "required": true
  815. },
  816. {
  817. "description": "请求参数",
  818. "name": "args",
  819. "in": "body",
  820. "required": true,
  821. "schema": {
  822. "$ref": "#/definitions/md.UpdateRoleStateReq"
  823. }
  824. }
  825. ],
  826. "responses": {
  827. "200": {
  828. "description": "success",
  829. "schema": {
  830. "type": "string"
  831. }
  832. },
  833. "400": {
  834. "description": "具体错误",
  835. "schema": {
  836. "$ref": "#/definitions/md.Response"
  837. }
  838. }
  839. }
  840. }
  841. }
  842. },
  843. "definitions": {
  844. "md.AddAdminReq": {
  845. "type": "object",
  846. "required": [
  847. "password",
  848. "username"
  849. ],
  850. "properties": {
  851. "memo": {
  852. "type": "string"
  853. },
  854. "password": {
  855. "type": "string"
  856. },
  857. "username": {
  858. "type": "string"
  859. }
  860. }
  861. },
  862. "md.AddRoleReq": {
  863. "type": "object",
  864. "required": [
  865. "memo",
  866. "name"
  867. ],
  868. "properties": {
  869. "memo": {
  870. "type": "string"
  871. },
  872. "name": {
  873. "type": "string"
  874. }
  875. }
  876. },
  877. "md.AdminListReq": {
  878. "type": "object",
  879. "properties": {
  880. "limit": {
  881. "type": "integer"
  882. },
  883. "page": {
  884. "type": "integer"
  885. },
  886. "state": {
  887. "type": "integer"
  888. },
  889. "username": {
  890. "type": "string"
  891. }
  892. }
  893. },
  894. "md.AgentQualificationEnterpriseAuditReq": {
  895. "type": "object",
  896. "properties": {
  897. "agent_id": {
  898. "type": "integer"
  899. },
  900. "memo": {
  901. "type": "string"
  902. },
  903. "state": {
  904. "type": "string"
  905. }
  906. }
  907. },
  908. "md.AgentQualificationEnterpriseReq": {
  909. "type": "object",
  910. "properties": {
  911. "limit": {
  912. "type": "integer"
  913. },
  914. "name": {
  915. "type": "string"
  916. },
  917. "page": {
  918. "type": "integer"
  919. },
  920. "state": {
  921. "type": "string"
  922. }
  923. }
  924. },
  925. "md.BindAdminRoleReq": {
  926. "type": "object",
  927. "required": [
  928. "adm_id"
  929. ],
  930. "properties": {
  931. "adm_id": {
  932. "type": "integer"
  933. },
  934. "role_ids": {
  935. "type": "array",
  936. "items": {
  937. "type": "integer"
  938. }
  939. }
  940. }
  941. },
  942. "md.LoginReq": {
  943. "type": "object",
  944. "required": [
  945. "password",
  946. "username"
  947. ],
  948. "properties": {
  949. "code": {
  950. "type": "string",
  951. "example": "验证码"
  952. },
  953. "password": {
  954. "type": "string",
  955. "example": "登录密码"
  956. },
  957. "username": {
  958. "type": "string",
  959. "example": "登录账号"
  960. }
  961. }
  962. },
  963. "md.LoginResponse": {
  964. "type": "object",
  965. "properties": {
  966. "token": {
  967. "type": "string"
  968. }
  969. }
  970. },
  971. "md.MediumQualificationEnterpriseAuditReq": {
  972. "type": "object",
  973. "properties": {
  974. "medium_id": {
  975. "type": "integer"
  976. },
  977. "memo": {
  978. "type": "string"
  979. },
  980. "state": {
  981. "type": "string"
  982. }
  983. }
  984. },
  985. "md.MediumQualificationEnterpriseReq": {
  986. "type": "object",
  987. "properties": {
  988. "limit": {
  989. "type": "integer"
  990. },
  991. "name": {
  992. "type": "string"
  993. },
  994. "page": {
  995. "type": "integer"
  996. },
  997. "state": {
  998. "type": "string"
  999. }
  1000. }
  1001. },
  1002. "md.Response": {
  1003. "type": "object",
  1004. "properties": {
  1005. "code": {
  1006. "type": "string",
  1007. "example": "响应码"
  1008. },
  1009. "data": {
  1010. "description": "内容"
  1011. },
  1012. "msg": {
  1013. "type": "string",
  1014. "example": "具体错误原因"
  1015. }
  1016. }
  1017. },
  1018. "md.RoleBindPermissionGroupReq": {
  1019. "type": "object",
  1020. "required": [
  1021. "role_id"
  1022. ],
  1023. "properties": {
  1024. "permission_ids": {
  1025. "type": "array",
  1026. "items": {
  1027. "type": "integer"
  1028. }
  1029. },
  1030. "role_id": {
  1031. "type": "integer"
  1032. }
  1033. }
  1034. },
  1035. "md.UpdateAdminReq": {
  1036. "type": "object",
  1037. "required": [
  1038. "adm_id",
  1039. "password",
  1040. "username"
  1041. ],
  1042. "properties": {
  1043. "adm_id": {
  1044. "type": "integer"
  1045. },
  1046. "memo": {
  1047. "type": "string"
  1048. },
  1049. "password": {
  1050. "type": "string"
  1051. },
  1052. "username": {
  1053. "type": "string"
  1054. }
  1055. }
  1056. },
  1057. "md.UpdateAdminStateReq": {
  1058. "type": "object",
  1059. "required": [
  1060. "adm_id",
  1061. "state"
  1062. ],
  1063. "properties": {
  1064. "adm_id": {
  1065. "type": "integer"
  1066. },
  1067. "state": {
  1068. "type": "integer"
  1069. }
  1070. }
  1071. },
  1072. "md.UpdateRoleReq": {
  1073. "type": "object",
  1074. "required": [
  1075. "memo",
  1076. "name",
  1077. "role_id"
  1078. ],
  1079. "properties": {
  1080. "memo": {
  1081. "type": "string"
  1082. },
  1083. "name": {
  1084. "type": "string"
  1085. },
  1086. "role_id": {
  1087. "type": "integer"
  1088. }
  1089. }
  1090. },
  1091. "md.UpdateRoleStateReq": {
  1092. "type": "object",
  1093. "required": [
  1094. "role_id",
  1095. "state"
  1096. ],
  1097. "properties": {
  1098. "role_id": {
  1099. "type": "integer"
  1100. },
  1101. "state": {
  1102. "type": "integer"
  1103. }
  1104. }
  1105. }
  1106. },
  1107. "securityDefinitions": {
  1108. "MasterID": {
  1109. "type": "apiKey",
  1110. "name": "MasterID",
  1111. "in": "header"
  1112. }
  1113. }
  1114. }`
  1115. // SwaggerInfo holds exported Swagger Info so clients can modify it
  1116. var SwaggerInfo = &swag.Spec{
  1117. Version: "1.0",
  1118. Host: "localhost:1001 or advertisement.dengbiao.top",
  1119. BasePath: "",
  1120. Schemes: []string{},
  1121. Title: "广告联盟-总站长平台",
  1122. Description: "总站长后台接口",
  1123. InfoInstanceName: "swagger",
  1124. SwaggerTemplate: docTemplate,
  1125. }
  1126. func init() {
  1127. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  1128. }