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.

863 lines
20 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
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. basePath: /
  2. definitions:
  3. api.AddMenuAuthorityInfo:
  4. properties:
  5. authorityId:
  6. type: string
  7. menus:
  8. items:
  9. $ref: '#/definitions/sysModel.SysBaseMenu'
  10. type: array
  11. type: object
  12. api.AuthorityIdInfo:
  13. properties:
  14. authorityId:
  15. type: string
  16. type: object
  17. api.ChangePasswordStutrc:
  18. properties:
  19. newPassword:
  20. type: string
  21. password:
  22. type: string
  23. username:
  24. type: string
  25. type: object
  26. api.CreateApiParams:
  27. properties:
  28. description:
  29. type: string
  30. path:
  31. type: string
  32. type: object
  33. api.CreateAuthorityParams:
  34. properties:
  35. authorityId:
  36. type: string
  37. authorityName:
  38. type: string
  39. type: object
  40. api.DeleteAuthorityPatams:
  41. properties:
  42. authorityId:
  43. type: integer
  44. type: object
  45. api.GetById:
  46. properties:
  47. id:
  48. type: number
  49. type: object
  50. api.IdInfo:
  51. properties:
  52. id:
  53. type: number
  54. type: object
  55. api.RegistAndLoginStuct:
  56. properties:
  57. password:
  58. type: string
  59. username:
  60. type: string
  61. type: object
  62. api.SetUserAuth:
  63. properties:
  64. authorityId:
  65. type: string
  66. uuid:
  67. type: string
  68. type: object
  69. dbModel.ExaFileUploadAndDownload:
  70. properties:
  71. key:
  72. type: string
  73. name:
  74. type: string
  75. tag:
  76. type: string
  77. url:
  78. type: string
  79. type: object
  80. modelInterface.PageInfo:
  81. properties:
  82. page:
  83. type: integer
  84. pageSize:
  85. type: integer
  86. type: object
  87. sysModel.SysApi:
  88. properties:
  89. description:
  90. type: string
  91. group:
  92. type: string
  93. path:
  94. type: string
  95. type: object
  96. sysModel.SysAuthority:
  97. properties:
  98. authorityId:
  99. type: string
  100. authorityName:
  101. type: string
  102. type: object
  103. sysModel.SysBaseMenu:
  104. properties:
  105. children:
  106. items:
  107. $ref: '#/definitions/sysModel.SysBaseMenu'
  108. type: array
  109. component:
  110. type: string
  111. hidden:
  112. type: boolean
  113. icon:
  114. type: string
  115. name:
  116. type: string
  117. nickName:
  118. type: string
  119. parentId:
  120. type: string
  121. path:
  122. type: string
  123. sort:
  124. type: string
  125. title:
  126. type: string
  127. type: object
  128. sysModel.SysUser:
  129. properties:
  130. authority:
  131. $ref: '#/definitions/sysModel.SysAuthority'
  132. type: object
  133. authorityId:
  134. type: string
  135. headerImg:
  136. type: string
  137. nickName:
  138. type: string
  139. userName:
  140. type: string
  141. uuid:
  142. type: string
  143. type: object
  144. sysModel.SysWorkflow:
  145. properties:
  146. workflowDescription:
  147. description: 工作流描述
  148. type: string
  149. workflowName:
  150. description: 工作流英文id
  151. type: string
  152. workflowNickName:
  153. description: 工作流名称
  154. type: string
  155. workflowStep:
  156. description: 工作流步骤
  157. items:
  158. $ref: '#/definitions/sysModel.SysWorkflowStepInfo'
  159. type: array
  160. type: object
  161. sysModel.SysWorkflowStepInfo:
  162. properties:
  163. isEnd:
  164. description: 是否是完结流节点
  165. type: boolean
  166. isStrat:
  167. description: 是否是开始流节点
  168. type: boolean
  169. stepAuthorityID:
  170. description: 操作者级别id
  171. type: string
  172. stepName:
  173. description: 工作流名称
  174. type: string
  175. stepNo:
  176. description: 步骤id (第几步)
  177. type: number
  178. workflowID:
  179. description: 所属工作流ID
  180. type: integer
  181. type: object
  182. info:
  183. contact: {}
  184. description: This is a sample Server pets
  185. license: {}
  186. title: Swagger Example API
  187. version: 0.0.1
  188. paths:
  189. /api/createApi:
  190. post:
  191. consumes:
  192. - application/json
  193. parameters:
  194. - description: 创建api
  195. in: body
  196. name: data
  197. required: true
  198. schema:
  199. $ref: '#/definitions/api.CreateApiParams'
  200. type: object
  201. produces:
  202. - application/json
  203. responses:
  204. "200":
  205. description: '{"success":true,"data":{},"msg":"获取成功"}'
  206. schema:
  207. type: string
  208. security:
  209. - ApiKeyAuth: []
  210. summary: 创建基础api
  211. tags:
  212. - SysApi
  213. /api/deleteApi:
  214. post:
  215. consumes:
  216. - application/json
  217. parameters:
  218. - description: 删除api
  219. in: body
  220. name: data
  221. required: true
  222. schema:
  223. $ref: '#/definitions/sysModel.SysApi'
  224. type: object
  225. produces:
  226. - application/json
  227. responses:
  228. "200":
  229. description: '{"success":true,"data":{},"msg":"获取成功"}'
  230. schema:
  231. type: string
  232. security:
  233. - ApiKeyAuth: []
  234. summary: 删除指定api
  235. tags:
  236. - SysApi
  237. /api/getAllApis:
  238. post:
  239. consumes:
  240. - application/json
  241. produces:
  242. - application/json
  243. responses:
  244. "200":
  245. description: '{"success":true,"data":{},"msg":"获取成功"}'
  246. schema:
  247. type: string
  248. security:
  249. - ApiKeyAuth: []
  250. summary: 获取所有的Api 不分页
  251. tags:
  252. - SysApi
  253. /api/getApiById:
  254. post:
  255. consumes:
  256. - application/json
  257. parameters:
  258. - description: 分页获取用户列表
  259. in: body
  260. name: data
  261. required: true
  262. schema:
  263. $ref: '#/definitions/modelInterface.PageInfo'
  264. type: object
  265. produces:
  266. - application/json
  267. responses:
  268. "200":
  269. description: '{"success":true,"data":{},"msg":"获取成功"}'
  270. schema:
  271. type: string
  272. security:
  273. - ApiKeyAuth: []
  274. summary: 根据id获取api
  275. tags:
  276. - SysApi
  277. /api/getApiList:
  278. post:
  279. consumes:
  280. - application/json
  281. parameters:
  282. - description: 分页获取API列表
  283. in: body
  284. name: data
  285. required: true
  286. schema:
  287. $ref: '#/definitions/modelInterface.PageInfo'
  288. type: object
  289. produces:
  290. - application/json
  291. responses:
  292. "200":
  293. description: '{"success":true,"data":{},"msg":"获取成功"}'
  294. schema:
  295. type: string
  296. security:
  297. - ApiKeyAuth: []
  298. summary: 分页获取API列表
  299. tags:
  300. - SysApi
  301. /api/updataApi:
  302. post:
  303. consumes:
  304. - application/json
  305. parameters:
  306. - description: 创建api
  307. in: body
  308. name: data
  309. required: true
  310. schema:
  311. $ref: '#/definitions/api.CreateApiParams'
  312. type: object
  313. produces:
  314. - application/json
  315. responses:
  316. "200":
  317. description: '{"success":true,"data":{},"msg":"获取成功"}'
  318. schema:
  319. type: string
  320. security:
  321. - ApiKeyAuth: []
  322. summary: 创建基础api
  323. tags:
  324. - SysApi
  325. /authority/createAuthority:
  326. post:
  327. consumes:
  328. - application/json
  329. parameters:
  330. - description: 创建角色
  331. in: body
  332. name: data
  333. required: true
  334. schema:
  335. $ref: '#/definitions/api.CreateAuthorityParams'
  336. type: object
  337. produces:
  338. - application/json
  339. responses:
  340. "200":
  341. description: '{"success":true,"data":{},"msg":"获取成功"}'
  342. schema:
  343. type: string
  344. security:
  345. - ApiKeyAuth: []
  346. summary: 创建角色
  347. tags:
  348. - authority
  349. /authority/deleteAuthority:
  350. post:
  351. consumes:
  352. - application/json
  353. parameters:
  354. - description: 删除角色
  355. in: body
  356. name: data
  357. required: true
  358. schema:
  359. $ref: '#/definitions/api.DeleteAuthorityPatams'
  360. type: object
  361. produces:
  362. - application/json
  363. responses:
  364. "200":
  365. description: '{"success":true,"data":{},"msg":"获取成功"}'
  366. schema:
  367. type: string
  368. security:
  369. - ApiKeyAuth: []
  370. summary: 删除角色
  371. tags:
  372. - authority
  373. /authority/getAuthorityList:
  374. post:
  375. consumes:
  376. - application/json
  377. parameters:
  378. - description: 分页获取用户列表
  379. in: body
  380. name: data
  381. required: true
  382. schema:
  383. $ref: '#/definitions/modelInterface.PageInfo'
  384. type: object
  385. produces:
  386. - application/json
  387. responses:
  388. "200":
  389. description: '{"success":true,"data":{},"msg":"获取成功"}'
  390. schema:
  391. type: string
  392. security:
  393. - ApiKeyAuth: []
  394. summary: 分页获取角色列表
  395. tags:
  396. - authority
  397. /base/login:
  398. post:
  399. parameters:
  400. - description: 用户登录接口
  401. in: body
  402. name: data
  403. required: true
  404. schema:
  405. $ref: '#/definitions/api.RegistAndLoginStuct'
  406. type: object
  407. produces:
  408. - application/json
  409. responses:
  410. "200":
  411. description: '{"success":true,"data":{},"msg":"登陆成功"}'
  412. schema:
  413. type: string
  414. summary: 用户登录
  415. tags:
  416. - Base
  417. /base/regist:
  418. post:
  419. parameters:
  420. - description: 用户注册接口
  421. in: body
  422. name: data
  423. required: true
  424. schema:
  425. $ref: '#/definitions/sysModel.SysUser'
  426. type: object
  427. produces:
  428. - application/json
  429. responses:
  430. "200":
  431. description: '{"success":true,"data":{},"msg":"注册成功"}'
  432. schema:
  433. type: string
  434. summary: 用户注册账号
  435. tags:
  436. - Base
  437. /casbin/casbinPUpdata:
  438. post:
  439. consumes:
  440. - application/json
  441. parameters:
  442. - description: 更改角色api权限
  443. in: body
  444. name: data
  445. required: true
  446. schema:
  447. $ref: '#/definitions/api.CreateAuthorityParams'
  448. type: object
  449. produces:
  450. - application/json
  451. responses:
  452. "200":
  453. description: '{"success":true,"data":{},"msg":"获取成功"}'
  454. schema:
  455. type: string
  456. security:
  457. - ApiKeyAuth: []
  458. summary: 更改角色api权限
  459. tags:
  460. - casbin
  461. /casbin/getPolicyPathByAuthorityId:
  462. post:
  463. consumes:
  464. - application/json
  465. parameters:
  466. - description: 获取权限列表
  467. in: body
  468. name: data
  469. required: true
  470. schema:
  471. $ref: '#/definitions/api.CreateAuthorityParams'
  472. type: object
  473. produces:
  474. - application/json
  475. responses:
  476. "200":
  477. description: '{"success":true,"data":{},"msg":"获取成功"}'
  478. schema:
  479. type: string
  480. security:
  481. - ApiKeyAuth: []
  482. summary: 获取权限列表
  483. tags:
  484. - casbin
  485. /fileUploadAndDownload/deleteFile:
  486. post:
  487. parameters:
  488. - description: 传入文件里面id即可
  489. in: body
  490. name: data
  491. required: true
  492. schema:
  493. $ref: '#/definitions/dbModel.ExaFileUploadAndDownload'
  494. type: object
  495. produces:
  496. - application/json
  497. responses:
  498. "200":
  499. description: '{"success":true,"data":{},"msg":"返回成功"}'
  500. schema:
  501. type: string
  502. security:
  503. - ApiKeyAuth: []
  504. summary: 删除文件
  505. tags:
  506. - ExaFileUploadAndDownload
  507. /fileUploadAndDownload/getFileList:
  508. post:
  509. consumes:
  510. - application/json
  511. parameters:
  512. - description: 分页获取文件户列表
  513. in: body
  514. name: data
  515. required: true
  516. schema:
  517. $ref: '#/definitions/modelInterface.PageInfo'
  518. type: object
  519. produces:
  520. - application/json
  521. responses:
  522. "200":
  523. description: '{"success":true,"data":{},"msg":"获取成功"}'
  524. schema:
  525. type: string
  526. security:
  527. - ApiKeyAuth: []
  528. summary: 分页文件列表
  529. tags:
  530. - ExaFileUploadAndDownload
  531. /fileUploadAndDownload/upload:
  532. post:
  533. consumes:
  534. - multipart/form-data
  535. parameters:
  536. - description: 上传文件示例
  537. in: formData
  538. name: file
  539. required: true
  540. type: file
  541. produces:
  542. - application/json
  543. responses:
  544. "200":
  545. description: '{"success":true,"data":{},"msg":"上传成功"}'
  546. schema:
  547. type: string
  548. security:
  549. - ApiKeyAuth: []
  550. summary: 上传文件示例
  551. tags:
  552. - ExaFileUploadAndDownload
  553. /menu/addBaseMenu:
  554. post:
  555. consumes:
  556. - application/json
  557. parameters:
  558. - description: 新增菜单
  559. in: body
  560. name: data
  561. required: true
  562. schema:
  563. $ref: '#/definitions/sysModel.SysBaseMenu'
  564. type: object
  565. produces:
  566. - application/json
  567. responses:
  568. "200":
  569. description: '{"success":true,"data":{},"msg":"获取成功"}'
  570. schema:
  571. type: string
  572. security:
  573. - ApiKeyAuth: []
  574. summary: 新增菜单
  575. tags:
  576. - menu
  577. /menu/addMenuAuthority:
  578. post:
  579. consumes:
  580. - application/json
  581. parameters:
  582. - description: 增加menu和角色关联关系
  583. in: body
  584. name: data
  585. required: true
  586. schema:
  587. $ref: '#/definitions/api.AuthorityIdInfo'
  588. type: object
  589. produces:
  590. - application/json
  591. responses:
  592. "200":
  593. description: '{"success":true,"data":{},"msg":"获取成功"}'
  594. schema:
  595. type: string
  596. security:
  597. - ApiKeyAuth: []
  598. summary: 获取指定角色menu
  599. tags:
  600. - authorityAndMenu
  601. /menu/deleteBaseMenu:
  602. post:
  603. consumes:
  604. - application/json
  605. parameters:
  606. - description: 删除菜单
  607. in: body
  608. name: data
  609. required: true
  610. schema:
  611. $ref: '#/definitions/api.IdInfo'
  612. type: object
  613. produces:
  614. - application/json
  615. responses:
  616. "200":
  617. description: '{"success":true,"data":{},"msg":"获取成功"}'
  618. schema:
  619. type: string
  620. security:
  621. - ApiKeyAuth: []
  622. summary: 删除菜单
  623. tags:
  624. - menu
  625. /menu/getBaseMenuById:
  626. post:
  627. consumes:
  628. - application/json
  629. parameters:
  630. - description: 根据id获取菜单
  631. in: body
  632. name: data
  633. required: true
  634. schema:
  635. $ref: '#/definitions/api.GetById'
  636. type: object
  637. produces:
  638. - application/json
  639. responses:
  640. "200":
  641. description: '{"success":true,"data":{},"msg":"获取成功"}'
  642. schema:
  643. type: string
  644. security:
  645. - ApiKeyAuth: []
  646. summary: 根据id获取菜单
  647. tags:
  648. - menu
  649. /menu/getBaseMenuTree:
  650. post:
  651. parameters:
  652. - description: 可以什么都不填
  653. in: body
  654. name: data
  655. required: true
  656. schema:
  657. $ref: '#/definitions/api.RegistAndLoginStuct'
  658. type: object
  659. produces:
  660. - application/json
  661. responses:
  662. "200":
  663. description: '{"success":true,"data":{},"msg":"返回成功"}'
  664. schema:
  665. type: string
  666. security:
  667. - ApiKeyAuth: []
  668. summary: 获取用户动态路由
  669. tags:
  670. - authorityAndMenu
  671. /menu/getMenu:
  672. post:
  673. parameters:
  674. - description: 可以什么都不填
  675. in: body
  676. name: data
  677. required: true
  678. schema:
  679. $ref: '#/definitions/api.RegistAndLoginStuct'
  680. type: object
  681. produces:
  682. - application/json
  683. responses:
  684. "200":
  685. description: '{"success":true,"data":{},"msg":"返回成功"}'
  686. schema:
  687. type: string
  688. security:
  689. - ApiKeyAuth: []
  690. summary: 获取用户动态路由
  691. tags:
  692. - authorityAndMenu
  693. /menu/getMenuList:
  694. post:
  695. consumes:
  696. - application/json
  697. parameters:
  698. - description: 分页获取基础menu列表
  699. in: body
  700. name: data
  701. required: true
  702. schema:
  703. $ref: '#/definitions/modelInterface.PageInfo'
  704. type: object
  705. produces:
  706. - application/json
  707. responses:
  708. "200":
  709. description: '{"success":true,"data":{},"msg":"获取成功"}'
  710. schema:
  711. type: string
  712. security:
  713. - ApiKeyAuth: []
  714. summary: 分页获取基础menu列表
  715. tags:
  716. - menu
  717. /menu/updataBaseMen:
  718. post:
  719. consumes:
  720. - application/json
  721. parameters:
  722. - description: 更新菜单
  723. in: body
  724. name: data
  725. required: true
  726. schema:
  727. $ref: '#/definitions/sysModel.SysBaseMenu'
  728. type: object
  729. produces:
  730. - application/json
  731. responses:
  732. "200":
  733. description: '{"success":true,"data":{},"msg":"获取成功"}'
  734. schema:
  735. type: string
  736. security:
  737. - ApiKeyAuth: []
  738. summary: 更新菜单
  739. tags:
  740. - menu
  741. /user/changePassword:
  742. post:
  743. parameters:
  744. - description: 用户修改密码
  745. in: body
  746. name: data
  747. required: true
  748. schema:
  749. $ref: '#/definitions/api.ChangePasswordStutrc'
  750. type: object
  751. produces:
  752. - application/json
  753. responses:
  754. "200":
  755. description: '{"success":true,"data":{},"msg":"修改成功"}'
  756. schema:
  757. type: string
  758. security:
  759. - ApiKeyAuth: []
  760. summary: 用户修改密码
  761. tags:
  762. - SysUser
  763. /user/getUserList:
  764. post:
  765. consumes:
  766. - application/json
  767. parameters:
  768. - description: 分页获取用户列表
  769. in: body
  770. name: data
  771. required: true
  772. schema:
  773. $ref: '#/definitions/modelInterface.PageInfo'
  774. type: object
  775. produces:
  776. - application/json
  777. responses:
  778. "200":
  779. description: '{"success":true,"data":{},"msg":"获取成功"}'
  780. schema:
  781. type: string
  782. security:
  783. - ApiKeyAuth: []
  784. summary: 分页获取用户列表
  785. tags:
  786. - SysUser
  787. /user/setUserAuthority:
  788. post:
  789. consumes:
  790. - application/json
  791. parameters:
  792. - description: 设置用户权限
  793. in: body
  794. name: data
  795. required: true
  796. schema:
  797. $ref: '#/definitions/api.SetUserAuth'
  798. type: object
  799. produces:
  800. - application/json
  801. responses:
  802. "200":
  803. description: '{"success":true,"data":{},"msg":"修改成功"}'
  804. schema:
  805. type: string
  806. security:
  807. - ApiKeyAuth: []
  808. summary: 设置用户权限
  809. tags:
  810. - SysUser
  811. /user/uploadHeaderImg:
  812. post:
  813. consumes:
  814. - multipart/form-data
  815. parameters:
  816. - description: 用户上传头像
  817. in: formData
  818. name: headerImg
  819. required: true
  820. type: file
  821. - description: 用户上传头像
  822. in: formData
  823. name: username
  824. required: true
  825. type: string
  826. produces:
  827. - application/json
  828. responses:
  829. "200":
  830. description: '{"success":true,"data":{},"msg":"上传成功"}'
  831. schema:
  832. type: string
  833. security:
  834. - ApiKeyAuth: []
  835. summary: 用户上传头像
  836. tags:
  837. - SysUser
  838. /workflow/createWorkFlow:
  839. post:
  840. parameters:
  841. - description: 注册工作流接口
  842. in: body
  843. name: data
  844. required: true
  845. schema:
  846. $ref: '#/definitions/sysModel.SysWorkflow'
  847. type: object
  848. produces:
  849. - application/json
  850. responses:
  851. "200":
  852. description: '{"success":true,"data":{},"msg":"注册成功"}'
  853. schema:
  854. type: string
  855. summary: 注册工作流
  856. tags:
  857. - workflow
  858. securityDefinitions:
  859. ApiKeyAuth:
  860. in: header
  861. name: x-token
  862. type: apiKey
  863. swagger: "2.0"