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.

1224 lines
38 KiB

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