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

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