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.

1341 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
  1. basePath: /
  2. definitions:
  3. api.AddMenuAuthorityInfo:
  4. properties:
  5. authorityId:
  6. type: string
  7. menus:
  8. items:
  9. $ref: '#/definitions/sysModel.SysBaseMenu'
  10. type: array
  11. type: object
  12. api.AuthorityIdInfo:
  13. properties:
  14. authorityId:
  15. type: string
  16. type: object
  17. api.ChangePasswordStutrc:
  18. properties:
  19. newPassword:
  20. type: string
  21. password:
  22. type: string
  23. username:
  24. type: string
  25. type: object
  26. api.CreateApiParams:
  27. properties:
  28. description:
  29. type: string
  30. path:
  31. type: string
  32. type: object
  33. api.CreateAuthorityParams:
  34. properties:
  35. authorityId:
  36. type: string
  37. authorityName:
  38. type: string
  39. type: object
  40. api.DeleteAuthorityPatams:
  41. properties:
  42. authorityId:
  43. type: integer
  44. type: object
  45. api.GetById:
  46. properties:
  47. id:
  48. type: number
  49. type: object
  50. api.IdInfo:
  51. properties:
  52. id:
  53. type: number
  54. type: object
  55. api.RegistAndLoginStuct:
  56. properties:
  57. 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. modelInterface.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/modelInterface.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/modelInterface.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/updataApi:
  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/modelInterface.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. parameters:
  548. - description: 生成验证码
  549. in: body
  550. name: data
  551. required: true
  552. schema:
  553. $ref: '#/definitions/modelInterface.PageInfo'
  554. type: object
  555. produces:
  556. - application/json
  557. responses:
  558. "200":
  559. description: '{"success":true,"data":{},"msg":"获取成功"}'
  560. schema:
  561. type: string
  562. security:
  563. - ApiKeyAuth: []
  564. summary: 生成验证码
  565. tags:
  566. - base
  567. /base/captcha/:
  568. get:
  569. consumes:
  570. - application/json
  571. parameters:
  572. - description: 生成验证码图片路径
  573. in: body
  574. name: data
  575. required: true
  576. schema:
  577. $ref: '#/definitions/modelInterface.PageInfo'
  578. type: object
  579. produces:
  580. - application/json
  581. responses:
  582. "200":
  583. description: '{"success":true,"data":{},"msg":"获取成功"}'
  584. schema:
  585. type: string
  586. security:
  587. - ApiKeyAuth: []
  588. summary: 生成验证码图片路径
  589. tags:
  590. - base
  591. /base/login:
  592. post:
  593. parameters:
  594. - description: 用户登录接口
  595. in: body
  596. name: data
  597. required: true
  598. schema:
  599. $ref: '#/definitions/api.RegistAndLoginStuct'
  600. type: object
  601. produces:
  602. - application/json
  603. responses:
  604. "200":
  605. description: '{"success":true,"data":{},"msg":"登陆成功"}'
  606. schema:
  607. type: string
  608. summary: 用户登录
  609. tags:
  610. - Base
  611. /base/regist:
  612. post:
  613. parameters:
  614. - description: 用户注册接口
  615. in: body
  616. name: data
  617. required: true
  618. schema:
  619. $ref: '#/definitions/sysModel.SysUser'
  620. type: object
  621. produces:
  622. - application/json
  623. responses:
  624. "200":
  625. description: '{"success":true,"data":{},"msg":"注册成功"}'
  626. schema:
  627. type: string
  628. summary: 用户注册账号
  629. tags:
  630. - Base
  631. /casbin/CasbinTest:
  632. get:
  633. consumes:
  634. - application/json
  635. parameters:
  636. - description: 获取权限列表
  637. in: body
  638. name: data
  639. required: true
  640. schema:
  641. $ref: '#/definitions/api.CreateAuthorityParams'
  642. type: object
  643. produces:
  644. - application/json
  645. responses:
  646. "200":
  647. description: '{"success":true,"data":{},"msg":"获取成功"}'
  648. schema:
  649. type: string
  650. security:
  651. - ApiKeyAuth: []
  652. summary: casb RBAC RESTFUL测试路由
  653. tags:
  654. - casbin
  655. /casbin/casbinPUpdata:
  656. post:
  657. consumes:
  658. - application/json
  659. parameters:
  660. - description: 更改角色api权限
  661. in: body
  662. name: data
  663. required: true
  664. schema:
  665. $ref: '#/definitions/sysModel.CasbinInReceive'
  666. type: object
  667. produces:
  668. - application/json
  669. responses:
  670. "200":
  671. description: '{"success":true,"data":{},"msg":"获取成功"}'
  672. schema:
  673. type: string
  674. security:
  675. - ApiKeyAuth: []
  676. summary: 更改角色api权限
  677. tags:
  678. - casbin
  679. /casbin/getPolicyPathByAuthorityId:
  680. post:
  681. consumes:
  682. - application/json
  683. parameters:
  684. - description: 获取权限列表
  685. in: body
  686. name: data
  687. required: true
  688. schema:
  689. $ref: '#/definitions/api.CreateAuthorityParams'
  690. type: object
  691. produces:
  692. - application/json
  693. responses:
  694. "200":
  695. description: '{"success":true,"data":{},"msg":"获取成功"}'
  696. schema:
  697. type: string
  698. security:
  699. - ApiKeyAuth: []
  700. summary: 获取权限列表
  701. tags:
  702. - casbin
  703. /customer/createExaCustomer:
  704. post:
  705. consumes:
  706. - application/json
  707. parameters:
  708. - description: 创建客户
  709. in: body
  710. name: data
  711. required: true
  712. schema:
  713. $ref: '#/definitions/dbModel.ExaCustomer'
  714. type: object
  715. produces:
  716. - application/json
  717. responses:
  718. "200":
  719. description: '{"success":true,"data":{},"msg":"获取成功"}'
  720. schema:
  721. type: string
  722. security:
  723. - ApiKeyAuth: []
  724. summary: 创建客户
  725. tags:
  726. - SysApi
  727. /customer/deleteExaCustomer:
  728. post:
  729. consumes:
  730. - application/json
  731. parameters:
  732. - description: 删除客户
  733. in: body
  734. name: data
  735. required: true
  736. schema:
  737. $ref: '#/definitions/dbModel.ExaCustomer'
  738. type: object
  739. produces:
  740. - application/json
  741. responses:
  742. "200":
  743. description: '{"success":true,"data":{},"msg":"获取成功"}'
  744. schema:
  745. type: string
  746. security:
  747. - ApiKeyAuth: []
  748. summary: 删除客户
  749. tags:
  750. - SysApi
  751. /customer/getExaCustomer:
  752. post:
  753. consumes:
  754. - application/json
  755. parameters:
  756. - description: 获取单一客户信息
  757. in: body
  758. name: data
  759. required: true
  760. schema:
  761. $ref: '#/definitions/dbModel.ExaCustomer'
  762. type: object
  763. produces:
  764. - application/json
  765. responses:
  766. "200":
  767. description: '{"success":true,"data":{},"msg":"获取成功"}'
  768. schema:
  769. type: string
  770. security:
  771. - ApiKeyAuth: []
  772. summary: 获取单一客户信息
  773. tags:
  774. - SysApi
  775. /customer/getExaCustomerList:
  776. post:
  777. consumes:
  778. - application/json
  779. parameters:
  780. - description: 获取权限客户列表
  781. in: body
  782. name: data
  783. required: true
  784. schema:
  785. $ref: '#/definitions/modelInterface.PageInfo'
  786. type: object
  787. produces:
  788. - application/json
  789. responses:
  790. "200":
  791. description: '{"success":true,"data":{},"msg":"获取成功"}'
  792. schema:
  793. type: string
  794. security:
  795. - ApiKeyAuth: []
  796. summary: 获取权限客户列表
  797. tags:
  798. - SysApi
  799. /customer/updataExaCustomer:
  800. post:
  801. consumes:
  802. - application/json
  803. parameters:
  804. - description: 创建客户
  805. in: body
  806. name: data
  807. required: true
  808. schema:
  809. $ref: '#/definitions/dbModel.ExaCustomer'
  810. type: object
  811. produces:
  812. - application/json
  813. responses:
  814. "200":
  815. description: '{"success":true,"data":{},"msg":"获取成功"}'
  816. schema:
  817. type: string
  818. security:
  819. - ApiKeyAuth: []
  820. summary: 更新客户信息
  821. tags:
  822. - SysApi
  823. /fileUploadAndDownload/breakpointContinue:
  824. post:
  825. consumes:
  826. - multipart/form-data
  827. parameters:
  828. - description: 断点续传示例
  829. in: formData
  830. name: file
  831. required: true
  832. type: file
  833. produces:
  834. - application/json
  835. responses:
  836. "200":
  837. description: '{"success":true,"data":{},"msg":"上传成功"}'
  838. schema:
  839. type: string
  840. security:
  841. - ApiKeyAuth: []
  842. summary: 断点续传到服务器
  843. tags:
  844. - ExaFileUploadAndDownload
  845. /fileUploadAndDownload/deleteFile:
  846. post:
  847. parameters:
  848. - description: 传入文件里面id即可
  849. in: body
  850. name: data
  851. required: true
  852. schema:
  853. $ref: '#/definitions/dbModel.ExaFileUploadAndDownload'
  854. type: object
  855. produces:
  856. - application/json
  857. responses:
  858. "200":
  859. description: '{"success":true,"data":{},"msg":"返回成功"}'
  860. schema:
  861. type: string
  862. security:
  863. - ApiKeyAuth: []
  864. summary: 删除文件
  865. tags:
  866. - ExaFileUploadAndDownload
  867. /fileUploadAndDownload/findFile:
  868. post:
  869. consumes:
  870. - multipart/form-data
  871. parameters:
  872. - description: 查找文件
  873. in: formData
  874. name: file
  875. required: true
  876. type: file
  877. produces:
  878. - application/json
  879. responses:
  880. "200":
  881. description: '{"success":true,"data":{},"msg":"查找成功"}'
  882. schema:
  883. type: string
  884. security:
  885. - ApiKeyAuth: []
  886. summary: 查找文件
  887. tags:
  888. - ExaFileUploadAndDownload
  889. /fileUploadAndDownload/getFileList:
  890. post:
  891. consumes:
  892. - application/json
  893. parameters:
  894. - description: 分页获取文件户列表
  895. in: body
  896. name: data
  897. required: true
  898. schema:
  899. $ref: '#/definitions/modelInterface.PageInfo'
  900. type: object
  901. produces:
  902. - application/json
  903. responses:
  904. "200":
  905. description: '{"success":true,"data":{},"msg":"获取成功"}'
  906. schema:
  907. type: string
  908. security:
  909. - ApiKeyAuth: []
  910. summary: 分页文件列表
  911. tags:
  912. - ExaFileUploadAndDownload
  913. /fileUploadAndDownload/removeChunk:
  914. post:
  915. consumes:
  916. - multipart/form-data
  917. parameters:
  918. - description: 查找文件
  919. in: formData
  920. name: file
  921. required: true
  922. type: file
  923. produces:
  924. - application/json
  925. responses:
  926. "200":
  927. description: '{"success":true,"data":{},"msg":"查找成功"}'
  928. schema:
  929. type: string
  930. security:
  931. - ApiKeyAuth: []
  932. summary: 删除切片
  933. tags:
  934. - ExaFileUploadAndDownload
  935. /fileUploadAndDownload/upload:
  936. post:
  937. consumes:
  938. - multipart/form-data
  939. parameters:
  940. - description: 上传文件示例
  941. in: formData
  942. name: file
  943. required: true
  944. type: file
  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: 上传文件示例
  955. tags:
  956. - ExaFileUploadAndDownload
  957. /jwt/jsonInBlacklist:
  958. post:
  959. consumes:
  960. - application/json
  961. produces:
  962. - application/json
  963. responses:
  964. "200":
  965. description: '{"success":true,"data":{},"msg":"拉黑成功"}'
  966. schema:
  967. type: string
  968. security:
  969. - ApiKeyAuth: []
  970. summary: jwt加入黑名单
  971. tags:
  972. - jwt
  973. /menu/addBaseMenu:
  974. post:
  975. consumes:
  976. - application/json
  977. parameters:
  978. - description: 新增菜单
  979. in: body
  980. name: data
  981. required: true
  982. schema:
  983. $ref: '#/definitions/sysModel.SysBaseMenu'
  984. type: object
  985. produces:
  986. - application/json
  987. responses:
  988. "200":
  989. description: '{"success":true,"data":{},"msg":"获取成功"}'
  990. schema:
  991. type: string
  992. security:
  993. - ApiKeyAuth: []
  994. summary: 新增菜单
  995. tags:
  996. - menu
  997. /menu/addMenuAuthority:
  998. post:
  999. consumes:
  1000. - application/json
  1001. parameters:
  1002. - description: 增加menu和角色关联关系
  1003. in: body
  1004. name: data
  1005. required: true
  1006. schema:
  1007. $ref: '#/definitions/api.AuthorityIdInfo'
  1008. type: object
  1009. produces:
  1010. - application/json
  1011. responses:
  1012. "200":
  1013. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1014. schema:
  1015. type: string
  1016. security:
  1017. - ApiKeyAuth: []
  1018. summary: 获取指定角色menu
  1019. tags:
  1020. - authorityAndMenu
  1021. /menu/deleteBaseMenu:
  1022. post:
  1023. consumes:
  1024. - application/json
  1025. parameters:
  1026. - description: 删除菜单
  1027. in: body
  1028. name: data
  1029. required: true
  1030. schema:
  1031. $ref: '#/definitions/api.IdInfo'
  1032. type: object
  1033. produces:
  1034. - application/json
  1035. responses:
  1036. "200":
  1037. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1038. schema:
  1039. type: string
  1040. security:
  1041. - ApiKeyAuth: []
  1042. summary: 删除菜单
  1043. tags:
  1044. - menu
  1045. /menu/getBaseMenuById:
  1046. post:
  1047. consumes:
  1048. - application/json
  1049. parameters:
  1050. - description: 根据id获取菜单
  1051. in: body
  1052. name: data
  1053. required: true
  1054. schema:
  1055. $ref: '#/definitions/api.GetById'
  1056. type: object
  1057. produces:
  1058. - application/json
  1059. responses:
  1060. "200":
  1061. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1062. schema:
  1063. type: string
  1064. security:
  1065. - ApiKeyAuth: []
  1066. summary: 根据id获取菜单
  1067. tags:
  1068. - menu
  1069. /menu/getBaseMenuTree:
  1070. post:
  1071. parameters:
  1072. - description: 可以什么都不填
  1073. in: body
  1074. name: data
  1075. required: true
  1076. schema:
  1077. $ref: '#/definitions/api.RegistAndLoginStuct'
  1078. type: object
  1079. produces:
  1080. - application/json
  1081. responses:
  1082. "200":
  1083. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1084. schema:
  1085. type: string
  1086. security:
  1087. - ApiKeyAuth: []
  1088. summary: 获取用户动态路由
  1089. tags:
  1090. - authorityAndMenu
  1091. /menu/getMenu:
  1092. post:
  1093. parameters:
  1094. - description: 可以什么都不填
  1095. in: body
  1096. name: data
  1097. required: true
  1098. schema:
  1099. $ref: '#/definitions/api.RegistAndLoginStuct'
  1100. type: object
  1101. produces:
  1102. - application/json
  1103. responses:
  1104. "200":
  1105. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1106. schema:
  1107. type: string
  1108. security:
  1109. - ApiKeyAuth: []
  1110. summary: 获取用户动态路由
  1111. tags:
  1112. - authorityAndMenu
  1113. /menu/getMenuList:
  1114. post:
  1115. consumes:
  1116. - application/json
  1117. parameters:
  1118. - description: 分页获取基础menu列表
  1119. in: body
  1120. name: data
  1121. required: true
  1122. schema:
  1123. $ref: '#/definitions/modelInterface.PageInfo'
  1124. type: object
  1125. produces:
  1126. - application/json
  1127. responses:
  1128. "200":
  1129. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1130. schema:
  1131. type: string
  1132. security:
  1133. - ApiKeyAuth: []
  1134. summary: 分页获取基础menu列表
  1135. tags:
  1136. - menu
  1137. /menu/updataBaseMen:
  1138. post:
  1139. consumes:
  1140. - application/json
  1141. parameters:
  1142. - description: 更新菜单
  1143. in: body
  1144. name: data
  1145. required: true
  1146. schema:
  1147. $ref: '#/definitions/sysModel.SysBaseMenu'
  1148. type: object
  1149. produces:
  1150. - application/json
  1151. responses:
  1152. "200":
  1153. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1154. schema:
  1155. type: string
  1156. security:
  1157. - ApiKeyAuth: []
  1158. summary: 更新菜单
  1159. tags:
  1160. - menu
  1161. /system/ReloadSystem:
  1162. post:
  1163. parameters:
  1164. - description: 设置配置文件内容
  1165. in: body
  1166. name: data
  1167. required: true
  1168. schema:
  1169. $ref: '#/definitions/sysModel.System'
  1170. type: object
  1171. produces:
  1172. - application/json
  1173. responses:
  1174. "200":
  1175. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1176. schema:
  1177. type: string
  1178. security:
  1179. - ApiKeyAuth: []
  1180. summary: 设置配置文件内容
  1181. tags:
  1182. - system
  1183. /system/getSystemConfig:
  1184. post:
  1185. produces:
  1186. - application/json
  1187. responses:
  1188. "200":
  1189. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1190. schema:
  1191. type: string
  1192. security:
  1193. - ApiKeyAuth: []
  1194. summary: 获取配置文件内容
  1195. tags:
  1196. - system
  1197. /system/setSystemConfig:
  1198. post:
  1199. parameters:
  1200. - description: 设置配置文件内容
  1201. in: body
  1202. name: data
  1203. required: true
  1204. schema:
  1205. $ref: '#/definitions/sysModel.System'
  1206. type: object
  1207. produces:
  1208. - application/json
  1209. responses:
  1210. "200":
  1211. description: '{"success":true,"data":{},"msg":"返回成功"}'
  1212. schema:
  1213. type: string
  1214. security:
  1215. - ApiKeyAuth: []
  1216. summary: 设置配置文件内容
  1217. tags:
  1218. - system
  1219. /user/changePassword:
  1220. post:
  1221. parameters:
  1222. - description: 用户修改密码
  1223. in: body
  1224. name: data
  1225. required: true
  1226. schema:
  1227. $ref: '#/definitions/api.ChangePasswordStutrc'
  1228. type: object
  1229. produces:
  1230. - application/json
  1231. responses:
  1232. "200":
  1233. description: '{"success":true,"data":{},"msg":"修改成功"}'
  1234. schema:
  1235. type: string
  1236. security:
  1237. - ApiKeyAuth: []
  1238. summary: 用户修改密码
  1239. tags:
  1240. - SysUser
  1241. /user/getUserList:
  1242. post:
  1243. consumes:
  1244. - application/json
  1245. parameters:
  1246. - description: 分页获取用户列表
  1247. in: body
  1248. name: data
  1249. required: true
  1250. schema:
  1251. $ref: '#/definitions/modelInterface.PageInfo'
  1252. type: object
  1253. produces:
  1254. - application/json
  1255. responses:
  1256. "200":
  1257. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1258. schema:
  1259. type: string
  1260. security:
  1261. - ApiKeyAuth: []
  1262. summary: 分页获取用户列表
  1263. tags:
  1264. - SysUser
  1265. /user/setUserAuthority:
  1266. post:
  1267. consumes:
  1268. - application/json
  1269. parameters:
  1270. - description: 设置用户权限
  1271. in: body
  1272. name: data
  1273. required: true
  1274. schema:
  1275. $ref: '#/definitions/api.SetUserAuth'
  1276. type: object
  1277. produces:
  1278. - application/json
  1279. responses:
  1280. "200":
  1281. description: '{"success":true,"data":{},"msg":"修改成功"}'
  1282. schema:
  1283. type: string
  1284. security:
  1285. - ApiKeyAuth: []
  1286. summary: 设置用户权限
  1287. tags:
  1288. - SysUser
  1289. /user/uploadHeaderImg:
  1290. post:
  1291. consumes:
  1292. - multipart/form-data
  1293. parameters:
  1294. - description: 用户上传头像
  1295. in: formData
  1296. name: headerImg
  1297. required: true
  1298. type: file
  1299. - description: 用户上传头像
  1300. in: formData
  1301. name: username
  1302. required: true
  1303. type: string
  1304. produces:
  1305. - application/json
  1306. responses:
  1307. "200":
  1308. description: '{"success":true,"data":{},"msg":"上传成功"}'
  1309. schema:
  1310. type: string
  1311. security:
  1312. - ApiKeyAuth: []
  1313. summary: 用户上传头像
  1314. tags:
  1315. - SysUser
  1316. /workflow/createWorkFlow:
  1317. post:
  1318. parameters:
  1319. - description: 注册工作流接口
  1320. in: body
  1321. name: data
  1322. required: true
  1323. schema:
  1324. $ref: '#/definitions/sysModel.SysWorkflow'
  1325. type: object
  1326. produces:
  1327. - application/json
  1328. responses:
  1329. "200":
  1330. description: '{"success":true,"data":{},"msg":"注册成功"}'
  1331. schema:
  1332. type: string
  1333. summary: 注册工作流
  1334. tags:
  1335. - workflow
  1336. securityDefinitions:
  1337. ApiKeyAuth:
  1338. in: header
  1339. name: x-token
  1340. type: apiKey
  1341. swagger: "2.0"