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.

1441 lines
32 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
  1. definitions:
  2. config.Captcha:
  3. properties:
  4. imgHeight:
  5. type: integer
  6. imgWidth:
  7. type: integer
  8. keyLong:
  9. type: integer
  10. type: object
  11. config.Casbin:
  12. properties:
  13. modelPath:
  14. type: string
  15. type: object
  16. config.JWT:
  17. properties:
  18. signingKey:
  19. type: string
  20. type: object
  21. config.Log:
  22. properties:
  23. file:
  24. type: string
  25. logFile:
  26. type: boolean
  27. prefix:
  28. type: string
  29. stdout:
  30. type: string
  31. type: object
  32. config.Mysql:
  33. properties:
  34. config:
  35. type: string
  36. dbname:
  37. type: string
  38. logMode:
  39. type: boolean
  40. maxIdleConns:
  41. type: integer
  42. maxOpenConns:
  43. type: integer
  44. password:
  45. type: string
  46. path:
  47. type: string
  48. username:
  49. type: string
  50. type: object
  51. config.Qiniu:
  52. properties:
  53. accessKey:
  54. type: string
  55. secretKey:
  56. type: string
  57. type: object
  58. config.Redis:
  59. properties:
  60. addr:
  61. type: string
  62. db:
  63. type: integer
  64. password:
  65. type: string
  66. type: object
  67. config.Server:
  68. properties:
  69. captcha:
  70. $ref: '#/definitions/config.Captcha'
  71. type: object
  72. casbin:
  73. $ref: '#/definitions/config.Casbin'
  74. type: object
  75. jwt:
  76. $ref: '#/definitions/config.JWT'
  77. type: object
  78. log:
  79. $ref: '#/definitions/config.Log'
  80. type: object
  81. mysql:
  82. $ref: '#/definitions/config.Mysql'
  83. type: object
  84. qiniu:
  85. $ref: '#/definitions/config.Qiniu'
  86. type: object
  87. redis:
  88. $ref: '#/definitions/config.Redis'
  89. type: object
  90. sqlite:
  91. $ref: '#/definitions/config.Sqlite'
  92. type: object
  93. system:
  94. $ref: '#/definitions/config.System'
  95. type: object
  96. type: object
  97. config.Sqlite:
  98. properties:
  99. config:
  100. type: string
  101. logMode:
  102. type: boolean
  103. password:
  104. type: string
  105. path:
  106. type: string
  107. username:
  108. type: string
  109. type: object
  110. config.System:
  111. properties:
  112. addr:
  113. type: integer
  114. dbType:
  115. type: string
  116. env:
  117. type: string
  118. useMultipoint:
  119. type: boolean
  120. type: object
  121. model.AutoCodeStruct:
  122. properties:
  123. abbreviation:
  124. type: string
  125. fields:
  126. items:
  127. $ref: '#/definitions/model.Field'
  128. type: array
  129. packageName:
  130. type: string
  131. structName:
  132. type: string
  133. type: object
  134. model.ExaCustomer:
  135. properties:
  136. customerName:
  137. type: string
  138. customerPhoneData:
  139. type: string
  140. sysUser:
  141. $ref: '#/definitions/model.SysUser'
  142. type: object
  143. sysUserAuthorityID:
  144. type: string
  145. sysUserId:
  146. type: integer
  147. type: object
  148. model.ExaFileUploadAndDownload:
  149. properties:
  150. key:
  151. type: string
  152. name:
  153. type: string
  154. tag:
  155. type: string
  156. url:
  157. type: string
  158. type: object
  159. model.Field:
  160. properties:
  161. columnName:
  162. type: string
  163. fieldJson:
  164. type: string
  165. fieldName:
  166. type: string
  167. fieldType:
  168. type: string
  169. type: object
  170. model.SysApi:
  171. properties:
  172. apiGroup:
  173. type: string
  174. description:
  175. type: string
  176. method:
  177. type: string
  178. path:
  179. type: string
  180. type: object
  181. model.SysAuthority:
  182. properties:
  183. authorityId:
  184. type: string
  185. authorityName:
  186. type: string
  187. children:
  188. items:
  189. $ref: '#/definitions/model.SysAuthority'
  190. type: array
  191. createdAt:
  192. type: string
  193. dataAuthorityId:
  194. items:
  195. $ref: '#/definitions/model.SysAuthority'
  196. type: array
  197. deletedAt:
  198. type: string
  199. menus:
  200. items:
  201. $ref: '#/definitions/model.SysBaseMenu'
  202. type: array
  203. parentId:
  204. type: string
  205. updatedAt:
  206. type: string
  207. type: object
  208. model.SysBaseMenu:
  209. properties:
  210. authoritys:
  211. items:
  212. $ref: '#/definitions/model.SysAuthority'
  213. type: array
  214. children:
  215. items:
  216. $ref: '#/definitions/model.SysBaseMenu'
  217. type: array
  218. component:
  219. type: string
  220. hidden:
  221. type: boolean
  222. icon:
  223. type: string
  224. name:
  225. type: string
  226. parentId:
  227. type: string
  228. path:
  229. type: string
  230. sort:
  231. type: integer
  232. title:
  233. type: string
  234. type: object
  235. model.SysUser:
  236. properties:
  237. authority:
  238. $ref: '#/definitions/model.SysAuthority'
  239. type: object
  240. authorityId:
  241. type: string
  242. headerImg:
  243. type: string
  244. nickName:
  245. type: string
  246. userName:
  247. type: string
  248. uuid:
  249. type: string
  250. type: object
  251. model.SysWorkflow:
  252. properties:
  253. workflowDescription:
  254. description: 工作流描述
  255. type: string
  256. workflowName:
  257. description: 工作流英文id
  258. type: string
  259. workflowNickName:
  260. description: 工作流名称
  261. type: string
  262. workflowStep:
  263. description: 工作流步骤
  264. items:
  265. $ref: '#/definitions/model.SysWorkflowStepInfo'
  266. type: array
  267. type: object
  268. model.SysWorkflowStepInfo:
  269. properties:
  270. isEnd:
  271. description: 是否是完结流节点
  272. type: boolean
  273. isStrat:
  274. description: 是否是开始流节点
  275. type: boolean
  276. stepAuthorityID:
  277. description: 操作者级别id
  278. type: string
  279. stepName:
  280. description: 工作流名称
  281. type: string
  282. stepNo:
  283. description: 步骤id (第几步)
  284. type: number
  285. workflowID:
  286. description: 所属工作流ID
  287. type: integer
  288. type: object
  289. model.System:
  290. properties:
  291. config:
  292. $ref: '#/definitions/config.Server'
  293. type: object
  294. type: object
  295. request.AddMenuAuthorityInfo:
  296. properties:
  297. authorityId:
  298. type: string
  299. menus:
  300. items:
  301. $ref: '#/definitions/model.SysBaseMenu'
  302. type: array
  303. type: object
  304. request.AuthorityIdInfo:
  305. properties:
  306. authorityId:
  307. type: string
  308. type: object
  309. request.CasbinInReceive:
  310. properties:
  311. authorityId:
  312. type: string
  313. casbinInfos:
  314. items:
  315. $ref: '#/definitions/request.CasbinInfo'
  316. type: array
  317. type: object
  318. request.CasbinInfo:
  319. properties:
  320. method:
  321. type: string
  322. path:
  323. type: string
  324. type: object
  325. request.ChangePasswordStruct:
  326. properties:
  327. newPassword:
  328. type: string
  329. password:
  330. type: string
  331. username:
  332. type: string
  333. type: object
  334. request.GetById:
  335. properties:
  336. id:
  337. type: number
  338. type: object
  339. request.PageInfo:
  340. properties:
  341. page:
  342. type: integer
  343. pageSize:
  344. type: integer
  345. type: object
  346. request.RegisterAndLoginStruct:
  347. properties:
  348. captcha:
  349. type: string
  350. captchaId:
  351. type: string
  352. password:
  353. type: string
  354. username:
  355. type: string
  356. type: object
  357. request.SearchApiParams:
  358. properties:
  359. apiGroup:
  360. type: string
  361. desc:
  362. type: boolean
  363. description:
  364. type: string
  365. method:
  366. type: string
  367. orderKey:
  368. type: string
  369. page:
  370. type: integer
  371. pageSize:
  372. type: integer
  373. path:
  374. type: string
  375. type: object
  376. request.SetUserAuth:
  377. properties:
  378. authorityId:
  379. type: string
  380. uuid:
  381. type: string
  382. type: object
  383. info:
  384. contact: {}
  385. license: {}
  386. paths:
  387. /api/createApi:
  388. post:
  389. consumes:
  390. - application/json
  391. parameters:
  392. - description: 创建api
  393. in: body
  394. name: data
  395. required: true
  396. schema:
  397. $ref: '#/definitions/model.SysApi'
  398. type: object
  399. produces:
  400. - application/json
  401. responses:
  402. "200":
  403. description: '{"success":true,"data":{},"msg":"获取成功"}'
  404. schema:
  405. type: string
  406. security:
  407. - ApiKeyAuth: []
  408. summary: 创建基础api
  409. tags:
  410. - SysApi
  411. /api/deleteApi:
  412. post:
  413. consumes:
  414. - application/json
  415. parameters:
  416. - description: 删除api
  417. in: body
  418. name: data
  419. required: true
  420. schema:
  421. $ref: '#/definitions/model.SysApi'
  422. type: object
  423. produces:
  424. - application/json
  425. responses:
  426. "200":
  427. description: '{"success":true,"data":{},"msg":"获取成功"}'
  428. schema:
  429. type: string
  430. security:
  431. - ApiKeyAuth: []
  432. summary: 删除指定api
  433. tags:
  434. - SysApi
  435. /api/getAllApis:
  436. post:
  437. consumes:
  438. - application/json
  439. produces:
  440. - application/json
  441. responses:
  442. "200":
  443. description: '{"success":true,"data":{},"msg":"获取成功"}'
  444. schema:
  445. type: string
  446. security:
  447. - ApiKeyAuth: []
  448. summary: 获取所有的Api 不分页
  449. tags:
  450. - SysApi
  451. /api/getApiById:
  452. post:
  453. consumes:
  454. - application/json
  455. parameters:
  456. - description: 根据id获取api
  457. in: body
  458. name: data
  459. required: true
  460. schema:
  461. $ref: '#/definitions/request.GetById'
  462. type: object
  463. produces:
  464. - application/json
  465. responses:
  466. "200":
  467. description: '{"success":true,"data":{},"msg":"获取成功"}'
  468. schema:
  469. type: string
  470. security:
  471. - ApiKeyAuth: []
  472. summary: 根据id获取api
  473. tags:
  474. - SysApi
  475. /api/getApiList:
  476. post:
  477. consumes:
  478. - application/json
  479. parameters:
  480. - description: 分页获取API列表
  481. in: body
  482. name: data
  483. required: true
  484. schema:
  485. $ref: '#/definitions/request.SearchApiParams'
  486. type: object
  487. produces:
  488. - application/json
  489. responses:
  490. "200":
  491. description: '{"success":true,"data":{},"msg":"获取成功"}'
  492. schema:
  493. type: string
  494. security:
  495. - ApiKeyAuth: []
  496. summary: 分页获取API列表
  497. tags:
  498. - SysApi
  499. /api/updateApi:
  500. post:
  501. consumes:
  502. - application/json
  503. parameters:
  504. - description: 创建api
  505. in: body
  506. name: data
  507. required: true
  508. schema:
  509. $ref: '#/definitions/model.SysApi'
  510. type: object
  511. produces:
  512. - application/json
  513. responses:
  514. "200":
  515. description: '{"success":true,"data":{},"msg":"获取成功"}'
  516. schema:
  517. type: string
  518. security:
  519. - ApiKeyAuth: []
  520. summary: 创建基础api
  521. tags:
  522. - SysApi
  523. /authority/createAuthority:
  524. post:
  525. consumes:
  526. - application/json
  527. parameters:
  528. - description: 创建角色
  529. in: body
  530. name: data
  531. required: true
  532. schema:
  533. $ref: '#/definitions/model.SysAuthority'
  534. type: object
  535. produces:
  536. - application/json
  537. responses:
  538. "200":
  539. description: '{"success":true,"data":{},"msg":"获取成功"}'
  540. schema:
  541. type: string
  542. security:
  543. - ApiKeyAuth: []
  544. summary: 创建角色
  545. tags:
  546. - authority
  547. /authority/deleteAuthority:
  548. post:
  549. consumes:
  550. - application/json
  551. parameters:
  552. - description: 删除角色
  553. in: body
  554. name: data
  555. required: true
  556. schema:
  557. $ref: '#/definitions/model.SysAuthority'
  558. type: object
  559. produces:
  560. - application/json
  561. responses:
  562. "200":
  563. description: '{"success":true,"data":{},"msg":"获取成功"}'
  564. schema:
  565. type: string
  566. security:
  567. - ApiKeyAuth: []
  568. summary: 删除角色
  569. tags:
  570. - authority
  571. /authority/getAuthorityList:
  572. post:
  573. consumes:
  574. - application/json
  575. parameters:
  576. - description: 分页获取用户列表
  577. in: body
  578. name: data
  579. required: true
  580. schema:
  581. $ref: '#/definitions/request.PageInfo'
  582. type: object
  583. produces:
  584. - application/json
  585. responses:
  586. "200":
  587. description: '{"success":true,"data":{},"msg":"获取成功"}'
  588. schema:
  589. type: string
  590. security:
  591. - ApiKeyAuth: []
  592. summary: 分页获取角色列表
  593. tags:
  594. - authority
  595. /authority/setDataAuthority:
  596. post:
  597. consumes:
  598. - application/json
  599. parameters:
  600. - description: 设置角色资源权限
  601. in: body
  602. name: data
  603. required: true
  604. schema:
  605. $ref: '#/definitions/model.SysAuthority'
  606. type: object
  607. produces:
  608. - application/json
  609. responses:
  610. "200":
  611. description: '{"success":true,"data":{},"msg":"设置成功"}'
  612. schema:
  613. type: string
  614. security:
  615. - ApiKeyAuth: []
  616. summary: 设置角色资源权限
  617. tags:
  618. - authority
  619. /autoCode/createTemp:
  620. post:
  621. consumes:
  622. - application/json
  623. parameters:
  624. - description: 创建自动代码
  625. in: body
  626. name: data
  627. required: true
  628. schema:
  629. $ref: '#/definitions/model.AutoCodeStruct'
  630. type: object
  631. produces:
  632. - application/json
  633. responses:
  634. "200":
  635. description: '{"success":true,"data":{},"msg":"创建成功"}'
  636. schema:
  637. type: string
  638. security:
  639. - ApiKeyAuth: []
  640. summary: 自动代码模板
  641. tags:
  642. - SysApi
  643. /base/captcha:
  644. post:
  645. consumes:
  646. - application/json
  647. produces:
  648. - application/json
  649. responses:
  650. "200":
  651. description: '{"success":true,"data":{},"msg":"获取成功"}'
  652. schema:
  653. type: string
  654. security:
  655. - ApiKeyAuth: []
  656. summary: 生成验证码
  657. tags:
  658. - base
  659. /base/captcha/:
  660. get:
  661. consumes:
  662. - application/json
  663. produces:
  664. - application/json
  665. responses:
  666. "200":
  667. description: '{"success":true,"data":{},"msg":"获取成功"}'
  668. schema:
  669. type: string
  670. security:
  671. - ApiKeyAuth: []
  672. summary: 生成验证码图片路径
  673. tags:
  674. - base
  675. /base/login:
  676. post:
  677. parameters:
  678. - description: 用户登录接口
  679. in: body
  680. name: data
  681. required: true
  682. schema:
  683. $ref: '#/definitions/request.RegisterAndLoginStruct'
  684. type: object
  685. produces:
  686. - application/json
  687. responses:
  688. "200":
  689. description: '{"success":true,"data":{},"msg":"登陆成功"}'
  690. schema:
  691. type: string
  692. summary: 用户登录
  693. tags:
  694. - Base
  695. /base/register:
  696. post:
  697. parameters:
  698. - description: 用户注册接口
  699. in: body
  700. name: data
  701. required: true
  702. schema:
  703. $ref: '#/definitions/model.SysUser'
  704. type: object
  705. produces:
  706. - application/json
  707. responses:
  708. "200":
  709. description: '{"success":true,"data":{},"msg":"注册成功"}'
  710. schema:
  711. type: string
  712. summary: 用户注册账号
  713. tags:
  714. - Base
  715. /casbin/CasbinTest:
  716. get:
  717. consumes:
  718. - application/json
  719. parameters:
  720. - description: 获取权限列表
  721. in: body
  722. name: data
  723. required: true
  724. schema:
  725. $ref: '#/definitions/request.CasbinInReceive'
  726. type: object
  727. produces:
  728. - application/json
  729. responses:
  730. "200":
  731. description: '{"success":true,"data":{},"msg":"获取成功"}'
  732. schema:
  733. type: string
  734. security:
  735. - ApiKeyAuth: []
  736. summary: casb RBAC RESTFUL测试路由
  737. tags:
  738. - casbin
  739. /casbin/UpdateCasbin:
  740. post:
  741. consumes:
  742. - application/json
  743. parameters:
  744. - description: 更改角色api权限
  745. in: body
  746. name: data
  747. required: true
  748. schema:
  749. $ref: '#/definitions/request.CasbinInReceive'
  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: 更改角色api权限
  761. tags:
  762. - casbin
  763. /casbin/getPolicyPathByAuthorityId:
  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/request.CasbinInReceive'
  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. - casbin
  787. /customer/customer:
  788. delete:
  789. consumes:
  790. - application/json
  791. parameters:
  792. - description: 删除客户
  793. in: body
  794. name: data
  795. required: true
  796. schema:
  797. $ref: '#/definitions/model.ExaCustomer'
  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. - SysApi
  811. get:
  812. consumes:
  813. - application/json
  814. parameters:
  815. - description: 获取单一客户信息
  816. in: body
  817. name: data
  818. required: true
  819. schema:
  820. $ref: '#/definitions/model.ExaCustomer'
  821. type: object
  822. produces:
  823. - application/json
  824. responses:
  825. "200":
  826. description: '{"success":true,"data":{},"msg":"获取成功"}'
  827. schema:
  828. type: string
  829. security:
  830. - ApiKeyAuth: []
  831. summary: 获取单一客户信息
  832. tags:
  833. - SysApi
  834. post:
  835. consumes:
  836. - application/json
  837. parameters:
  838. - description: 创建客户
  839. in: body
  840. name: data
  841. required: true
  842. schema:
  843. $ref: '#/definitions/model.ExaCustomer'
  844. type: object
  845. produces:
  846. - application/json
  847. responses:
  848. "200":
  849. description: '{"success":true,"data":{},"msg":"获取成功"}'
  850. schema:
  851. type: string
  852. security:
  853. - ApiKeyAuth: []
  854. summary: 创建客户
  855. tags:
  856. - SysApi
  857. put:
  858. consumes:
  859. - application/json
  860. parameters:
  861. - description: 创建客户
  862. in: body
  863. name: data
  864. required: true
  865. schema:
  866. $ref: '#/definitions/model.ExaCustomer'
  867. type: object
  868. produces:
  869. - application/json
  870. responses:
  871. "200":
  872. description: '{"success":true,"data":{},"msg":"获取成功"}'
  873. schema:
  874. type: string
  875. security:
  876. - ApiKeyAuth: []
  877. summary: 更新客户信息
  878. tags:
  879. - SysApi
  880. /customer/customerList:
  881. get:
  882. consumes:
  883. - application/json
  884. parameters:
  885. - description: 获取权限客户列表
  886. in: body
  887. name: data
  888. required: true
  889. schema:
  890. $ref: '#/definitions/request.PageInfo'
  891. type: object
  892. produces:
  893. - application/json
  894. responses:
  895. "200":
  896. description: '{"success":true,"data":{},"msg":"获取成功"}'
  897. schema:
  898. type: string
  899. security:
  900. - ApiKeyAuth: []
  901. summary: 获取权限客户列表
  902. tags:
  903. - SysApi
  904. /fileUploadAndDownload/breakpointContinue:
  905. post:
  906. consumes:
  907. - multipart/form-data
  908. parameters:
  909. - description: an example for breakpoint resume, 断点续传示例
  910. in: formData
  911. name: file
  912. required: true
  913. type: file
  914. produces:
  915. - application/json
  916. responses:
  917. "200":
  918. description: '{"success":true,"data":{},"msg":"上传成功"}'
  919. schema:
  920. type: string
  921. security:
  922. - ApiKeyAuth: []
  923. summary: 断点续传到服务器
  924. tags:
  925. - ExaFileUploadAndDownload
  926. /fileUploadAndDownload/deleteFile:
  927. post:
  928. parameters:
  929. - description: 传入文件里面id即可
  930. in: body
  931. name: data
  932. required: true
  933. schema:
  934. $ref: '#/definitions/model.ExaFileUploadAndDownload'
  935. type: object
  936. produces:
  937. - application/json
  938. responses:
  939. "200":
  940. description: '{"success":true,"data":{},"msg":"返回成功"}'
  941. schema:
  942. type: string
  943. security:
  944. - ApiKeyAuth: []
  945. summary: 删除文件
  946. tags:
  947. - ExaFileUploadAndDownload
  948. /fileUploadAndDownload/findFile:
  949. post:
  950. consumes:
  951. - multipart/form-data
  952. parameters:
  953. - description: 上传文件完成
  954. in: formData
  955. name: file
  956. required: true
  957. type: file
  958. produces:
  959. - application/json
  960. responses:
  961. "200":
  962. description: '{"success":true,"data":{},"msg":"file uploaded, 文件创建成功"}'
  963. schema:
  964. type: string
  965. security:
  966. - ApiKeyAuth: []
  967. summary: 查找文件
  968. tags:
  969. - ExaFileUploadAndDownload
  970. /fileUploadAndDownload/getFileList:
  971. post:
  972. consumes:
  973. - application/json
  974. parameters:
  975. - description: 分页获取文件户列表
  976. in: body
  977. name: data
  978. required: true
  979. schema:
  980. $ref: '#/definitions/request.PageInfo'
  981. type: object
  982. produces:
  983. - application/json
  984. responses:
  985. "200":
  986. description: '{"success":true,"data":{},"msg":"获取成功"}'
  987. schema:
  988. type: string
  989. security:
  990. - ApiKeyAuth: []
  991. summary: 分页文件列表
  992. tags:
  993. - ExaFileUploadAndDownload
  994. /fileUploadAndDownload/removeChunk:
  995. post:
  996. consumes:
  997. - multipart/form-data
  998. parameters:
  999. - description: 删除缓存切片
  1000. in: formData
  1001. name: file
  1002. required: true
  1003. type: file
  1004. produces:
  1005. - application/json
  1006. responses:
  1007. "200":
  1008. description: '{"success":true,"data":{},"msg":"查找成功"}'
  1009. schema:
  1010. type: string
  1011. security:
  1012. - ApiKeyAuth: []
  1013. summary: 删除切片
  1014. tags:
  1015. - ExaFileUploadAndDownload
  1016. /fileUploadAndDownload/upload:
  1017. post:
  1018. consumes:
  1019. - multipart/form-data
  1020. parameters:
  1021. - description: 上传文件示例
  1022. in: formData
  1023. name: file
  1024. required: true
  1025. type: file
  1026. produces:
  1027. - application/json
  1028. responses:
  1029. "200":
  1030. description: '{"success":true,"data":{},"msg":"上传成功"}'
  1031. schema:
  1032. type: string
  1033. security:
  1034. - ApiKeyAuth: []
  1035. summary: 上传文件示例
  1036. tags:
  1037. - ExaFileUploadAndDownload
  1038. /jwt/jsonInBlacklist:
  1039. post:
  1040. consumes:
  1041. - application/json
  1042. produces:
  1043. - application/json
  1044. responses:
  1045. "200":
  1046. description: '{"success":true,"data":{},"msg":"拉黑成功"}'
  1047. schema:
  1048. type: string
  1049. security:
  1050. - ApiKeyAuth: []
  1051. summary: jwt加入黑名单
  1052. tags:
  1053. - jwt
  1054. /menu/GetMenuAuthority:
  1055. post:
  1056. consumes:
  1057. - application/json
  1058. parameters:
  1059. - description: 增加menu和角色关联关系
  1060. in: body
  1061. name: data
  1062. required: true
  1063. schema:
  1064. $ref: '#/definitions/request.AuthorityIdInfo'
  1065. type: object
  1066. produces:
  1067. - application/json
  1068. responses:
  1069. "200":
  1070. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1071. schema:
  1072. type: string
  1073. security:
  1074. - ApiKeyAuth: []
  1075. summary: 获取指定角色menu
  1076. tags:
  1077. - authorityAndMenu
  1078. /menu/addBaseMenu:
  1079. post:
  1080. consumes:
  1081. - application/json
  1082. parameters:
  1083. - description: 新增菜单
  1084. in: body
  1085. name: data
  1086. required: true
  1087. schema:
  1088. $ref: '#/definitions/model.SysBaseMenu'
  1089. type: object
  1090. produces:
  1091. - application/json
  1092. responses:
  1093. "200":
  1094. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1095. schema:
  1096. type: string
  1097. security:
  1098. - ApiKeyAuth: []
  1099. summary: 新增菜单
  1100. tags:
  1101. - menu
  1102. /menu/addMenuAuthority:
  1103. post:
  1104. consumes:
  1105. - application/json
  1106. parameters:
  1107. - description: 增加menu和角色关联关系
  1108. in: body
  1109. name: data
  1110. required: true
  1111. schema:
  1112. $ref: '#/definitions/request.AddMenuAuthorityInfo'
  1113. type: object
  1114. produces:
  1115. - application/json
  1116. responses:
  1117. "200":
  1118. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1119. schema:
  1120. type: string
  1121. security:
  1122. - ApiKeyAuth: []
  1123. summary: 增加menu和角色关联关系
  1124. tags:
  1125. - authorityAndMenu
  1126. /menu/deleteBaseMenu:
  1127. post:
  1128. consumes:
  1129. - application/json
  1130. parameters:
  1131. - description: 删除菜单
  1132. in: body
  1133. name: data
  1134. required: true
  1135. schema:
  1136. $ref: '#/definitions/request.GetById'
  1137. type: object
  1138. produces:
  1139. - application/json
  1140. responses:
  1141. "200":
  1142. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1143. schema:
  1144. type: string
  1145. security:
  1146. - ApiKeyAuth: []
  1147. summary: 删除菜单
  1148. tags:
  1149. - menu
  1150. /menu/getBaseMenuById:
  1151. post:
  1152. consumes:
  1153. - application/json
  1154. parameters:
  1155. - description: 根据id获取菜单
  1156. in: body
  1157. name: data
  1158. required: true
  1159. schema:
  1160. $ref: '#/definitions/request.GetById'
  1161. type: object
  1162. produces:
  1163. - application/json
  1164. responses:
  1165. "200":
  1166. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1167. schema:
  1168. type: string
  1169. security:
  1170. - ApiKeyAuth: []
  1171. summary: 根据id获取菜单
  1172. tags:
  1173. - menu
  1174. /menu/getBaseMenuTree:
  1175. post:
  1176. parameters:
  1177. - description: 可以什么都不填
  1178. in: body
  1179. name: data
  1180. required: true
  1181. schema:
  1182. $ref: '#/definitions/request.RegisterAndLoginStruct'
  1183. type: object
  1184. produces:
  1185. - application/json
  1186. responses:
  1187. "200":
  1188. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1189. schema:
  1190. type: string
  1191. security:
  1192. - ApiKeyAuth: []
  1193. summary: 获取用户动态路由
  1194. tags:
  1195. - authorityAndMenu
  1196. /menu/getMenu:
  1197. post:
  1198. parameters:
  1199. - description: 可以什么都不填
  1200. in: body
  1201. name: data
  1202. required: true
  1203. schema:
  1204. $ref: '#/definitions/request.RegisterAndLoginStruct'
  1205. type: object
  1206. produces:
  1207. - application/json
  1208. responses:
  1209. "200":
  1210. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1211. schema:
  1212. type: string
  1213. security:
  1214. - ApiKeyAuth: []
  1215. summary: 获取用户动态路由
  1216. tags:
  1217. - authorityAndMenu
  1218. /menu/getMenuList:
  1219. post:
  1220. consumes:
  1221. - application/json
  1222. parameters:
  1223. - description: 分页获取基础menu列表
  1224. in: body
  1225. name: data
  1226. required: true
  1227. schema:
  1228. $ref: '#/definitions/request.PageInfo'
  1229. type: object
  1230. produces:
  1231. - application/json
  1232. responses:
  1233. "200":
  1234. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1235. schema:
  1236. type: string
  1237. security:
  1238. - ApiKeyAuth: []
  1239. summary: 分页获取基础menu列表
  1240. tags:
  1241. - menu
  1242. /menu/updateBaseMenu:
  1243. post:
  1244. consumes:
  1245. - application/json
  1246. parameters:
  1247. - description: 更新菜单
  1248. in: body
  1249. name: data
  1250. required: true
  1251. schema:
  1252. $ref: '#/definitions/model.SysBaseMenu'
  1253. type: object
  1254. produces:
  1255. - application/json
  1256. responses:
  1257. "200":
  1258. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1259. schema:
  1260. type: string
  1261. security:
  1262. - ApiKeyAuth: []
  1263. summary: 更新菜单
  1264. tags:
  1265. - menu
  1266. /system/ReloadSystem:
  1267. post:
  1268. parameters:
  1269. - description: 设置配置文件内容
  1270. in: body
  1271. name: data
  1272. required: true
  1273. schema:
  1274. $ref: '#/definitions/model.System'
  1275. type: object
  1276. produces:
  1277. - application/json
  1278. responses:
  1279. "200":
  1280. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1281. schema:
  1282. type: string
  1283. security:
  1284. - ApiKeyAuth: []
  1285. summary: 设置配置文件内容
  1286. tags:
  1287. - system
  1288. /system/getSystemConfig:
  1289. post:
  1290. produces:
  1291. - application/json
  1292. responses:
  1293. "200":
  1294. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1295. schema:
  1296. type: string
  1297. security:
  1298. - ApiKeyAuth: []
  1299. summary: 获取配置文件内容
  1300. tags:
  1301. - system
  1302. /system/setSystemConfig:
  1303. post:
  1304. parameters:
  1305. - description: 设置配置文件内容
  1306. in: body
  1307. name: data
  1308. required: true
  1309. schema:
  1310. $ref: '#/definitions/model.System'
  1311. type: object
  1312. produces:
  1313. - application/json
  1314. responses:
  1315. "200":
  1316. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1317. schema:
  1318. type: string
  1319. security:
  1320. - ApiKeyAuth: []
  1321. summary: 设置配置文件内容
  1322. tags:
  1323. - system
  1324. /user/changePassword:
  1325. put:
  1326. parameters:
  1327. - description: 用户修改密码
  1328. in: body
  1329. name: data
  1330. required: true
  1331. schema:
  1332. $ref: '#/definitions/request.ChangePasswordStruct'
  1333. type: object
  1334. produces:
  1335. - application/json
  1336. responses:
  1337. "200":
  1338. description: '{"success":true,"data":{},"msg":"修改成功"}'
  1339. schema:
  1340. type: string
  1341. security:
  1342. - ApiKeyAuth: []
  1343. summary: 用户修改密码
  1344. tags:
  1345. - SysUser
  1346. /user/getUserList:
  1347. post:
  1348. consumes:
  1349. - application/json
  1350. parameters:
  1351. - description: 分页获取用户列表
  1352. in: body
  1353. name: data
  1354. required: true
  1355. schema:
  1356. $ref: '#/definitions/request.PageInfo'
  1357. type: object
  1358. produces:
  1359. - application/json
  1360. responses:
  1361. "200":
  1362. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1363. schema:
  1364. type: string
  1365. security:
  1366. - ApiKeyAuth: []
  1367. summary: 分页获取用户列表
  1368. tags:
  1369. - SysUser
  1370. /user/setUserAuthority:
  1371. post:
  1372. consumes:
  1373. - application/json
  1374. parameters:
  1375. - description: 设置用户权限
  1376. in: body
  1377. name: data
  1378. required: true
  1379. schema:
  1380. $ref: '#/definitions/request.SetUserAuth'
  1381. type: object
  1382. produces:
  1383. - application/json
  1384. responses:
  1385. "200":
  1386. description: '{"success":true,"data":{},"msg":"修改成功"}'
  1387. schema:
  1388. type: string
  1389. security:
  1390. - ApiKeyAuth: []
  1391. summary: 设置用户权限
  1392. tags:
  1393. - SysUser
  1394. /user/uploadHeaderImg:
  1395. post:
  1396. consumes:
  1397. - multipart/form-data
  1398. parameters:
  1399. - description: 用户上传头像
  1400. in: formData
  1401. name: headerImg
  1402. required: true
  1403. type: file
  1404. - description: 用户上传头像
  1405. in: formData
  1406. name: username
  1407. required: true
  1408. type: string
  1409. produces:
  1410. - application/json
  1411. responses:
  1412. "200":
  1413. description: '{"success":true,"data":{},"msg":"上传成功"}'
  1414. schema:
  1415. type: string
  1416. security:
  1417. - ApiKeyAuth: []
  1418. summary: 用户上传头像
  1419. tags:
  1420. - SysUser
  1421. /workflow/createWorkFlow:
  1422. post:
  1423. parameters:
  1424. - description: 注册工作流接口
  1425. in: body
  1426. name: data
  1427. required: true
  1428. schema:
  1429. $ref: '#/definitions/model.SysWorkflow'
  1430. type: object
  1431. produces:
  1432. - application/json
  1433. responses:
  1434. "200":
  1435. description: '{"success":true,"data":{},"msg":"注册成功"}'
  1436. schema:
  1437. type: string
  1438. summary: 注册工作流
  1439. tags:
  1440. - workflow
  1441. swagger: "2.0"