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

2800 line
92 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. "/api/setCenter/applet/add": {
  1266. "post": {
  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. "description": "请求参数",
  1288. "name": "args",
  1289. "in": "body",
  1290. "required": true,
  1291. "schema": {
  1292. "$ref": "#/definitions/md.AppletAddReq"
  1293. }
  1294. }
  1295. ],
  1296. "responses": {
  1297. "200": {
  1298. "description": "success",
  1299. "schema": {
  1300. "type": "string"
  1301. }
  1302. },
  1303. "400": {
  1304. "description": "具体错误",
  1305. "schema": {
  1306. "$ref": "#/definitions/md.Response"
  1307. }
  1308. }
  1309. }
  1310. }
  1311. },
  1312. "/api/setCenter/applet/authorize": {
  1313. "get": {
  1314. "description": "设置中心-基础设置",
  1315. "consumes": [
  1316. "application/json"
  1317. ],
  1318. "produces": [
  1319. "application/json"
  1320. ],
  1321. "tags": [
  1322. "设置中心"
  1323. ],
  1324. "summary": "设置中心-基础设置-微信三方应用获取",
  1325. "parameters": [
  1326. {
  1327. "type": "string",
  1328. "description": "验证参数Bearer和token空格拼接",
  1329. "name": "Authorization",
  1330. "in": "header",
  1331. "required": true
  1332. }
  1333. ],
  1334. "responses": {
  1335. "200": {
  1336. "description": "微信授权界面url",
  1337. "schema": {
  1338. "type": "string"
  1339. }
  1340. },
  1341. "400": {
  1342. "description": "具体错误",
  1343. "schema": {
  1344. "$ref": "#/definitions/md.Response"
  1345. }
  1346. }
  1347. }
  1348. }
  1349. },
  1350. "/api/setCenter/applet/list": {
  1351. "get": {
  1352. "description": "小程序设置-列表",
  1353. "consumes": [
  1354. "application/json"
  1355. ],
  1356. "produces": [
  1357. "application/json"
  1358. ],
  1359. "tags": [
  1360. "设置中心-小程序设置"
  1361. ],
  1362. "summary": "列表",
  1363. "parameters": [
  1364. {
  1365. "type": "string",
  1366. "description": "验证参数Bearer和token空格拼接",
  1367. "name": "Authorization",
  1368. "in": "header",
  1369. "required": true
  1370. }
  1371. ],
  1372. "responses": {
  1373. "200": {
  1374. "description": "OK",
  1375. "schema": {
  1376. "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList"
  1377. }
  1378. },
  1379. "400": {
  1380. "description": "具体错误",
  1381. "schema": {
  1382. "$ref": "#/definitions/md.Response"
  1383. }
  1384. }
  1385. }
  1386. }
  1387. },
  1388. "/api/setCenter/applet/unauthorized": {
  1389. "get": {
  1390. "description": "设置中心-基础设置",
  1391. "consumes": [
  1392. "application/json"
  1393. ],
  1394. "produces": [
  1395. "application/json"
  1396. ],
  1397. "tags": [
  1398. "设置中心"
  1399. ],
  1400. "summary": "设置中心-基础设置-微信三方应用获取",
  1401. "parameters": [
  1402. {
  1403. "type": "string",
  1404. "description": "验证参数Bearer和token空格拼接",
  1405. "name": "Authorization",
  1406. "in": "header",
  1407. "required": true
  1408. }
  1409. ],
  1410. "responses": {
  1411. "200": {
  1412. "description": "success",
  1413. "schema": {
  1414. "type": "string"
  1415. }
  1416. },
  1417. "400": {
  1418. "description": "具体错误",
  1419. "schema": {
  1420. "$ref": "#/definitions/md.Response"
  1421. }
  1422. }
  1423. }
  1424. }
  1425. },
  1426. "/api/setCenter/applet/update": {
  1427. "post": {
  1428. "description": "小程序设置-更新",
  1429. "consumes": [
  1430. "application/json"
  1431. ],
  1432. "produces": [
  1433. "application/json"
  1434. ],
  1435. "tags": [
  1436. "设置中心-小程序设置"
  1437. ],
  1438. "summary": "更新",
  1439. "parameters": [
  1440. {
  1441. "type": "string",
  1442. "description": "验证参数Bearer和token空格拼接",
  1443. "name": "Authorization",
  1444. "in": "header",
  1445. "required": true
  1446. },
  1447. {
  1448. "description": "请求参数",
  1449. "name": "args",
  1450. "in": "body",
  1451. "required": true,
  1452. "schema": {
  1453. "$ref": "#/definitions/md.AppletUpdateReq"
  1454. }
  1455. }
  1456. ],
  1457. "responses": {
  1458. "200": {
  1459. "description": "success",
  1460. "schema": {
  1461. "type": "string"
  1462. }
  1463. },
  1464. "400": {
  1465. "description": "具体错误",
  1466. "schema": {
  1467. "$ref": "#/definitions/md.Response"
  1468. }
  1469. }
  1470. }
  1471. }
  1472. },
  1473. "/api/setCenter/basic/getOss": {
  1474. "get": {
  1475. "description": "基础设置-oss获取",
  1476. "consumes": [
  1477. "application/json"
  1478. ],
  1479. "produces": [
  1480. "application/json"
  1481. ],
  1482. "tags": [
  1483. "设置中心-基础设置"
  1484. ],
  1485. "summary": "oss获取",
  1486. "parameters": [
  1487. {
  1488. "type": "string",
  1489. "description": "验证参数Bearer和token空格拼接",
  1490. "name": "Authorization",
  1491. "in": "header",
  1492. "required": true
  1493. }
  1494. ],
  1495. "responses": {
  1496. "200": {
  1497. "description": "OK",
  1498. "schema": {
  1499. "$ref": "#/definitions/md.SetOssResp"
  1500. }
  1501. },
  1502. "400": {
  1503. "description": "具体错误",
  1504. "schema": {
  1505. "$ref": "#/definitions/md.Response"
  1506. }
  1507. }
  1508. }
  1509. }
  1510. },
  1511. "/api/setCenter/basic/setOss": {
  1512. "post": {
  1513. "description": "基础设置-oss设置",
  1514. "consumes": [
  1515. "application/json"
  1516. ],
  1517. "produces": [
  1518. "application/json"
  1519. ],
  1520. "tags": [
  1521. "设置中心-基础设置"
  1522. ],
  1523. "summary": "oss设置",
  1524. "parameters": [
  1525. {
  1526. "type": "string",
  1527. "description": "验证参数Bearer和token空格拼接",
  1528. "name": "Authorization",
  1529. "in": "header",
  1530. "required": true
  1531. },
  1532. {
  1533. "description": "请求参数",
  1534. "name": "args",
  1535. "in": "body",
  1536. "required": true,
  1537. "schema": {
  1538. "$ref": "#/definitions/md.SetOssReq"
  1539. }
  1540. }
  1541. ],
  1542. "responses": {
  1543. "200": {
  1544. "description": "success",
  1545. "schema": {
  1546. "type": "string"
  1547. }
  1548. },
  1549. "400": {
  1550. "description": "具体错误",
  1551. "schema": {
  1552. "$ref": "#/definitions/md.Response"
  1553. }
  1554. }
  1555. }
  1556. }
  1557. },
  1558. "/api/setCenter/basic/wxOpenGet": {
  1559. "get": {
  1560. "description": "基础设置-微信三方应用获取",
  1561. "consumes": [
  1562. "application/json"
  1563. ],
  1564. "produces": [
  1565. "application/json"
  1566. ],
  1567. "tags": [
  1568. "设置中心-基础设置"
  1569. ],
  1570. "summary": "微信三方应用获取",
  1571. "parameters": [
  1572. {
  1573. "type": "string",
  1574. "description": "验证参数Bearer和token空格拼接",
  1575. "name": "Authorization",
  1576. "in": "header",
  1577. "required": true
  1578. }
  1579. ],
  1580. "responses": {
  1581. "200": {
  1582. "description": "OK",
  1583. "schema": {
  1584. "$ref": "#/definitions/md.WxOpenGetResp"
  1585. }
  1586. },
  1587. "400": {
  1588. "description": "具体错误",
  1589. "schema": {
  1590. "$ref": "#/definitions/md.Response"
  1591. }
  1592. }
  1593. }
  1594. }
  1595. },
  1596. "/api/setCenter/basic/wxOpenSet": {
  1597. "post": {
  1598. "description": "基础设置-微信三方应用设置",
  1599. "consumes": [
  1600. "application/json"
  1601. ],
  1602. "produces": [
  1603. "application/json"
  1604. ],
  1605. "tags": [
  1606. "设置中心-基础设置"
  1607. ],
  1608. "summary": "微信三方应用设置",
  1609. "parameters": [
  1610. {
  1611. "type": "string",
  1612. "description": "验证参数Bearer和token空格拼接",
  1613. "name": "Authorization",
  1614. "in": "header",
  1615. "required": true
  1616. },
  1617. {
  1618. "description": "请求参数",
  1619. "name": "args",
  1620. "in": "body",
  1621. "required": true,
  1622. "schema": {
  1623. "$ref": "#/definitions/md.WxOpenSetReq"
  1624. }
  1625. }
  1626. ],
  1627. "responses": {
  1628. "200": {
  1629. "description": "success",
  1630. "schema": {
  1631. "type": "string"
  1632. }
  1633. },
  1634. "400": {
  1635. "description": "具体错误",
  1636. "schema": {
  1637. "$ref": "#/definitions/md.Response"
  1638. }
  1639. }
  1640. }
  1641. }
  1642. },
  1643. "/api/setCenter/share/index": {
  1644. "get": {
  1645. "description": "邀请链接界面接口",
  1646. "consumes": [
  1647. "application/json"
  1648. ],
  1649. "produces": [
  1650. "application/json"
  1651. ],
  1652. "tags": [
  1653. "设置中心-邀请链接"
  1654. ],
  1655. "summary": "邀请链接",
  1656. "parameters": [
  1657. {
  1658. "type": "string",
  1659. "description": "验证参数Bearer和token空格拼接",
  1660. "name": "Authorization",
  1661. "in": "header",
  1662. "required": true
  1663. }
  1664. ],
  1665. "responses": {
  1666. "200": {
  1667. "description": "OK",
  1668. "schema": {
  1669. "$ref": "#/definitions/md.ShareIndexResp"
  1670. }
  1671. },
  1672. "400": {
  1673. "description": "具体错误",
  1674. "schema": {
  1675. "$ref": "#/definitions/md.Response"
  1676. }
  1677. }
  1678. }
  1679. }
  1680. },
  1681. "/role/permissionGroupList": {
  1682. "get": {
  1683. "description": "权限管理-权限组列表",
  1684. "consumes": [
  1685. "application/json"
  1686. ],
  1687. "produces": [
  1688. "application/json"
  1689. ],
  1690. "tags": [
  1691. "权限管理"
  1692. ],
  1693. "summary": "权限组列表",
  1694. "parameters": [
  1695. {
  1696. "type": "string",
  1697. "description": "验证参数Bearer和token空格拼接",
  1698. "name": "Authorization",
  1699. "in": "header",
  1700. "required": true
  1701. },
  1702. {
  1703. "type": "string",
  1704. "description": "管理员id",
  1705. "name": "adm_id",
  1706. "in": "query",
  1707. "required": true
  1708. }
  1709. ],
  1710. "responses": {
  1711. "200": {
  1712. "description": "具体看返回内容",
  1713. "schema": {
  1714. "type": "string"
  1715. }
  1716. },
  1717. "400": {
  1718. "description": "具体错误",
  1719. "schema": {
  1720. "$ref": "#/definitions/md.Response"
  1721. }
  1722. }
  1723. }
  1724. }
  1725. },
  1726. "/v1/banner/delete/{$id}": {
  1727. "delete": {
  1728. "description": "小程序设置-删除",
  1729. "consumes": [
  1730. "application/json"
  1731. ],
  1732. "produces": [
  1733. "application/json"
  1734. ],
  1735. "tags": [
  1736. "设置中心-小程序设置"
  1737. ],
  1738. "summary": "删除",
  1739. "parameters": [
  1740. {
  1741. "type": "string",
  1742. "description": "验证参数Bearer和token空格拼接",
  1743. "name": "Authorization",
  1744. "in": "header",
  1745. "required": true
  1746. }
  1747. ],
  1748. "responses": {
  1749. "200": {
  1750. "description": "success",
  1751. "schema": {
  1752. "type": "string"
  1753. }
  1754. },
  1755. "400": {
  1756. "description": "具体错误",
  1757. "schema": {
  1758. "$ref": "#/definitions/md.Response"
  1759. }
  1760. }
  1761. }
  1762. }
  1763. }
  1764. },
  1765. "definitions": {
  1766. "hdl.WxOpenThirdPartyAppList": {
  1767. "type": "object",
  1768. "properties": {
  1769. "aes_key": {
  1770. "type": "string"
  1771. },
  1772. "app_secret": {
  1773. "type": "string"
  1774. },
  1775. "appid": {
  1776. "type": "string"
  1777. },
  1778. "component_access_token": {
  1779. "type": "string"
  1780. },
  1781. "component_verify_ticket": {
  1782. "type": "string"
  1783. },
  1784. "create_at": {
  1785. "type": "string"
  1786. },
  1787. "id": {
  1788. "type": "integer"
  1789. },
  1790. "token": {
  1791. "type": "string"
  1792. },
  1793. "update_at": {
  1794. "type": "string"
  1795. },
  1796. "uuid": {
  1797. "type": "integer"
  1798. }
  1799. }
  1800. },
  1801. "md.AddAdminReq": {
  1802. "type": "object",
  1803. "required": [
  1804. "password",
  1805. "username"
  1806. ],
  1807. "properties": {
  1808. "memo": {
  1809. "type": "string"
  1810. },
  1811. "password": {
  1812. "type": "string"
  1813. },
  1814. "username": {
  1815. "type": "string"
  1816. }
  1817. }
  1818. },
  1819. "md.AddRoleReq": {
  1820. "type": "object",
  1821. "required": [
  1822. "memo",
  1823. "name"
  1824. ],
  1825. "properties": {
  1826. "memo": {
  1827. "type": "string"
  1828. },
  1829. "name": {
  1830. "type": "string"
  1831. }
  1832. }
  1833. },
  1834. "md.AdminListReq": {
  1835. "type": "object",
  1836. "properties": {
  1837. "limit": {
  1838. "type": "integer"
  1839. },
  1840. "page": {
  1841. "type": "integer"
  1842. },
  1843. "state": {
  1844. "type": "integer"
  1845. },
  1846. "username": {
  1847. "type": "string"
  1848. }
  1849. }
  1850. },
  1851. "md.AgentQualificationBankData": {
  1852. "type": "object",
  1853. "properties": {
  1854. "agent_id": {
  1855. "type": "string",
  1856. "example": "代理id"
  1857. },
  1858. "bank": {
  1859. "type": "string",
  1860. "example": "开户银行"
  1861. },
  1862. "bank_branch": {
  1863. "type": "string",
  1864. "example": "开户银行分行"
  1865. },
  1866. "bank_no": {
  1867. "type": "string",
  1868. "example": "银行卡号"
  1869. },
  1870. "company_name": {
  1871. "type": "string",
  1872. "example": "公司名称"
  1873. },
  1874. "currency_conf": {
  1875. "type": "string",
  1876. "example": "结算币种 0人民币"
  1877. },
  1878. "id": {
  1879. "type": "string",
  1880. "example": "id"
  1881. },
  1882. "kind": {
  1883. "type": "string",
  1884. "example": "类型(1:企业 2:个人)"
  1885. },
  1886. "licence": {
  1887. "type": "string",
  1888. "example": "开户许可证"
  1889. },
  1890. "memo": {
  1891. "type": "string",
  1892. "example": "备注 审核时填写的"
  1893. },
  1894. "state": {
  1895. "type": "string",
  1896. "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)"
  1897. },
  1898. "unified_social_credit_code": {
  1899. "type": "string",
  1900. "example": "统一社会信用代码"
  1901. }
  1902. }
  1903. },
  1904. "md.AgentQualificationBankRes": {
  1905. "type": "object",
  1906. "properties": {
  1907. "currency_conf": {
  1908. "type": "array",
  1909. "items": {
  1910. "$ref": "#/definitions/md.SelectData"
  1911. }
  1912. },
  1913. "list": {
  1914. "type": "array",
  1915. "items": {
  1916. "$ref": "#/definitions/md.AgentQualificationBankData"
  1917. }
  1918. },
  1919. "state": {
  1920. "type": "array",
  1921. "items": {
  1922. "$ref": "#/definitions/md.SelectData"
  1923. }
  1924. },
  1925. "total": {
  1926. "type": "integer"
  1927. },
  1928. "type": {
  1929. "type": "array",
  1930. "items": {
  1931. "$ref": "#/definitions/md.SelectData"
  1932. }
  1933. }
  1934. }
  1935. },
  1936. "md.AgentQualificationContactData": {
  1937. "type": "object",
  1938. "properties": {
  1939. "address": {
  1940. "type": "string",
  1941. "example": "联系地址"
  1942. },
  1943. "agent_id": {
  1944. "type": "string",
  1945. "example": "代理id"
  1946. },
  1947. "company_name": {
  1948. "type": "string",
  1949. "example": "公司名称"
  1950. },
  1951. "email": {
  1952. "type": "string",
  1953. "example": "邮箱地址"
  1954. },
  1955. "id": {
  1956. "type": "string",
  1957. "example": "id"
  1958. },
  1959. "kind": {
  1960. "type": "string",
  1961. "example": "类型(1:企业 2:个人)"
  1962. },
  1963. "memo": {
  1964. "type": "string",
  1965. "example": "备注 审核时填写的"
  1966. },
  1967. "name": {
  1968. "type": "string",
  1969. "example": "联系人"
  1970. },
  1971. "phone": {
  1972. "type": "string",
  1973. "example": "联系电话"
  1974. },
  1975. "state": {
  1976. "type": "string",
  1977. "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)"
  1978. }
  1979. }
  1980. },
  1981. "md.AgentQualificationContactRes": {
  1982. "type": "object",
  1983. "properties": {
  1984. "list": {
  1985. "type": "array",
  1986. "items": {
  1987. "$ref": "#/definitions/md.AgentQualificationContactData"
  1988. }
  1989. },
  1990. "state": {
  1991. "type": "array",
  1992. "items": {
  1993. "$ref": "#/definitions/md.SelectData"
  1994. }
  1995. },
  1996. "total": {
  1997. "type": "integer"
  1998. }
  1999. }
  2000. },
  2001. "md.AgentQualificationEnterpriseAuditReq": {
  2002. "type": "object",
  2003. "properties": {
  2004. "agent_id": {
  2005. "type": "string"
  2006. },
  2007. "memo": {
  2008. "type": "string"
  2009. },
  2010. "state": {
  2011. "type": "string"
  2012. }
  2013. }
  2014. },
  2015. "md.AgentQualificationEnterpriseData": {
  2016. "type": "object",
  2017. "properties": {
  2018. "agent_id": {
  2019. "type": "string",
  2020. "example": "代理id"
  2021. },
  2022. "business_license_address": {
  2023. "type": "string",
  2024. "example": "营业执照地址"
  2025. },
  2026. "business_license_img_url": {
  2027. "type": "string",
  2028. "example": "营业执照照片"
  2029. },
  2030. "certificate_first_type": {
  2031. "type": "string",
  2032. "example": "证件类型 1级类目id"
  2033. },
  2034. "certificate_type": {
  2035. "type": "string",
  2036. "example": "证件类型 2级类目id"
  2037. },
  2038. "certificate_validity": {
  2039. "type": "string",
  2040. "example": "证件有效期"
  2041. },
  2042. "company_abbreviation": {
  2043. "type": "string",
  2044. "example": "公司简称"
  2045. },
  2046. "company_name": {
  2047. "type": "string",
  2048. "example": "公司名称"
  2049. },
  2050. "country_region": {
  2051. "type": "string",
  2052. "example": "国家地区"
  2053. },
  2054. "country_region_id": {
  2055. "type": "string",
  2056. "example": "国家地区id"
  2057. },
  2058. "id": {
  2059. "type": "string",
  2060. "example": "状态选择"
  2061. },
  2062. "kind": {
  2063. "type": "string",
  2064. "example": "类型(1:企业 2:个人)"
  2065. },
  2066. "legal_representative": {
  2067. "type": "string",
  2068. "example": "法定代表人"
  2069. },
  2070. "memo": {
  2071. "type": "string",
  2072. "example": "备注 审核时填写的"
  2073. },
  2074. "registered_address": {
  2075. "type": "string",
  2076. "example": "注册地址"
  2077. },
  2078. "registered_address_city_id": {
  2079. "type": "string",
  2080. "example": "注册地址-市id"
  2081. },
  2082. "registered_address_country_id": {
  2083. "type": "string",
  2084. "example": "注册地址-国家id"
  2085. },
  2086. "registered_address_county_id": {
  2087. "type": "string",
  2088. "example": "注册地址-县/区id"
  2089. },
  2090. "registered_address_province_id": {
  2091. "type": "string",
  2092. "example": "册地址-省份id"
  2093. },
  2094. "state": {
  2095. "type": "string",
  2096. "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)"
  2097. },
  2098. "unified_social_credit_code": {
  2099. "type": "string",
  2100. "example": "统一社会信用代码"
  2101. },
  2102. "uuid": {
  2103. "type": "string",
  2104. "example": "站长id"
  2105. }
  2106. }
  2107. },
  2108. "md.AgentQualificationEnterpriseReq": {
  2109. "type": "object",
  2110. "properties": {
  2111. "limit": {
  2112. "type": "string"
  2113. },
  2114. "name": {
  2115. "type": "string"
  2116. },
  2117. "page": {
  2118. "type": "string"
  2119. },
  2120. "state": {
  2121. "type": "string"
  2122. }
  2123. }
  2124. },
  2125. "md.AgentQualificationEnterpriseRes": {
  2126. "type": "object",
  2127. "properties": {
  2128. "list": {
  2129. "type": "array",
  2130. "items": {
  2131. "$ref": "#/definitions/md.AgentQualificationEnterpriseData"
  2132. }
  2133. },
  2134. "state": {
  2135. "type": "array",
  2136. "items": {
  2137. "$ref": "#/definitions/md.SelectData"
  2138. }
  2139. },
  2140. "total": {
  2141. "type": "integer"
  2142. },
  2143. "type": {
  2144. "type": "array",
  2145. "items": {
  2146. "$ref": "#/definitions/md.SelectData"
  2147. }
  2148. }
  2149. }
  2150. },
  2151. "md.AppletAddReq": {
  2152. "type": "object",
  2153. "required": [
  2154. "appid",
  2155. "logo",
  2156. "name",
  2157. "original_id"
  2158. ],
  2159. "properties": {
  2160. "appid": {
  2161. "type": "string",
  2162. "example": "授权小程序appid"
  2163. },
  2164. "logo": {
  2165. "type": "string",
  2166. "example": "小程序logo"
  2167. },
  2168. "name": {
  2169. "type": "string",
  2170. "example": "小程序名称"
  2171. },
  2172. "original_id": {
  2173. "type": "string",
  2174. "example": "授权小程序原始id"
  2175. }
  2176. }
  2177. },
  2178. "md.AppletUpdateReq": {
  2179. "type": "object",
  2180. "required": [
  2181. "id",
  2182. "logo",
  2183. "name"
  2184. ],
  2185. "properties": {
  2186. "id": {
  2187. "type": "integer"
  2188. },
  2189. "logo": {
  2190. "type": "string",
  2191. "example": "小程序logo"
  2192. },
  2193. "name": {
  2194. "type": "string",
  2195. "example": "小程序名称"
  2196. }
  2197. }
  2198. },
  2199. "md.BindAdminRoleReq": {
  2200. "type": "object",
  2201. "required": [
  2202. "adm_id"
  2203. ],
  2204. "properties": {
  2205. "adm_id": {
  2206. "type": "integer"
  2207. },
  2208. "role_ids": {
  2209. "type": "array",
  2210. "items": {
  2211. "type": "integer"
  2212. }
  2213. }
  2214. }
  2215. },
  2216. "md.LoginReq": {
  2217. "type": "object",
  2218. "required": [
  2219. "password",
  2220. "username"
  2221. ],
  2222. "properties": {
  2223. "code": {
  2224. "type": "string",
  2225. "example": "验证码"
  2226. },
  2227. "password": {
  2228. "type": "string",
  2229. "example": "登录密码"
  2230. },
  2231. "username": {
  2232. "type": "string",
  2233. "example": "登录账号"
  2234. }
  2235. }
  2236. },
  2237. "md.LoginResponse": {
  2238. "type": "object",
  2239. "properties": {
  2240. "token": {
  2241. "type": "string"
  2242. }
  2243. }
  2244. },
  2245. "md.MediumQualificationContactData": {
  2246. "type": "object",
  2247. "properties": {
  2248. "address": {
  2249. "type": "string",
  2250. "example": "联系地址"
  2251. },
  2252. "company_name": {
  2253. "type": "string",
  2254. "example": "公司名称"
  2255. },
  2256. "email": {
  2257. "type": "string",
  2258. "example": "邮箱地址"
  2259. },
  2260. "id": {
  2261. "type": "string",
  2262. "example": "id"
  2263. },
  2264. "kind": {
  2265. "type": "string",
  2266. "example": "类型(1:企业 2:个人)"
  2267. },
  2268. "medium_id": {
  2269. "type": "string",
  2270. "example": "代理id"
  2271. },
  2272. "memo": {
  2273. "type": "string",
  2274. "example": "备注 审核时填写的"
  2275. },
  2276. "name": {
  2277. "type": "string",
  2278. "example": "联系人"
  2279. },
  2280. "phone": {
  2281. "type": "string",
  2282. "example": "联系电话"
  2283. },
  2284. "state": {
  2285. "type": "string",
  2286. "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)"
  2287. }
  2288. }
  2289. },
  2290. "md.MediumQualificationContactRes": {
  2291. "type": "object",
  2292. "properties": {
  2293. "list": {
  2294. "type": "array",
  2295. "items": {
  2296. "$ref": "#/definitions/md.MediumQualificationContactData"
  2297. }
  2298. },
  2299. "state": {
  2300. "type": "array",
  2301. "items": {
  2302. "$ref": "#/definitions/md.SelectData"
  2303. }
  2304. },
  2305. "total": {
  2306. "type": "integer"
  2307. }
  2308. }
  2309. },
  2310. "md.MediumQualificationEnterpriseAuditReq": {
  2311. "type": "object",
  2312. "properties": {
  2313. "medium_id": {
  2314. "type": "string"
  2315. },
  2316. "memo": {
  2317. "type": "string"
  2318. },
  2319. "state": {
  2320. "type": "string"
  2321. }
  2322. }
  2323. },
  2324. "md.MediumQualificationEnterpriseData": {
  2325. "type": "object",
  2326. "properties": {
  2327. "business_license_address": {
  2328. "type": "string",
  2329. "example": "营业执照地址"
  2330. },
  2331. "business_license_img_url": {
  2332. "type": "string",
  2333. "example": "营业执照照片"
  2334. },
  2335. "certificate_first_type": {
  2336. "type": "string",
  2337. "example": "证件类型 1级类目id"
  2338. },
  2339. "certificate_type": {
  2340. "type": "string",
  2341. "example": "证件类型 2级类目id"
  2342. },
  2343. "certificate_validity": {
  2344. "type": "string",
  2345. "example": "证件有效期"
  2346. },
  2347. "company_abbreviation": {
  2348. "type": "string",
  2349. "example": "公司简称"
  2350. },
  2351. "company_name": {
  2352. "type": "string",
  2353. "example": "公司名称"
  2354. },
  2355. "country_region": {
  2356. "type": "string",
  2357. "example": "国家地区"
  2358. },
  2359. "country_region_id": {
  2360. "type": "string",
  2361. "example": "国家地区id"
  2362. },
  2363. "id": {
  2364. "type": "string",
  2365. "example": "状态选择"
  2366. },
  2367. "kind": {
  2368. "type": "string",
  2369. "example": "类型(1:企业 2:个人)"
  2370. },
  2371. "legal_representative": {
  2372. "type": "string",
  2373. "example": "法定代表人"
  2374. },
  2375. "medium_id": {
  2376. "type": "string",
  2377. "example": "代理id"
  2378. },
  2379. "memo": {
  2380. "type": "string",
  2381. "example": "备注 审核时填写的"
  2382. },
  2383. "registered_address": {
  2384. "type": "string",
  2385. "example": "注册地址"
  2386. },
  2387. "registered_address_city_id": {
  2388. "type": "string",
  2389. "example": "注册地址-市id"
  2390. },
  2391. "registered_address_country_id": {
  2392. "type": "string",
  2393. "example": "注册地址-国家id"
  2394. },
  2395. "registered_address_county_id": {
  2396. "type": "string",
  2397. "example": "注册地址-县/区id"
  2398. },
  2399. "registered_address_province_id": {
  2400. "type": "string",
  2401. "example": "册地址-省份id"
  2402. },
  2403. "state": {
  2404. "type": "string",
  2405. "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)"
  2406. },
  2407. "unified_social_credit_code": {
  2408. "type": "string",
  2409. "example": "统一社会信用代码"
  2410. },
  2411. "uuid": {
  2412. "type": "string",
  2413. "example": "站长id"
  2414. }
  2415. }
  2416. },
  2417. "md.MediumQualificationEnterpriseReq": {
  2418. "type": "object",
  2419. "properties": {
  2420. "limit": {
  2421. "type": "string"
  2422. },
  2423. "name": {
  2424. "type": "string"
  2425. },
  2426. "page": {
  2427. "type": "string"
  2428. },
  2429. "state": {
  2430. "type": "string"
  2431. }
  2432. }
  2433. },
  2434. "md.MediumQualificationEnterpriseRes": {
  2435. "type": "object",
  2436. "properties": {
  2437. "list": {
  2438. "type": "array",
  2439. "items": {
  2440. "$ref": "#/definitions/md.MediumQualificationEnterpriseData"
  2441. }
  2442. },
  2443. "state": {
  2444. "type": "array",
  2445. "items": {
  2446. "$ref": "#/definitions/md.SelectData"
  2447. }
  2448. },
  2449. "total": {
  2450. "type": "integer"
  2451. },
  2452. "type": {
  2453. "type": "array",
  2454. "items": {
  2455. "$ref": "#/definitions/md.SelectData"
  2456. }
  2457. }
  2458. }
  2459. },
  2460. "md.QiNiuBucketRegion": {
  2461. "type": "object",
  2462. "properties": {
  2463. "region_domain": {
  2464. "type": "string",
  2465. "example": "区域域名"
  2466. },
  2467. "region_id": {
  2468. "type": "string",
  2469. "example": "区域id"
  2470. },
  2471. "region_name": {
  2472. "type": "string",
  2473. "example": "区域名称"
  2474. }
  2475. }
  2476. },
  2477. "md.RegisterForAgentReq": {
  2478. "type": "object",
  2479. "required": [
  2480. "password",
  2481. "phone"
  2482. ],
  2483. "properties": {
  2484. "code": {
  2485. "type": "string",
  2486. "example": "验证码"
  2487. },
  2488. "password": {
  2489. "type": "string",
  2490. "example": "登录密码"
  2491. },
  2492. "phone": {
  2493. "type": "string",
  2494. "example": "登录账号"
  2495. }
  2496. }
  2497. },
  2498. "md.RegisterForMediumReq": {
  2499. "type": "object",
  2500. "required": [
  2501. "password",
  2502. "phone"
  2503. ],
  2504. "properties": {
  2505. "code": {
  2506. "type": "string",
  2507. "example": "验证码"
  2508. },
  2509. "password": {
  2510. "type": "string",
  2511. "example": "登录密码"
  2512. },
  2513. "phone": {
  2514. "type": "string",
  2515. "example": "登录账号"
  2516. }
  2517. }
  2518. },
  2519. "md.Response": {
  2520. "type": "object",
  2521. "properties": {
  2522. "code": {
  2523. "type": "string",
  2524. "example": "响应码"
  2525. },
  2526. "data": {
  2527. "description": "内容"
  2528. },
  2529. "msg": {
  2530. "type": "string",
  2531. "example": "具体错误原因"
  2532. }
  2533. }
  2534. },
  2535. "md.RoleBindPermissionGroupReq": {
  2536. "type": "object",
  2537. "required": [
  2538. "role_id"
  2539. ],
  2540. "properties": {
  2541. "permission_ids": {
  2542. "type": "array",
  2543. "items": {
  2544. "type": "integer"
  2545. }
  2546. },
  2547. "role_id": {
  2548. "type": "integer"
  2549. }
  2550. }
  2551. },
  2552. "md.SelectData": {
  2553. "type": "object",
  2554. "properties": {
  2555. "name": {
  2556. "type": "string",
  2557. "example": "名称"
  2558. },
  2559. "value": {
  2560. "type": "string",
  2561. "example": "值"
  2562. }
  2563. }
  2564. },
  2565. "md.SetOssReq": {
  2566. "type": "object",
  2567. "required": [
  2568. "file_access_key",
  2569. "file_bucket",
  2570. "file_bucket_host",
  2571. "file_bucket_region",
  2572. "file_secret_key"
  2573. ],
  2574. "properties": {
  2575. "file_access_key": {
  2576. "type": "string",
  2577. "example": "对象存储AccessToken"
  2578. },
  2579. "file_bucket": {
  2580. "type": "string",
  2581. "example": "对象存储bucket(空间)"
  2582. },
  2583. "file_bucket_host": {
  2584. "type": "string",
  2585. "example": "对象存储域名"
  2586. },
  2587. "file_bucket_region": {
  2588. "type": "string",
  2589. "example": "文件所属区域"
  2590. },
  2591. "file_secret_key": {
  2592. "type": "string",
  2593. "example": "对象存储SecretToken"
  2594. }
  2595. }
  2596. },
  2597. "md.SetOssResp": {
  2598. "type": "object",
  2599. "properties": {
  2600. "data": {
  2601. "description": "数据内容",
  2602. "allOf": [
  2603. {
  2604. "$ref": "#/definitions/md.SetOssReq"
  2605. }
  2606. ]
  2607. },
  2608. "qi_niu_bucket_region_list": {
  2609. "description": "七牛云存储区域列表",
  2610. "type": "array",
  2611. "items": {
  2612. "$ref": "#/definitions/md.QiNiuBucketRegion"
  2613. }
  2614. }
  2615. }
  2616. },
  2617. "md.ShareIndexResp": {
  2618. "type": "object",
  2619. "properties": {
  2620. "agent_domain": {
  2621. "type": "string",
  2622. "example": "代理分享地址"
  2623. },
  2624. "master_id": {
  2625. "type": "string"
  2626. },
  2627. "medium_domain": {
  2628. "type": "string",
  2629. "example": "媒体分享地址"
  2630. }
  2631. }
  2632. },
  2633. "md.UpdateAdminReq": {
  2634. "type": "object",
  2635. "required": [
  2636. "adm_id",
  2637. "password",
  2638. "username"
  2639. ],
  2640. "properties": {
  2641. "adm_id": {
  2642. "type": "integer"
  2643. },
  2644. "memo": {
  2645. "type": "string"
  2646. },
  2647. "password": {
  2648. "type": "string"
  2649. },
  2650. "username": {
  2651. "type": "string"
  2652. }
  2653. }
  2654. },
  2655. "md.UpdateAdminStateReq": {
  2656. "type": "object",
  2657. "required": [
  2658. "adm_id",
  2659. "state"
  2660. ],
  2661. "properties": {
  2662. "adm_id": {
  2663. "type": "integer"
  2664. },
  2665. "state": {
  2666. "type": "integer"
  2667. }
  2668. }
  2669. },
  2670. "md.UpdateRoleReq": {
  2671. "type": "object",
  2672. "required": [
  2673. "memo",
  2674. "name",
  2675. "role_id"
  2676. ],
  2677. "properties": {
  2678. "memo": {
  2679. "type": "string"
  2680. },
  2681. "name": {
  2682. "type": "string"
  2683. },
  2684. "role_id": {
  2685. "type": "integer"
  2686. }
  2687. }
  2688. },
  2689. "md.UpdateRoleStateReq": {
  2690. "type": "object",
  2691. "required": [
  2692. "role_id",
  2693. "state"
  2694. ],
  2695. "properties": {
  2696. "role_id": {
  2697. "type": "integer"
  2698. },
  2699. "state": {
  2700. "type": "integer"
  2701. }
  2702. }
  2703. },
  2704. "md.WxOpenGetResp": {
  2705. "type": "object",
  2706. "properties": {
  2707. "aes_key": {
  2708. "type": "string",
  2709. "example": "消息加解密Key"
  2710. },
  2711. "app_secret": {
  2712. "type": "string",
  2713. "example": "appSecret"
  2714. },
  2715. "appid": {
  2716. "type": "string",
  2717. "example": "appid"
  2718. },
  2719. "token": {
  2720. "type": "string",
  2721. "example": "消息校验Token"
  2722. },
  2723. "wx_open_applet_server_domain": {
  2724. "type": "string",
  2725. "example": "微信开放平台-小程序服务器域名"
  2726. },
  2727. "wx_open_authorization_event_receiving_configuration": {
  2728. "type": "string",
  2729. "example": "微信开放平台-授权事件接收配置"
  2730. },
  2731. "wx_open_domain_of_the_initiating_page_for_login_authorization": {
  2732. "type": "string",
  2733. "example": "微信开放平台-登录授权的发起页域名"
  2734. },
  2735. "wx_open_message_and_event_reception_configuration": {
  2736. "type": "string",
  2737. "example": "微信开放平台-消息与事件接收配置"
  2738. },
  2739. "wx_open_white_list_ip": {
  2740. "type": "string",
  2741. "example": "微信开放平台-白名单ip"
  2742. }
  2743. }
  2744. },
  2745. "md.WxOpenSetReq": {
  2746. "type": "object",
  2747. "required": [
  2748. "aes_key",
  2749. "app_secret",
  2750. "appid",
  2751. "token"
  2752. ],
  2753. "properties": {
  2754. "aes_key": {
  2755. "type": "string",
  2756. "example": "消息加解密Key"
  2757. },
  2758. "app_secret": {
  2759. "type": "string",
  2760. "example": "appSecret"
  2761. },
  2762. "appid": {
  2763. "type": "string",
  2764. "example": "appid"
  2765. },
  2766. "token": {
  2767. "type": "string",
  2768. "example": "消息校验Token"
  2769. }
  2770. }
  2771. }
  2772. },
  2773. "securityDefinitions": {
  2774. "MasterID": {
  2775. "type": "apiKey",
  2776. "name": "MasterID",
  2777. "in": "header"
  2778. }
  2779. }
  2780. }`
  2781. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2782. var SwaggerInfo = &swag.Spec{
  2783. Version: "1.0",
  2784. Host: "localhost:1002 or xxxx.advertisement.dengbiao.top",
  2785. BasePath: "",
  2786. Schemes: []string{},
  2787. Title: "广告联盟-站长平台",
  2788. Description: "站长后台接口",
  2789. InfoInstanceName: "swagger",
  2790. SwaggerTemplate: docTemplate,
  2791. }
  2792. func init() {
  2793. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  2794. }