广告平台(媒体使用)
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

1214 líneas
38 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:1004 or xxxxx.medium.dengbiao.top",
  19. "paths": {
  20. "/api/login": {
  21. "post": {
  22. "description": "登入",
  23. "consumes": [
  24. "application/json"
  25. ],
  26. "produces": [
  27. "application/json"
  28. ],
  29. "tags": [
  30. "ADMIN"
  31. ],
  32. "summary": "登陆",
  33. "parameters": [
  34. {
  35. "description": "用户名、密码",
  36. "name": "req",
  37. "in": "body",
  38. "required": true,
  39. "schema": {
  40. "$ref": "#/definitions/md.LoginReq"
  41. }
  42. }
  43. ],
  44. "responses": {
  45. "200": {
  46. "description": "token",
  47. "schema": {
  48. "$ref": "#/definitions/md.LoginResponse"
  49. }
  50. },
  51. "400": {
  52. "description": "具体错误",
  53. "schema": {
  54. "$ref": "#/definitions/md.Response"
  55. }
  56. }
  57. }
  58. }
  59. },
  60. "/api/qualification/bank/save": {
  61. "post": {
  62. "description": "资质认证-银行资质保存",
  63. "consumes": [
  64. "application/json"
  65. ],
  66. "produces": [
  67. "application/json"
  68. ],
  69. "tags": [
  70. "资质认证------嘉俊"
  71. ],
  72. "summary": "银行资质保存",
  73. "parameters": [
  74. {
  75. "type": "string",
  76. "description": "验证参数Bearer和token空格拼接",
  77. "name": "Authorization",
  78. "in": "header",
  79. "required": true
  80. },
  81. {
  82. "description": "请求参数",
  83. "name": "args",
  84. "in": "body",
  85. "required": true,
  86. "schema": {
  87. "$ref": "#/definitions/md.MediumBankInfo"
  88. }
  89. }
  90. ],
  91. "responses": {
  92. "200": {
  93. "description": "具体看返回内容",
  94. "schema": {
  95. "type": "string"
  96. }
  97. },
  98. "400": {
  99. "description": "具体错误",
  100. "schema": {
  101. "$ref": "#/definitions/md.Response"
  102. }
  103. }
  104. }
  105. }
  106. },
  107. "/api/qualification/contact/save": {
  108. "post": {
  109. "description": "资质认证-联系方式保存",
  110. "consumes": [
  111. "application/json"
  112. ],
  113. "produces": [
  114. "application/json"
  115. ],
  116. "tags": [
  117. "资质认证------嘉俊"
  118. ],
  119. "summary": "联系方式保存",
  120. "parameters": [
  121. {
  122. "type": "string",
  123. "description": "验证参数Bearer和token空格拼接",
  124. "name": "Authorization",
  125. "in": "header",
  126. "required": true
  127. },
  128. {
  129. "description": "请求参数",
  130. "name": "args",
  131. "in": "body",
  132. "required": true,
  133. "schema": {
  134. "$ref": "#/definitions/md.MediumContactInfo"
  135. }
  136. }
  137. ],
  138. "responses": {
  139. "200": {
  140. "description": "具体看返回内容",
  141. "schema": {
  142. "type": "string"
  143. }
  144. },
  145. "400": {
  146. "description": "具体错误",
  147. "schema": {
  148. "$ref": "#/definitions/md.Response"
  149. }
  150. }
  151. }
  152. }
  153. },
  154. "/api/qualification/enterprise/save": {
  155. "post": {
  156. "description": "资质认证-企业认证保存",
  157. "consumes": [
  158. "application/json"
  159. ],
  160. "produces": [
  161. "application/json"
  162. ],
  163. "tags": [
  164. "资质认证------嘉俊"
  165. ],
  166. "summary": "企业认证保存",
  167. "parameters": [
  168. {
  169. "type": "string",
  170. "description": "验证参数Bearer和token空格拼接",
  171. "name": "Authorization",
  172. "in": "header",
  173. "required": true
  174. },
  175. {
  176. "description": "请求参数",
  177. "name": "args",
  178. "in": "body",
  179. "required": true,
  180. "schema": {
  181. "$ref": "#/definitions/md.MediumList"
  182. }
  183. }
  184. ],
  185. "responses": {
  186. "200": {
  187. "description": "具体看返回内容",
  188. "schema": {
  189. "type": "string"
  190. }
  191. },
  192. "400": {
  193. "description": "具体错误",
  194. "schema": {
  195. "$ref": "#/definitions/md.Response"
  196. }
  197. }
  198. }
  199. }
  200. },
  201. "/api/qualification/info": {
  202. "get": {
  203. "description": "资质认证-基本信息",
  204. "consumes": [
  205. "application/json"
  206. ],
  207. "produces": [
  208. "application/json"
  209. ],
  210. "tags": [
  211. "资质认证------嘉俊"
  212. ],
  213. "summary": "基本信息",
  214. "parameters": [
  215. {
  216. "type": "string",
  217. "description": "验证参数Bearer和token空格拼接",
  218. "name": "Authorization",
  219. "in": "header",
  220. "required": true
  221. }
  222. ],
  223. "responses": {
  224. "200": {
  225. "description": "具体看返回内容",
  226. "schema": {
  227. "type": "string"
  228. }
  229. },
  230. "400": {
  231. "description": "具体错误",
  232. "schema": {
  233. "$ref": "#/definitions/md.Response"
  234. }
  235. }
  236. }
  237. }
  238. },
  239. "/api/qualification/select/base": {
  240. "get": {
  241. "description": "资质认证-认证下拉框选择内容",
  242. "consumes": [
  243. "application/json"
  244. ],
  245. "produces": [
  246. "application/json"
  247. ],
  248. "tags": [
  249. "资质认证------嘉俊"
  250. ],
  251. "summary": "认证下拉框选择内容",
  252. "parameters": [
  253. {
  254. "type": "string",
  255. "description": "验证参数Bearer和token空格拼接",
  256. "name": "Authorization",
  257. "in": "header",
  258. "required": true
  259. }
  260. ],
  261. "responses": {
  262. "200": {
  263. "description": "具体看返回内容",
  264. "schema": {
  265. "type": "string"
  266. }
  267. },
  268. "400": {
  269. "description": "具体错误",
  270. "schema": {
  271. "$ref": "#/definitions/md.Response"
  272. }
  273. }
  274. }
  275. }
  276. },
  277. "/api/role/addAdmin": {
  278. "post": {
  279. "description": "新增管理员",
  280. "consumes": [
  281. "application/json"
  282. ],
  283. "produces": [
  284. "application/json"
  285. ],
  286. "tags": [
  287. "ADMIN-权限管理"
  288. ],
  289. "summary": "新增管理员",
  290. "parameters": [
  291. {
  292. "type": "string",
  293. "description": "验证参数Bearer和token空格拼接",
  294. "name": "Authorization",
  295. "in": "header",
  296. "required": true
  297. },
  298. {
  299. "description": "请求参数",
  300. "name": "args",
  301. "in": "body",
  302. "required": true,
  303. "schema": {
  304. "$ref": "#/definitions/md.AddAdminReq"
  305. }
  306. }
  307. ],
  308. "responses": {
  309. "200": {
  310. "description": "success",
  311. "schema": {
  312. "type": "string"
  313. }
  314. },
  315. "400": {
  316. "description": "具体错误",
  317. "schema": {
  318. "$ref": "#/definitions/md.Response"
  319. }
  320. }
  321. }
  322. }
  323. },
  324. "/api/role/addRole": {
  325. "post": {
  326. "description": "添加角色",
  327. "consumes": [
  328. "application/json"
  329. ],
  330. "produces": [
  331. "application/json"
  332. ],
  333. "tags": [
  334. "ADMIN-权限管理"
  335. ],
  336. "summary": "添加角色",
  337. "parameters": [
  338. {
  339. "type": "string",
  340. "description": "验证参数Bearer和token空格拼接",
  341. "name": "Authorization",
  342. "in": "header",
  343. "required": true
  344. },
  345. {
  346. "description": "请求参数",
  347. "name": "args",
  348. "in": "body",
  349. "required": true,
  350. "schema": {
  351. "$ref": "#/definitions/md.AddRoleReq"
  352. }
  353. }
  354. ],
  355. "responses": {
  356. "200": {
  357. "description": "success",
  358. "schema": {
  359. "type": "string"
  360. }
  361. },
  362. "400": {
  363. "description": "具体错误",
  364. "schema": {
  365. "$ref": "#/definitions/md.Response"
  366. }
  367. }
  368. }
  369. }
  370. },
  371. "/api/role/adminInfo": {
  372. "get": {
  373. "description": "管理员信息",
  374. "consumes": [
  375. "application/json"
  376. ],
  377. "produces": [
  378. "application/json"
  379. ],
  380. "tags": [
  381. "ADMIN-权限管理"
  382. ],
  383. "summary": "管理员信息",
  384. "parameters": [
  385. {
  386. "type": "string",
  387. "description": "验证参数Bearer和token空格拼接",
  388. "name": "Authorization",
  389. "in": "header",
  390. "required": true
  391. },
  392. {
  393. "type": "string",
  394. "description": "管理员id",
  395. "name": "adm_id",
  396. "in": "query",
  397. "required": true
  398. }
  399. ],
  400. "responses": {
  401. "200": {
  402. "description": "具体看返回内容",
  403. "schema": {
  404. "type": "string"
  405. }
  406. },
  407. "400": {
  408. "description": "具体错误",
  409. "schema": {
  410. "$ref": "#/definitions/md.Response"
  411. }
  412. }
  413. }
  414. }
  415. },
  416. "/api/role/adminList": {
  417. "post": {
  418. "description": "管理员列表",
  419. "consumes": [
  420. "application/json"
  421. ],
  422. "produces": [
  423. "application/json"
  424. ],
  425. "tags": [
  426. "ADMIN-权限管理"
  427. ],
  428. "summary": "管理员列表",
  429. "parameters": [
  430. {
  431. "type": "string",
  432. "description": "验证参数Bearer和token空格拼接",
  433. "name": "Authorization",
  434. "in": "header",
  435. "required": true
  436. },
  437. {
  438. "description": "请求参数",
  439. "name": "args",
  440. "in": "body",
  441. "required": true,
  442. "schema": {
  443. "$ref": "#/definitions/md.AdminListReq"
  444. }
  445. }
  446. ],
  447. "responses": {
  448. "200": {
  449. "description": "具体看返回内容",
  450. "schema": {
  451. "type": "string"
  452. }
  453. },
  454. "400": {
  455. "description": "具体错误",
  456. "schema": {
  457. "$ref": "#/definitions/md.Response"
  458. }
  459. }
  460. }
  461. }
  462. },
  463. "/api/role/bindAdminRole/": {
  464. "post": {
  465. "description": "管理员绑定角色",
  466. "consumes": [
  467. "application/json"
  468. ],
  469. "produces": [
  470. "application/json"
  471. ],
  472. "tags": [
  473. "ADMIN-权限管理"
  474. ],
  475. "summary": "管理员绑定角色",
  476. "parameters": [
  477. {
  478. "type": "string",
  479. "description": "验证参数Bearer和token空格拼接",
  480. "name": "Authorization",
  481. "in": "header",
  482. "required": true
  483. },
  484. {
  485. "description": "请求参数",
  486. "name": "args",
  487. "in": "body",
  488. "required": true,
  489. "schema": {
  490. "$ref": "#/definitions/md.BindAdminRoleReq"
  491. }
  492. }
  493. ],
  494. "responses": {
  495. "200": {
  496. "description": "success",
  497. "schema": {
  498. "type": "string"
  499. }
  500. },
  501. "400": {
  502. "description": "具体错误",
  503. "schema": {
  504. "$ref": "#/definitions/md.Response"
  505. }
  506. }
  507. }
  508. }
  509. },
  510. "/api/role/deleteAdmin/{$adm_id}": {
  511. "delete": {
  512. "description": "删除管理员",
  513. "consumes": [
  514. "application/json"
  515. ],
  516. "produces": [
  517. "application/json"
  518. ],
  519. "tags": [
  520. "ADMIN-权限管理"
  521. ],
  522. "summary": "删除管理员",
  523. "parameters": [
  524. {
  525. "type": "string",
  526. "description": "验证参数Bearer和token空格拼接",
  527. "name": "Authorization",
  528. "in": "header",
  529. "required": true
  530. }
  531. ],
  532. "responses": {
  533. "200": {
  534. "description": "success",
  535. "schema": {
  536. "type": "string"
  537. }
  538. },
  539. "400": {
  540. "description": "具体错误",
  541. "schema": {
  542. "$ref": "#/definitions/md.Response"
  543. }
  544. }
  545. }
  546. }
  547. },
  548. "/api/role/deleteRole/{$id}": {
  549. "delete": {
  550. "description": "删除角色",
  551. "consumes": [
  552. "application/json"
  553. ],
  554. "produces": [
  555. "application/json"
  556. ],
  557. "tags": [
  558. "ADMIN-权限管理"
  559. ],
  560. "summary": "删除角色",
  561. "parameters": [
  562. {
  563. "type": "string",
  564. "description": "验证参数Bearer和token空格拼接",
  565. "name": "Authorization",
  566. "in": "header",
  567. "required": true
  568. },
  569. {
  570. "description": "请求参数",
  571. "name": "args",
  572. "in": "body",
  573. "required": true,
  574. "schema": {
  575. "$ref": "#/definitions/md.UpdateRoleStateReq"
  576. }
  577. }
  578. ],
  579. "responses": {
  580. "200": {
  581. "description": "success",
  582. "schema": {
  583. "type": "string"
  584. }
  585. },
  586. "400": {
  587. "description": "具体错误",
  588. "schema": {
  589. "$ref": "#/definitions/md.Response"
  590. }
  591. }
  592. }
  593. }
  594. },
  595. "/api/role/permissionGroupList": {
  596. "get": {
  597. "description": "权限组列表",
  598. "consumes": [
  599. "application/json"
  600. ],
  601. "produces": [
  602. "application/json"
  603. ],
  604. "tags": [
  605. "ADMIN-权限管理"
  606. ],
  607. "summary": "权限组列表",
  608. "parameters": [
  609. {
  610. "type": "string",
  611. "description": "验证参数Bearer和token空格拼接",
  612. "name": "Authorization",
  613. "in": "header",
  614. "required": true
  615. },
  616. {
  617. "type": "string",
  618. "description": "管理员id",
  619. "name": "adm_id",
  620. "in": "query",
  621. "required": true
  622. }
  623. ],
  624. "responses": {
  625. "200": {
  626. "description": "具体看返回内容",
  627. "schema": {
  628. "type": "string"
  629. }
  630. },
  631. "400": {
  632. "description": "具体错误",
  633. "schema": {
  634. "$ref": "#/definitions/md.Response"
  635. }
  636. }
  637. }
  638. }
  639. },
  640. "/api/role/roleBindPermissionGroup": {
  641. "post": {
  642. "description": "角色绑定权限组",
  643. "consumes": [
  644. "application/json"
  645. ],
  646. "produces": [
  647. "application/json"
  648. ],
  649. "tags": [
  650. "ADMIN-权限管理"
  651. ],
  652. "summary": "角色绑定权限组",
  653. "parameters": [
  654. {
  655. "type": "string",
  656. "description": "验证参数Bearer和token空格拼接",
  657. "name": "Authorization",
  658. "in": "header",
  659. "required": true
  660. },
  661. {
  662. "description": "请求参数",
  663. "name": "args",
  664. "in": "body",
  665. "required": true,
  666. "schema": {
  667. "$ref": "#/definitions/md.RoleBindPermissionGroupReq"
  668. }
  669. }
  670. ],
  671. "responses": {
  672. "200": {
  673. "description": "success",
  674. "schema": {
  675. "type": "string"
  676. }
  677. },
  678. "400": {
  679. "description": "具体错误",
  680. "schema": {
  681. "$ref": "#/definitions/md.Response"
  682. }
  683. }
  684. }
  685. }
  686. },
  687. "/api/role/roleList": {
  688. "get": {
  689. "description": "角色列表",
  690. "consumes": [
  691. "application/json"
  692. ],
  693. "produces": [
  694. "application/json"
  695. ],
  696. "tags": [
  697. "ADMIN-权限管理"
  698. ],
  699. "summary": "角色列表",
  700. "parameters": [
  701. {
  702. "type": "string",
  703. "description": "验证参数Bearer和token空格拼接",
  704. "name": "Authorization",
  705. "in": "header",
  706. "required": true
  707. }
  708. ],
  709. "responses": {
  710. "200": {
  711. "description": "具体看返回内容",
  712. "schema": {
  713. "type": "string"
  714. }
  715. },
  716. "400": {
  717. "description": "具体错误",
  718. "schema": {
  719. "$ref": "#/definitions/md.Response"
  720. }
  721. }
  722. }
  723. }
  724. },
  725. "/api/role/updateAdmin": {
  726. "post": {
  727. "description": "修改管理员信息",
  728. "consumes": [
  729. "application/json"
  730. ],
  731. "produces": [
  732. "application/json"
  733. ],
  734. "tags": [
  735. "ADMIN-权限管理"
  736. ],
  737. "summary": "修改管理员信息",
  738. "parameters": [
  739. {
  740. "type": "string",
  741. "description": "验证参数Bearer和token空格拼接",
  742. "name": "Authorization",
  743. "in": "header",
  744. "required": true
  745. },
  746. {
  747. "description": "请求参数",
  748. "name": "args",
  749. "in": "body",
  750. "required": true,
  751. "schema": {
  752. "$ref": "#/definitions/md.UpdateAdminReq"
  753. }
  754. }
  755. ],
  756. "responses": {
  757. "200": {
  758. "description": "success",
  759. "schema": {
  760. "type": "string"
  761. }
  762. },
  763. "400": {
  764. "description": "具体错误",
  765. "schema": {
  766. "$ref": "#/definitions/md.Response"
  767. }
  768. }
  769. }
  770. }
  771. },
  772. "/api/role/updateAdminState": {
  773. "post": {
  774. "description": "修改管理员状态",
  775. "consumes": [
  776. "application/json"
  777. ],
  778. "produces": [
  779. "application/json"
  780. ],
  781. "tags": [
  782. "ADMIN-权限管理"
  783. ],
  784. "summary": "修改管理员状态",
  785. "parameters": [
  786. {
  787. "type": "string",
  788. "description": "验证参数Bearer和token空格拼接",
  789. "name": "Authorization",
  790. "in": "header",
  791. "required": true
  792. },
  793. {
  794. "description": "请求参数",
  795. "name": "args",
  796. "in": "body",
  797. "required": true,
  798. "schema": {
  799. "$ref": "#/definitions/md.UpdateAdminStateReq"
  800. }
  801. }
  802. ],
  803. "responses": {
  804. "200": {
  805. "description": "success",
  806. "schema": {
  807. "type": "string"
  808. }
  809. },
  810. "400": {
  811. "description": "具体错误",
  812. "schema": {
  813. "$ref": "#/definitions/md.Response"
  814. }
  815. }
  816. }
  817. }
  818. },
  819. "/api/role/updateRole": {
  820. "post": {
  821. "description": "修改角色状态",
  822. "consumes": [
  823. "application/json"
  824. ],
  825. "produces": [
  826. "application/json"
  827. ],
  828. "tags": [
  829. "ADMIN-权限管理"
  830. ],
  831. "summary": "修改角色状态",
  832. "parameters": [
  833. {
  834. "type": "string",
  835. "description": "验证参数Bearer和token空格拼接",
  836. "name": "Authorization",
  837. "in": "header",
  838. "required": true
  839. },
  840. {
  841. "description": "请求参数",
  842. "name": "args",
  843. "in": "body",
  844. "required": true,
  845. "schema": {
  846. "$ref": "#/definitions/md.UpdateRoleStateReq"
  847. }
  848. }
  849. ],
  850. "responses": {
  851. "200": {
  852. "description": "success",
  853. "schema": {
  854. "type": "string"
  855. }
  856. },
  857. "400": {
  858. "description": "具体错误",
  859. "schema": {
  860. "$ref": "#/definitions/md.Response"
  861. }
  862. }
  863. }
  864. }
  865. }
  866. },
  867. "definitions": {
  868. "md.AddAdminReq": {
  869. "type": "object",
  870. "required": [
  871. "password",
  872. "username"
  873. ],
  874. "properties": {
  875. "memo": {
  876. "type": "string"
  877. },
  878. "password": {
  879. "type": "string"
  880. },
  881. "username": {
  882. "type": "string"
  883. }
  884. }
  885. },
  886. "md.AddRoleReq": {
  887. "type": "object",
  888. "required": [
  889. "memo",
  890. "name"
  891. ],
  892. "properties": {
  893. "memo": {
  894. "type": "string"
  895. },
  896. "name": {
  897. "type": "string"
  898. }
  899. }
  900. },
  901. "md.AdminListReq": {
  902. "type": "object",
  903. "properties": {
  904. "limit": {
  905. "type": "integer"
  906. },
  907. "page": {
  908. "type": "integer"
  909. },
  910. "state": {
  911. "type": "integer"
  912. },
  913. "username": {
  914. "type": "string"
  915. }
  916. }
  917. },
  918. "md.BindAdminRoleReq": {
  919. "type": "object",
  920. "required": [
  921. "id"
  922. ],
  923. "properties": {
  924. "id": {
  925. "type": "integer"
  926. },
  927. "role_ids": {
  928. "type": "array",
  929. "items": {
  930. "type": "integer"
  931. }
  932. }
  933. }
  934. },
  935. "md.LoginReq": {
  936. "type": "object",
  937. "required": [
  938. "password",
  939. "username"
  940. ],
  941. "properties": {
  942. "code": {
  943. "type": "string",
  944. "example": "验证码"
  945. },
  946. "password": {
  947. "type": "string",
  948. "example": "登录密码"
  949. },
  950. "username": {
  951. "type": "string",
  952. "example": "登录账号"
  953. }
  954. }
  955. },
  956. "md.LoginResponse": {
  957. "type": "object",
  958. "properties": {
  959. "token": {
  960. "type": "string"
  961. }
  962. }
  963. },
  964. "md.MediumBankInfo": {
  965. "type": "object",
  966. "properties": {
  967. "bank": {
  968. "type": "string"
  969. },
  970. "bank_branch": {
  971. "type": "string"
  972. },
  973. "bank_no": {
  974. "type": "string"
  975. },
  976. "currency_conf": {
  977. "type": "integer"
  978. },
  979. "id": {
  980. "type": "integer"
  981. },
  982. "licence": {
  983. "type": "string"
  984. },
  985. "medium_id": {
  986. "type": "integer"
  987. },
  988. "memo": {
  989. "type": "string"
  990. },
  991. "state": {
  992. "type": "integer"
  993. },
  994. "uuid": {
  995. "type": "integer"
  996. }
  997. }
  998. },
  999. "md.MediumContactInfo": {
  1000. "type": "object",
  1001. "properties": {
  1002. "address": {
  1003. "type": "string"
  1004. },
  1005. "email": {
  1006. "type": "string"
  1007. },
  1008. "id": {
  1009. "type": "integer"
  1010. },
  1011. "medium_id": {
  1012. "type": "integer"
  1013. },
  1014. "memo": {
  1015. "type": "string"
  1016. },
  1017. "name": {
  1018. "type": "string"
  1019. },
  1020. "phone": {
  1021. "type": "string"
  1022. },
  1023. "state": {
  1024. "type": "integer"
  1025. },
  1026. "uuid": {
  1027. "type": "integer"
  1028. }
  1029. }
  1030. },
  1031. "md.MediumList": {
  1032. "type": "object",
  1033. "properties": {
  1034. "business_license_address": {
  1035. "type": "string"
  1036. },
  1037. "business_license_img_url": {
  1038. "type": "string"
  1039. },
  1040. "certificate_first_type": {
  1041. "type": "integer"
  1042. },
  1043. "certificate_type": {
  1044. "type": "integer"
  1045. },
  1046. "certificate_validity": {
  1047. "type": "string"
  1048. },
  1049. "company_abbreviation": {
  1050. "type": "string"
  1051. },
  1052. "company_name": {
  1053. "type": "string"
  1054. },
  1055. "country_region": {
  1056. "type": "string"
  1057. },
  1058. "country_region_id": {
  1059. "type": "integer"
  1060. },
  1061. "id": {
  1062. "type": "integer"
  1063. },
  1064. "kind": {
  1065. "type": "integer"
  1066. },
  1067. "legal_representative": {
  1068. "type": "string"
  1069. },
  1070. "medium_id": {
  1071. "type": "integer"
  1072. },
  1073. "memo": {
  1074. "type": "string"
  1075. },
  1076. "registered_address": {
  1077. "type": "string"
  1078. },
  1079. "registered_address_city_id": {
  1080. "type": "integer"
  1081. },
  1082. "registered_address_country_id": {
  1083. "type": "integer"
  1084. },
  1085. "registered_address_county_id": {
  1086. "type": "integer"
  1087. },
  1088. "registered_address_province_id": {
  1089. "type": "integer"
  1090. },
  1091. "state": {
  1092. "type": "integer"
  1093. },
  1094. "unified_social_credit_code": {
  1095. "type": "string"
  1096. },
  1097. "uuid": {
  1098. "type": "integer"
  1099. }
  1100. }
  1101. },
  1102. "md.Response": {
  1103. "type": "object",
  1104. "properties": {
  1105. "code": {
  1106. "type": "string",
  1107. "example": "响应码"
  1108. },
  1109. "data": {
  1110. "description": "内容"
  1111. },
  1112. "msg": {
  1113. "type": "string",
  1114. "example": "具体错误原因"
  1115. }
  1116. }
  1117. },
  1118. "md.RoleBindPermissionGroupReq": {
  1119. "type": "object",
  1120. "required": [
  1121. "role_id"
  1122. ],
  1123. "properties": {
  1124. "permission_ids": {
  1125. "type": "array",
  1126. "items": {
  1127. "type": "integer"
  1128. }
  1129. },
  1130. "role_id": {
  1131. "type": "integer"
  1132. }
  1133. }
  1134. },
  1135. "md.UpdateAdminReq": {
  1136. "type": "object",
  1137. "required": [
  1138. "id",
  1139. "password",
  1140. "username"
  1141. ],
  1142. "properties": {
  1143. "id": {
  1144. "type": "integer"
  1145. },
  1146. "memo": {
  1147. "type": "string"
  1148. },
  1149. "password": {
  1150. "type": "string"
  1151. },
  1152. "username": {
  1153. "type": "string"
  1154. }
  1155. }
  1156. },
  1157. "md.UpdateAdminStateReq": {
  1158. "type": "object",
  1159. "required": [
  1160. "id",
  1161. "state"
  1162. ],
  1163. "properties": {
  1164. "id": {
  1165. "type": "integer"
  1166. },
  1167. "state": {
  1168. "type": "integer"
  1169. }
  1170. }
  1171. },
  1172. "md.UpdateRoleReq": {
  1173. "type": "object",
  1174. "required": [
  1175. "memo",
  1176. "name",
  1177. "role_id"
  1178. ],
  1179. "properties": {
  1180. "memo": {
  1181. "type": "string"
  1182. },
  1183. "name": {
  1184. "type": "string"
  1185. },
  1186. "role_id": {
  1187. "type": "integer"
  1188. }
  1189. }
  1190. },
  1191. "md.UpdateRoleStateReq": {
  1192. "type": "object",
  1193. "required": [
  1194. "role_id",
  1195. "state"
  1196. ],
  1197. "properties": {
  1198. "role_id": {
  1199. "type": "integer"
  1200. },
  1201. "state": {
  1202. "type": "integer"
  1203. }
  1204. }
  1205. }
  1206. },
  1207. "securityDefinitions": {
  1208. "MasterID": {
  1209. "type": "apiKey",
  1210. "name": "MasterID",
  1211. "in": "header"
  1212. }
  1213. }
  1214. }