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.

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