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.

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