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

2085 lines
69 KiB

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