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

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