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.

2167 lines
49 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 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.Email:
  18. properties:
  19. from:
  20. type: string
  21. host:
  22. type: string
  23. isSSL:
  24. type: boolean
  25. nickname:
  26. type: string
  27. port:
  28. type: integer
  29. secret:
  30. type: string
  31. to:
  32. type: string
  33. type: object
  34. config.JWT:
  35. properties:
  36. signingKey:
  37. type: string
  38. type: object
  39. config.Local:
  40. properties:
  41. path:
  42. type: string
  43. type: object
  44. config.Mysql:
  45. properties:
  46. config:
  47. type: string
  48. dbname:
  49. type: string
  50. logMode:
  51. type: boolean
  52. maxIdleConns:
  53. type: integer
  54. maxOpenConns:
  55. type: integer
  56. password:
  57. type: string
  58. path:
  59. type: string
  60. username:
  61. type: string
  62. type: object
  63. config.Qiniu:
  64. properties:
  65. accessKey:
  66. type: string
  67. bucket:
  68. type: string
  69. imgPath:
  70. type: string
  71. secretKey:
  72. type: string
  73. useCdnDomains:
  74. type: boolean
  75. useHttps:
  76. type: boolean
  77. zone:
  78. type: string
  79. type: object
  80. config.Redis:
  81. properties:
  82. addr:
  83. type: string
  84. db:
  85. type: integer
  86. password:
  87. type: string
  88. type: object
  89. config.Server:
  90. properties:
  91. captcha:
  92. $ref: '#/definitions/config.Captcha'
  93. type: object
  94. casbin:
  95. $ref: '#/definitions/config.Casbin'
  96. type: object
  97. email:
  98. $ref: '#/definitions/config.Email'
  99. type: object
  100. jwt:
  101. $ref: '#/definitions/config.JWT'
  102. type: object
  103. local:
  104. $ref: '#/definitions/config.Local'
  105. description: oss
  106. type: object
  107. mysql:
  108. $ref: '#/definitions/config.Mysql'
  109. description: gorm
  110. type: object
  111. qiniu:
  112. $ref: '#/definitions/config.Qiniu'
  113. type: object
  114. redis:
  115. $ref: '#/definitions/config.Redis'
  116. type: object
  117. system:
  118. $ref: '#/definitions/config.System'
  119. type: object
  120. zap:
  121. $ref: '#/definitions/config.Zap'
  122. type: object
  123. type: object
  124. config.System:
  125. properties:
  126. addr:
  127. type: integer
  128. dbType:
  129. type: string
  130. env:
  131. type: string
  132. ossType:
  133. type: string
  134. useMultipoint:
  135. type: boolean
  136. type: object
  137. config.Zap:
  138. properties:
  139. director:
  140. type: string
  141. encodeLevel:
  142. type: string
  143. format:
  144. type: string
  145. level:
  146. type: string
  147. linkName:
  148. type: string
  149. logInConsole:
  150. type: boolean
  151. prefix:
  152. type: string
  153. showLine:
  154. type: boolean
  155. stacktraceKey:
  156. type: string
  157. type: object
  158. model.ExaCustomer:
  159. properties:
  160. createdAt:
  161. type: string
  162. customerName:
  163. type: string
  164. customerPhoneData:
  165. type: string
  166. id:
  167. type: integer
  168. sysUser:
  169. $ref: '#/definitions/model.SysUser'
  170. type: object
  171. sysUserAuthorityID:
  172. type: string
  173. sysUserId:
  174. type: integer
  175. updatedAt:
  176. type: string
  177. type: object
  178. model.ExaFileUploadAndDownload:
  179. properties:
  180. createdAt:
  181. type: string
  182. id:
  183. type: integer
  184. key:
  185. type: string
  186. name:
  187. type: string
  188. tag:
  189. type: string
  190. updatedAt:
  191. type: string
  192. url:
  193. type: string
  194. type: object
  195. model.SysApi:
  196. properties:
  197. apiGroup:
  198. type: string
  199. createdAt:
  200. type: string
  201. description:
  202. type: string
  203. id:
  204. type: integer
  205. method:
  206. type: string
  207. path:
  208. type: string
  209. updatedAt:
  210. type: string
  211. type: object
  212. model.SysAuthority:
  213. properties:
  214. authorityId:
  215. type: string
  216. authorityName:
  217. type: string
  218. children:
  219. items:
  220. $ref: '#/definitions/model.SysAuthority'
  221. type: array
  222. createdAt:
  223. type: string
  224. dataAuthorityId:
  225. items:
  226. $ref: '#/definitions/model.SysAuthority'
  227. type: array
  228. deletedAt:
  229. type: string
  230. menus:
  231. items:
  232. $ref: '#/definitions/model.SysBaseMenu'
  233. type: array
  234. parentId:
  235. type: string
  236. updatedAt:
  237. type: string
  238. type: object
  239. model.SysBaseMenu:
  240. properties:
  241. authoritys:
  242. items:
  243. $ref: '#/definitions/model.SysAuthority'
  244. type: array
  245. children:
  246. items:
  247. $ref: '#/definitions/model.SysBaseMenu'
  248. type: array
  249. component:
  250. type: string
  251. createdAt:
  252. type: string
  253. defaultMenu:
  254. type: boolean
  255. hidden:
  256. type: boolean
  257. icon:
  258. type: string
  259. id:
  260. type: integer
  261. keepAlive:
  262. type: boolean
  263. name:
  264. type: string
  265. parameters:
  266. items:
  267. $ref: '#/definitions/model.SysBaseMenuParameter'
  268. type: array
  269. parentId:
  270. type: string
  271. path:
  272. type: string
  273. sort:
  274. type: integer
  275. title:
  276. type: string
  277. updatedAt:
  278. type: string
  279. type: object
  280. model.SysBaseMenuParameter:
  281. properties:
  282. createdAt:
  283. type: string
  284. id:
  285. type: integer
  286. key:
  287. type: string
  288. sysBaseMenuID:
  289. type: integer
  290. type:
  291. type: string
  292. updatedAt:
  293. type: string
  294. value:
  295. type: string
  296. type: object
  297. model.SysDictionary:
  298. properties:
  299. createdAt:
  300. type: string
  301. desc:
  302. type: string
  303. id:
  304. type: integer
  305. name:
  306. type: string
  307. status:
  308. type: boolean
  309. sysDictionaryDetails:
  310. items:
  311. $ref: '#/definitions/model.SysDictionaryDetail'
  312. type: array
  313. type:
  314. type: string
  315. updatedAt:
  316. type: string
  317. type: object
  318. model.SysDictionaryDetail:
  319. properties:
  320. createdAt:
  321. type: string
  322. id:
  323. type: integer
  324. label:
  325. type: string
  326. sort:
  327. type: integer
  328. status:
  329. type: boolean
  330. sysDictionaryID:
  331. type: integer
  332. updatedAt:
  333. type: string
  334. value:
  335. type: integer
  336. type: object
  337. model.SysOperationRecord:
  338. properties:
  339. agent:
  340. type: string
  341. body:
  342. type: string
  343. createdAt:
  344. type: string
  345. error_message:
  346. type: string
  347. id:
  348. type: integer
  349. ip:
  350. type: string
  351. latency:
  352. type: string
  353. method:
  354. type: string
  355. path:
  356. type: string
  357. resp:
  358. type: string
  359. status:
  360. type: integer
  361. updatedAt:
  362. type: string
  363. user:
  364. $ref: '#/definitions/model.SysUser'
  365. type: object
  366. user_id:
  367. type: integer
  368. type: object
  369. model.SysUser:
  370. properties:
  371. authority:
  372. $ref: '#/definitions/model.SysAuthority'
  373. type: object
  374. authorityId:
  375. type: string
  376. createdAt:
  377. type: string
  378. headerImg:
  379. type: string
  380. id:
  381. type: integer
  382. nickName:
  383. type: string
  384. updatedAt:
  385. type: string
  386. userName:
  387. type: string
  388. uuid:
  389. type: string
  390. type: object
  391. model.SysWorkflow:
  392. properties:
  393. createdAt:
  394. type: string
  395. id:
  396. type: integer
  397. updatedAt:
  398. type: string
  399. workflowDescription:
  400. description: 工作流描述
  401. type: string
  402. workflowName:
  403. description: 工作流英文id
  404. type: string
  405. workflowNickName:
  406. description: 工作流名称
  407. type: string
  408. workflowStep:
  409. description: 工作流步骤
  410. items:
  411. $ref: '#/definitions/model.SysWorkflowStepInfo'
  412. type: array
  413. type: object
  414. model.SysWorkflowStepInfo:
  415. properties:
  416. createdAt:
  417. type: string
  418. id:
  419. type: integer
  420. isEnd:
  421. description: 是否是完结流节点
  422. type: boolean
  423. isStart:
  424. description: 是否是开始流节点
  425. type: boolean
  426. stepAuthorityID:
  427. description: 操作者级别id
  428. type: string
  429. stepName:
  430. description: 工作流名称
  431. type: string
  432. stepNo:
  433. description: 步骤id (第几步)
  434. type: number
  435. updatedAt:
  436. type: string
  437. workflowID:
  438. description: 所属工作流ID
  439. type: integer
  440. type: object
  441. model.System:
  442. properties:
  443. config:
  444. $ref: '#/definitions/config.Server'
  445. type: object
  446. type: object
  447. request.AddMenuAuthorityInfo:
  448. properties:
  449. authorityId:
  450. type: string
  451. menus:
  452. items:
  453. $ref: '#/definitions/model.SysBaseMenu'
  454. type: array
  455. type: object
  456. request.CasbinInReceive:
  457. properties:
  458. authorityId:
  459. type: string
  460. casbinInfos:
  461. items:
  462. $ref: '#/definitions/request.CasbinInfo'
  463. type: array
  464. type: object
  465. request.CasbinInfo:
  466. properties:
  467. method:
  468. type: string
  469. path:
  470. type: string
  471. type: object
  472. request.ChangePasswordStruct:
  473. properties:
  474. newPassword:
  475. type: string
  476. password:
  477. type: string
  478. username:
  479. type: string
  480. type: object
  481. request.Empty:
  482. type: object
  483. request.GetAuthorityId:
  484. properties:
  485. authorityId:
  486. type: string
  487. type: object
  488. request.GetById:
  489. properties:
  490. id:
  491. type: number
  492. type: object
  493. request.IdsReq:
  494. properties:
  495. ids:
  496. items:
  497. type: integer
  498. type: array
  499. type: object
  500. request.Login:
  501. properties:
  502. captcha:
  503. type: string
  504. captchaId:
  505. type: string
  506. password:
  507. type: string
  508. username:
  509. type: string
  510. type: object
  511. request.PageInfo:
  512. properties:
  513. page:
  514. type: integer
  515. pageSize:
  516. type: integer
  517. type: object
  518. request.SearchApiParams:
  519. properties:
  520. apiGroup:
  521. type: string
  522. createdAt:
  523. type: string
  524. desc:
  525. type: boolean
  526. description:
  527. type: string
  528. id:
  529. type: integer
  530. method:
  531. type: string
  532. orderKey:
  533. type: string
  534. page:
  535. type: integer
  536. pageSize:
  537. type: integer
  538. path:
  539. type: string
  540. updatedAt:
  541. type: string
  542. type: object
  543. request.SetUserAuth:
  544. properties:
  545. authorityId:
  546. type: string
  547. uuid:
  548. type: string
  549. type: object
  550. request.SysDictionaryDetailSearch:
  551. properties:
  552. createdAt:
  553. type: string
  554. id:
  555. type: integer
  556. label:
  557. type: string
  558. page:
  559. type: integer
  560. pageSize:
  561. type: integer
  562. sort:
  563. type: integer
  564. status:
  565. type: boolean
  566. sysDictionaryID:
  567. type: integer
  568. updatedAt:
  569. type: string
  570. value:
  571. type: integer
  572. type: object
  573. request.SysDictionarySearch:
  574. properties:
  575. createdAt:
  576. type: string
  577. desc:
  578. type: string
  579. id:
  580. type: integer
  581. name:
  582. type: string
  583. page:
  584. type: integer
  585. pageSize:
  586. type: integer
  587. status:
  588. type: boolean
  589. sysDictionaryDetails:
  590. items:
  591. $ref: '#/definitions/model.SysDictionaryDetail'
  592. type: array
  593. type:
  594. type: string
  595. updatedAt:
  596. type: string
  597. type: object
  598. request.SysOperationRecordSearch:
  599. properties:
  600. agent:
  601. type: string
  602. body:
  603. type: string
  604. createdAt:
  605. type: string
  606. error_message:
  607. type: string
  608. id:
  609. type: integer
  610. ip:
  611. type: string
  612. latency:
  613. type: string
  614. method:
  615. type: string
  616. page:
  617. type: integer
  618. pageSize:
  619. type: integer
  620. path:
  621. type: string
  622. resp:
  623. type: string
  624. status:
  625. type: integer
  626. updatedAt:
  627. type: string
  628. user:
  629. $ref: '#/definitions/model.SysUser'
  630. type: object
  631. user_id:
  632. type: integer
  633. type: object
  634. response.SysAuthorityCopyResponse:
  635. properties:
  636. authority:
  637. $ref: '#/definitions/model.SysAuthority'
  638. type: object
  639. oldAuthorityId:
  640. type: string
  641. type: object
  642. info:
  643. contact: {}
  644. description: This is a sample Server pets
  645. license: {}
  646. title: Swagger Example API
  647. version: 0.0.1
  648. paths:
  649. /api/createApi:
  650. post:
  651. consumes:
  652. - application/json
  653. parameters:
  654. - description: api路径, api中文描述, api组, 方法
  655. in: body
  656. name: data
  657. required: true
  658. schema:
  659. $ref: '#/definitions/model.SysApi'
  660. produces:
  661. - application/json
  662. responses:
  663. "200":
  664. description: '{"success":true,"data":{},"msg":"创建成功"}'
  665. schema:
  666. type: string
  667. security:
  668. - ApiKeyAuth: []
  669. summary: 创建基础api
  670. tags:
  671. - SysApi
  672. /api/deleteApi:
  673. post:
  674. consumes:
  675. - application/json
  676. parameters:
  677. - description: ID
  678. in: body
  679. name: data
  680. required: true
  681. schema:
  682. $ref: '#/definitions/model.SysApi'
  683. produces:
  684. - application/json
  685. responses:
  686. "200":
  687. description: '{"success":true,"data":{},"msg":"删除成功"}'
  688. schema:
  689. type: string
  690. security:
  691. - ApiKeyAuth: []
  692. summary: 删除api
  693. tags:
  694. - SysApi
  695. /api/getAllApis:
  696. post:
  697. consumes:
  698. - application/json
  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: 获取所有的Api 不分页
  709. tags:
  710. - SysApi
  711. /api/getApiById:
  712. post:
  713. consumes:
  714. - application/json
  715. parameters:
  716. - description: 根据id获取api
  717. in: body
  718. name: data
  719. required: true
  720. schema:
  721. $ref: '#/definitions/request.GetById'
  722. produces:
  723. - application/json
  724. responses:
  725. "200":
  726. description: '{"success":true,"data":{},"msg":"获取成功"}'
  727. schema:
  728. type: string
  729. security:
  730. - ApiKeyAuth: []
  731. summary: 根据id获取api
  732. tags:
  733. - SysApi
  734. /api/getApiList:
  735. post:
  736. consumes:
  737. - application/json
  738. parameters:
  739. - description: 分页获取API列表
  740. in: body
  741. name: data
  742. required: true
  743. schema:
  744. $ref: '#/definitions/request.SearchApiParams'
  745. produces:
  746. - application/json
  747. responses:
  748. "200":
  749. description: '{"success":true,"data":{},"msg":"获取成功"}'
  750. schema:
  751. type: string
  752. security:
  753. - ApiKeyAuth: []
  754. summary: 分页获取API列表
  755. tags:
  756. - SysApi
  757. /api/updateApi:
  758. post:
  759. consumes:
  760. - application/json
  761. parameters:
  762. - description: api路径, api中文描述, api组, 方法
  763. in: body
  764. name: data
  765. required: true
  766. schema:
  767. $ref: '#/definitions/model.SysApi'
  768. produces:
  769. - application/json
  770. responses:
  771. "200":
  772. description: '{"success":true,"data":{},"msg":"修改成功"}'
  773. schema:
  774. type: string
  775. security:
  776. - ApiKeyAuth: []
  777. summary: 创建基础api
  778. tags:
  779. - SysApi
  780. /authority/copyAuthority:
  781. post:
  782. consumes:
  783. - application/json
  784. parameters:
  785. - description: 旧角色id, 新权限id, 新权限名, 新父角色id
  786. in: body
  787. name: data
  788. required: true
  789. schema:
  790. $ref: '#/definitions/response.SysAuthorityCopyResponse'
  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: 拷贝角色
  801. tags:
  802. - Authority
  803. /authority/createAuthority:
  804. post:
  805. consumes:
  806. - application/json
  807. parameters:
  808. - description: 权限id, 权限名, 父角色id
  809. in: body
  810. name: data
  811. required: true
  812. schema:
  813. $ref: '#/definitions/model.SysAuthority'
  814. produces:
  815. - application/json
  816. responses:
  817. "200":
  818. description: '{"success":true,"data":{},"msg":"创建成功"}'
  819. schema:
  820. type: string
  821. security:
  822. - ApiKeyAuth: []
  823. summary: 创建角色
  824. tags:
  825. - Authority
  826. /authority/deleteAuthority:
  827. post:
  828. consumes:
  829. - application/json
  830. parameters:
  831. - description: 删除角色
  832. in: body
  833. name: data
  834. required: true
  835. schema:
  836. $ref: '#/definitions/model.SysAuthority'
  837. produces:
  838. - application/json
  839. responses:
  840. "200":
  841. description: '{"success":true,"data":{},"msg":"删除成功"}'
  842. schema:
  843. type: string
  844. security:
  845. - ApiKeyAuth: []
  846. summary: 删除角色
  847. tags:
  848. - Authority
  849. /authority/getAuthorityList:
  850. post:
  851. consumes:
  852. - application/json
  853. parameters:
  854. - description: 页码, 每页大小
  855. in: body
  856. name: data
  857. required: true
  858. schema:
  859. $ref: '#/definitions/request.PageInfo'
  860. produces:
  861. - application/json
  862. responses:
  863. "200":
  864. description: '{"success":true,"data":{},"msg":"获取成功"}'
  865. schema:
  866. type: string
  867. security:
  868. - ApiKeyAuth: []
  869. summary: 分页获取角色列表
  870. tags:
  871. - Authority
  872. /authority/setDataAuthority:
  873. post:
  874. consumes:
  875. - application/json
  876. parameters:
  877. - description: 设置角色资源权限
  878. in: body
  879. name: data
  880. required: true
  881. schema:
  882. $ref: '#/definitions/model.SysAuthority'
  883. produces:
  884. - application/json
  885. responses:
  886. "200":
  887. description: '{"success":true,"data":{},"msg":"设置成功"}'
  888. schema:
  889. type: string
  890. security:
  891. - ApiKeyAuth: []
  892. summary: 设置角色资源权限
  893. tags:
  894. - Authority
  895. /authority/updateAuthority:
  896. post:
  897. consumes:
  898. - application/json
  899. parameters:
  900. - description: 权限id, 权限名, 父角色id
  901. in: body
  902. name: data
  903. required: true
  904. schema:
  905. $ref: '#/definitions/model.SysAuthority'
  906. produces:
  907. - application/json
  908. responses:
  909. "200":
  910. description: '{"success":true,"data":{},"msg":"更新成功"}'
  911. schema:
  912. type: string
  913. security:
  914. - ApiKeyAuth: []
  915. summary: 更新角色信息
  916. tags:
  917. - Authority
  918. /autoCode/createTemp:
  919. post:
  920. consumes:
  921. - application/json
  922. produces:
  923. - application/json
  924. responses:
  925. "200":
  926. description: '{"success":true,"data":{},"msg":"创建成功"}'
  927. schema:
  928. type: string
  929. security:
  930. - ApiKeyAuth: []
  931. summary: 自动代码模板
  932. tags:
  933. - AutoCode
  934. /autoCode/getColumn:
  935. get:
  936. consumes:
  937. - application/json
  938. produces:
  939. - application/json
  940. responses:
  941. "200":
  942. description: '{"success":true,"data":{},"msg":"获取成功"}'
  943. schema:
  944. type: string
  945. security:
  946. - ApiKeyAuth: []
  947. summary: 获取当前表所有字段
  948. tags:
  949. - AutoCode
  950. /autoCode/getDatabase:
  951. get:
  952. consumes:
  953. - application/json
  954. produces:
  955. - application/json
  956. responses:
  957. "200":
  958. description: '{"success":true,"data":{},"msg":"获取成功"}'
  959. schema:
  960. type: string
  961. security:
  962. - ApiKeyAuth: []
  963. summary: 获取当前所有数据库
  964. tags:
  965. - AutoCode
  966. /autoCode/getTables:
  967. get:
  968. consumes:
  969. - application/json
  970. produces:
  971. - application/json
  972. responses:
  973. "200":
  974. description: '{"success":true,"data":{},"msg":"获取成功"}'
  975. schema:
  976. type: string
  977. security:
  978. - ApiKeyAuth: []
  979. summary: 获取当前数据库所有表
  980. tags:
  981. - AutoCode
  982. /base/captcha:
  983. post:
  984. consumes:
  985. - application/json
  986. produces:
  987. - application/json
  988. responses:
  989. "200":
  990. description: '{"success":true,"data":{},"msg":"验证码获取成功"}'
  991. schema:
  992. type: string
  993. security:
  994. - ApiKeyAuth: []
  995. summary: 生成验证码
  996. tags:
  997. - Base
  998. /base/login:
  999. post:
  1000. parameters:
  1001. - description: 用户名, 密码, 验证码
  1002. in: body
  1003. name: data
  1004. required: true
  1005. schema:
  1006. $ref: '#/definitions/request.Login'
  1007. produces:
  1008. - application/json
  1009. responses:
  1010. "200":
  1011. description: '{"success":true,"data":{},"msg":"登陆成功"}'
  1012. schema:
  1013. type: string
  1014. summary: 用户登录
  1015. tags:
  1016. - Base
  1017. /casbin/UpdateCasbin:
  1018. post:
  1019. consumes:
  1020. - application/json
  1021. parameters:
  1022. - description: 权限id, 权限模型列表
  1023. in: body
  1024. name: data
  1025. required: true
  1026. schema:
  1027. $ref: '#/definitions/request.CasbinInReceive'
  1028. produces:
  1029. - application/json
  1030. responses:
  1031. "200":
  1032. description: '{"success":true,"data":{},"msg":"更新成功"}'
  1033. schema:
  1034. type: string
  1035. security:
  1036. - ApiKeyAuth: []
  1037. summary: 更新角色api权限
  1038. tags:
  1039. - Casbin
  1040. /casbin/getPolicyPathByAuthorityId:
  1041. post:
  1042. consumes:
  1043. - application/json
  1044. parameters:
  1045. - description: 权限id, 权限模型列表
  1046. in: body
  1047. name: data
  1048. required: true
  1049. schema:
  1050. $ref: '#/definitions/request.CasbinInReceive'
  1051. produces:
  1052. - application/json
  1053. responses:
  1054. "200":
  1055. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1056. schema:
  1057. type: string
  1058. security:
  1059. - ApiKeyAuth: []
  1060. summary: 获取权限列表
  1061. tags:
  1062. - Casbin
  1063. /customer/customer:
  1064. delete:
  1065. consumes:
  1066. - application/json
  1067. parameters:
  1068. - description: 客户ID
  1069. in: body
  1070. name: data
  1071. required: true
  1072. schema:
  1073. $ref: '#/definitions/model.ExaCustomer'
  1074. produces:
  1075. - application/json
  1076. responses:
  1077. "200":
  1078. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1079. schema:
  1080. type: string
  1081. security:
  1082. - ApiKeyAuth: []
  1083. summary: 删除客户
  1084. tags:
  1085. - ExaCustomer
  1086. get:
  1087. consumes:
  1088. - application/json
  1089. parameters:
  1090. - description: 客户ID
  1091. in: body
  1092. name: data
  1093. required: true
  1094. schema:
  1095. $ref: '#/definitions/model.ExaCustomer'
  1096. produces:
  1097. - application/json
  1098. responses:
  1099. "200":
  1100. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1101. schema:
  1102. type: string
  1103. security:
  1104. - ApiKeyAuth: []
  1105. summary: 获取单一客户信息
  1106. tags:
  1107. - ExaCustomer
  1108. post:
  1109. consumes:
  1110. - application/json
  1111. parameters:
  1112. - description: 客户用户名, 客户手机号码
  1113. in: body
  1114. name: data
  1115. required: true
  1116. schema:
  1117. $ref: '#/definitions/model.ExaCustomer'
  1118. produces:
  1119. - application/json
  1120. responses:
  1121. "200":
  1122. description: '{"success":true,"data":{},"msg":"创建成功"}'
  1123. schema:
  1124. type: string
  1125. security:
  1126. - ApiKeyAuth: []
  1127. summary: 创建客户
  1128. tags:
  1129. - ExaCustomer
  1130. put:
  1131. consumes:
  1132. - application/json
  1133. parameters:
  1134. - description: 客户ID, 客户信息
  1135. in: body
  1136. name: data
  1137. required: true
  1138. schema:
  1139. $ref: '#/definitions/model.ExaCustomer'
  1140. produces:
  1141. - application/json
  1142. responses:
  1143. "200":
  1144. description: '{"success":true,"data":{},"msg":"更新成功"}'
  1145. schema:
  1146. type: string
  1147. security:
  1148. - ApiKeyAuth: []
  1149. summary: 更新客户信息
  1150. tags:
  1151. - ExaCustomer
  1152. /customer/customerList:
  1153. get:
  1154. consumes:
  1155. - application/json
  1156. parameters:
  1157. - description: 页码, 每页大小
  1158. in: body
  1159. name: data
  1160. required: true
  1161. schema:
  1162. $ref: '#/definitions/request.PageInfo'
  1163. produces:
  1164. - application/json
  1165. responses:
  1166. "200":
  1167. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1168. schema:
  1169. type: string
  1170. security:
  1171. - ApiKeyAuth: []
  1172. summary: 分页获取权限客户列表
  1173. tags:
  1174. - ExaCustomer
  1175. /email/emailTest:
  1176. post:
  1177. produces:
  1178. - application/json
  1179. responses:
  1180. "200":
  1181. description: '{"success":true,"data":{},"msg":"发送成功"}'
  1182. schema:
  1183. type: string
  1184. security:
  1185. - ApiKeyAuth: []
  1186. summary: 发送测试邮件
  1187. tags:
  1188. - System
  1189. /fileUploadAndDownload/breakpointContinue:
  1190. post:
  1191. consumes:
  1192. - multipart/form-data
  1193. parameters:
  1194. - description: an example for breakpoint resume, 断点续传示例
  1195. in: formData
  1196. name: file
  1197. required: true
  1198. type: file
  1199. produces:
  1200. - application/json
  1201. responses:
  1202. "200":
  1203. description: '{"success":true,"data":{},"msg":"切片创建成功"}'
  1204. schema:
  1205. type: string
  1206. security:
  1207. - ApiKeyAuth: []
  1208. summary: 断点续传到服务器
  1209. tags:
  1210. - ExaFileUploadAndDownload
  1211. /fileUploadAndDownload/deleteFile:
  1212. post:
  1213. parameters:
  1214. - description: 传入文件里面id即可
  1215. in: body
  1216. name: data
  1217. required: true
  1218. schema:
  1219. $ref: '#/definitions/model.ExaFileUploadAndDownload'
  1220. produces:
  1221. - application/json
  1222. responses:
  1223. "200":
  1224. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1225. schema:
  1226. type: string
  1227. security:
  1228. - ApiKeyAuth: []
  1229. summary: 删除文件
  1230. tags:
  1231. - ExaFileUploadAndDownload
  1232. /fileUploadAndDownload/findFile:
  1233. post:
  1234. consumes:
  1235. - multipart/form-data
  1236. parameters:
  1237. - description: 上传文件完成
  1238. in: formData
  1239. name: file
  1240. required: true
  1241. type: file
  1242. produces:
  1243. - application/json
  1244. responses:
  1245. "200":
  1246. description: '{"success":true,"data":{},"msg":"file uploaded, 文件创建成功"}'
  1247. schema:
  1248. type: string
  1249. security:
  1250. - ApiKeyAuth: []
  1251. summary: 创建文件
  1252. tags:
  1253. - ExaFileUploadAndDownload
  1254. /fileUploadAndDownload/getFileList:
  1255. post:
  1256. consumes:
  1257. - application/json
  1258. parameters:
  1259. - description: 页码, 每页大小
  1260. in: body
  1261. name: data
  1262. required: true
  1263. schema:
  1264. $ref: '#/definitions/request.PageInfo'
  1265. produces:
  1266. - application/json
  1267. responses:
  1268. "200":
  1269. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1270. schema:
  1271. type: string
  1272. security:
  1273. - ApiKeyAuth: []
  1274. summary: 分页文件列表
  1275. tags:
  1276. - ExaFileUploadAndDownload
  1277. /fileUploadAndDownload/removeChunk:
  1278. post:
  1279. consumes:
  1280. - multipart/form-data
  1281. parameters:
  1282. - description: 删除缓存切片
  1283. in: formData
  1284. name: file
  1285. required: true
  1286. type: file
  1287. produces:
  1288. - application/json
  1289. responses:
  1290. "200":
  1291. description: '{"success":true,"data":{},"msg":"缓存切片删除成功"}'
  1292. schema:
  1293. type: string
  1294. security:
  1295. - ApiKeyAuth: []
  1296. summary: 删除切片
  1297. tags:
  1298. - ExaFileUploadAndDownload
  1299. /fileUploadAndDownload/upload:
  1300. post:
  1301. consumes:
  1302. - multipart/form-data
  1303. parameters:
  1304. - description: 上传文件示例
  1305. in: formData
  1306. name: file
  1307. required: true
  1308. type: file
  1309. produces:
  1310. - application/json
  1311. responses:
  1312. "200":
  1313. description: '{"success":true,"data":{},"msg":"上传成功"}'
  1314. schema:
  1315. type: string
  1316. security:
  1317. - ApiKeyAuth: []
  1318. summary: 上传文件示例
  1319. tags:
  1320. - ExaFileUploadAndDownload
  1321. /jwt/jsonInBlacklist:
  1322. post:
  1323. consumes:
  1324. - application/json
  1325. produces:
  1326. - application/json
  1327. responses:
  1328. "200":
  1329. description: '{"success":true,"data":{},"msg":"拉黑成功"}'
  1330. schema:
  1331. type: string
  1332. security:
  1333. - ApiKeyAuth: []
  1334. summary: jwt加入黑名单
  1335. tags:
  1336. - Jwt
  1337. /menu/GetMenuAuthority:
  1338. post:
  1339. consumes:
  1340. - application/json
  1341. parameters:
  1342. - description: 角色ID
  1343. in: body
  1344. name: data
  1345. required: true
  1346. schema:
  1347. $ref: '#/definitions/request.GetAuthorityId'
  1348. produces:
  1349. - application/json
  1350. responses:
  1351. "200":
  1352. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1353. schema:
  1354. type: string
  1355. security:
  1356. - ApiKeyAuth: []
  1357. summary: 获取指定角色menu
  1358. tags:
  1359. - AuthorityMenu
  1360. /menu/addBaseMenu:
  1361. post:
  1362. consumes:
  1363. - application/json
  1364. parameters:
  1365. - description: 路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记
  1366. in: body
  1367. name: data
  1368. required: true
  1369. schema:
  1370. $ref: '#/definitions/model.SysBaseMenu'
  1371. produces:
  1372. - application/json
  1373. responses:
  1374. "200":
  1375. description: '{"success":true,"data":{},"msg":"添加成功"}'
  1376. schema:
  1377. type: string
  1378. security:
  1379. - ApiKeyAuth: []
  1380. summary: 新增菜单
  1381. tags:
  1382. - Menu
  1383. /menu/addMenuAuthority:
  1384. post:
  1385. consumes:
  1386. - application/json
  1387. parameters:
  1388. - description: 角色ID
  1389. in: body
  1390. name: data
  1391. required: true
  1392. schema:
  1393. $ref: '#/definitions/request.AddMenuAuthorityInfo'
  1394. produces:
  1395. - application/json
  1396. responses:
  1397. "200":
  1398. description: '{"success":true,"data":{},"msg":"添加成功"}'
  1399. schema:
  1400. type: string
  1401. security:
  1402. - ApiKeyAuth: []
  1403. summary: 增加menu和角色关联关系
  1404. tags:
  1405. - AuthorityMenu
  1406. /menu/deleteBaseMenu:
  1407. post:
  1408. consumes:
  1409. - application/json
  1410. parameters:
  1411. - description: 菜单id
  1412. in: body
  1413. name: data
  1414. required: true
  1415. schema:
  1416. $ref: '#/definitions/request.GetById'
  1417. produces:
  1418. - application/json
  1419. responses:
  1420. "200":
  1421. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1422. schema:
  1423. type: string
  1424. security:
  1425. - ApiKeyAuth: []
  1426. summary: 删除菜单
  1427. tags:
  1428. - Menu
  1429. /menu/getBaseMenuById:
  1430. post:
  1431. consumes:
  1432. - application/json
  1433. parameters:
  1434. - description: 菜单id
  1435. in: body
  1436. name: data
  1437. required: true
  1438. schema:
  1439. $ref: '#/definitions/request.GetById'
  1440. produces:
  1441. - application/json
  1442. responses:
  1443. "200":
  1444. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1445. schema:
  1446. type: string
  1447. security:
  1448. - ApiKeyAuth: []
  1449. summary: 根据id获取菜单
  1450. tags:
  1451. - Menu
  1452. /menu/getBaseMenuTree:
  1453. post:
  1454. parameters:
  1455. - description:
  1456. in: body
  1457. name: data
  1458. required: true
  1459. schema:
  1460. $ref: '#/definitions/request.Empty'
  1461. produces:
  1462. - application/json
  1463. responses:
  1464. "200":
  1465. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1466. schema:
  1467. type: string
  1468. security:
  1469. - ApiKeyAuth: []
  1470. summary: 获取用户动态路由
  1471. tags:
  1472. - AuthorityMenu
  1473. /menu/getMenu:
  1474. post:
  1475. parameters:
  1476. - description:
  1477. in: body
  1478. name: data
  1479. required: true
  1480. schema:
  1481. $ref: '#/definitions/request.Empty'
  1482. produces:
  1483. - application/json
  1484. responses:
  1485. "200":
  1486. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1487. schema:
  1488. type: string
  1489. security:
  1490. - ApiKeyAuth: []
  1491. summary: 获取用户动态路由
  1492. tags:
  1493. - AuthorityMenu
  1494. /menu/getMenuList:
  1495. post:
  1496. consumes:
  1497. - application/json
  1498. parameters:
  1499. - description: 页码, 每页大小
  1500. in: body
  1501. name: data
  1502. required: true
  1503. schema:
  1504. $ref: '#/definitions/request.PageInfo'
  1505. produces:
  1506. - application/json
  1507. responses:
  1508. "200":
  1509. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1510. schema:
  1511. type: string
  1512. security:
  1513. - ApiKeyAuth: []
  1514. summary: 分页获取基础menu列表
  1515. tags:
  1516. - Menu
  1517. /menu/updateBaseMenu:
  1518. post:
  1519. consumes:
  1520. - application/json
  1521. parameters:
  1522. - description: 路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记
  1523. in: body
  1524. name: data
  1525. required: true
  1526. schema:
  1527. $ref: '#/definitions/model.SysBaseMenu'
  1528. produces:
  1529. - application/json
  1530. responses:
  1531. "200":
  1532. description: '{"success":true,"data":{},"msg":"更新成功"}'
  1533. schema:
  1534. type: string
  1535. security:
  1536. - ApiKeyAuth: []
  1537. summary: 更新菜单
  1538. tags:
  1539. - Menu
  1540. /simpleUploader/checkFileMd5:
  1541. get:
  1542. parameters:
  1543. - description: md5
  1544. in: query
  1545. name: md5
  1546. required: true
  1547. type: string
  1548. produces:
  1549. - application/json
  1550. responses:
  1551. "200":
  1552. description: '{"success":true,"data":{},"msg":"查询成功"}'
  1553. schema:
  1554. type: string
  1555. security:
  1556. - ApiKeyAuth: []
  1557. summary: 断点续传插件版示例
  1558. tags:
  1559. - SimpleUploader
  1560. /simpleUploader/mergeFileMd5:
  1561. get:
  1562. parameters:
  1563. - description: md5
  1564. in: query
  1565. name: md5
  1566. required: true
  1567. type: string
  1568. produces:
  1569. - application/json
  1570. responses:
  1571. "200":
  1572. description: '{"success":true,"data":{},"msg":"合并成功"}'
  1573. schema:
  1574. type: string
  1575. security:
  1576. - ApiKeyAuth: []
  1577. summary: 合并文件
  1578. tags:
  1579. - SimpleUploader
  1580. /simpleUploader/upload:
  1581. post:
  1582. consumes:
  1583. - multipart/form-data
  1584. produces:
  1585. - application/json
  1586. responses:
  1587. "200":
  1588. description: '{"success":true,"data":{},"msg":"切片创建成功"}'
  1589. schema:
  1590. type: string
  1591. security:
  1592. - ApiKeyAuth: []
  1593. summary: 断点续传插件版示例
  1594. tags:
  1595. - SimpleUploader
  1596. /sysDictionary/createSysDictionary:
  1597. post:
  1598. consumes:
  1599. - application/json
  1600. parameters:
  1601. - description: SysDictionary模型
  1602. in: body
  1603. name: data
  1604. required: true
  1605. schema:
  1606. $ref: '#/definitions/model.SysDictionary'
  1607. produces:
  1608. - application/json
  1609. responses:
  1610. "200":
  1611. description: '{"success":true,"data":{},"msg":"创建成功"}'
  1612. schema:
  1613. type: string
  1614. security:
  1615. - ApiKeyAuth: []
  1616. summary: 创建SysDictionary
  1617. tags:
  1618. - SysDictionary
  1619. /sysDictionary/deleteSysDictionary:
  1620. delete:
  1621. consumes:
  1622. - application/json
  1623. parameters:
  1624. - description: SysDictionary模型
  1625. in: body
  1626. name: data
  1627. required: true
  1628. schema:
  1629. $ref: '#/definitions/model.SysDictionary'
  1630. produces:
  1631. - application/json
  1632. responses:
  1633. "200":
  1634. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1635. schema:
  1636. type: string
  1637. security:
  1638. - ApiKeyAuth: []
  1639. summary: 删除SysDictionary
  1640. tags:
  1641. - SysDictionary
  1642. /sysDictionary/findSysDictionary:
  1643. get:
  1644. consumes:
  1645. - application/json
  1646. parameters:
  1647. - description: ID或字典英名
  1648. in: body
  1649. name: data
  1650. required: true
  1651. schema:
  1652. $ref: '#/definitions/model.SysDictionary'
  1653. produces:
  1654. - application/json
  1655. responses:
  1656. "200":
  1657. description: '{"success":true,"data":{},"msg":"查询成功"}'
  1658. schema:
  1659. type: string
  1660. security:
  1661. - ApiKeyAuth: []
  1662. summary: 用id查询SysDictionary
  1663. tags:
  1664. - SysDictionary
  1665. /sysDictionary/getSysDictionaryList:
  1666. get:
  1667. consumes:
  1668. - application/json
  1669. parameters:
  1670. - description: 页码, 每页大小, 搜索条件
  1671. in: body
  1672. name: data
  1673. required: true
  1674. schema:
  1675. $ref: '#/definitions/request.SysDictionarySearch'
  1676. produces:
  1677. - application/json
  1678. responses:
  1679. "200":
  1680. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1681. schema:
  1682. type: string
  1683. security:
  1684. - ApiKeyAuth: []
  1685. summary: 分页获取SysDictionary列表
  1686. tags:
  1687. - SysDictionary
  1688. /sysDictionary/updateSysDictionary:
  1689. put:
  1690. consumes:
  1691. - application/json
  1692. parameters:
  1693. - description: SysDictionary模型
  1694. in: body
  1695. name: data
  1696. required: true
  1697. schema:
  1698. $ref: '#/definitions/model.SysDictionary'
  1699. produces:
  1700. - application/json
  1701. responses:
  1702. "200":
  1703. description: '{"success":true,"data":{},"msg":"更新成功"}'
  1704. schema:
  1705. type: string
  1706. security:
  1707. - ApiKeyAuth: []
  1708. summary: 更新SysDictionary
  1709. tags:
  1710. - SysDictionary
  1711. /sysDictionaryDetail/createSysDictionaryDetail:
  1712. post:
  1713. consumes:
  1714. - application/json
  1715. parameters:
  1716. - description: SysDictionaryDetail模型
  1717. in: body
  1718. name: data
  1719. required: true
  1720. schema:
  1721. $ref: '#/definitions/model.SysDictionaryDetail'
  1722. produces:
  1723. - application/json
  1724. responses:
  1725. "200":
  1726. description: '{"success":true,"data":{},"msg":"创建成功"}'
  1727. schema:
  1728. type: string
  1729. security:
  1730. - ApiKeyAuth: []
  1731. summary: 创建SysDictionaryDetail
  1732. tags:
  1733. - SysDictionaryDetail
  1734. /sysDictionaryDetail/deleteSysDictionaryDetail:
  1735. delete:
  1736. consumes:
  1737. - application/json
  1738. parameters:
  1739. - description: SysDictionaryDetail模型
  1740. in: body
  1741. name: data
  1742. required: true
  1743. schema:
  1744. $ref: '#/definitions/model.SysDictionaryDetail'
  1745. produces:
  1746. - application/json
  1747. responses:
  1748. "200":
  1749. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1750. schema:
  1751. type: string
  1752. security:
  1753. - ApiKeyAuth: []
  1754. summary: 删除SysDictionaryDetail
  1755. tags:
  1756. - SysDictionaryDetail
  1757. /sysDictionaryDetail/findSysDictionaryDetail:
  1758. get:
  1759. consumes:
  1760. - application/json
  1761. parameters:
  1762. - description: 用id查询SysDictionaryDetail
  1763. in: body
  1764. name: data
  1765. required: true
  1766. schema:
  1767. $ref: '#/definitions/model.SysDictionaryDetail'
  1768. produces:
  1769. - application/json
  1770. responses:
  1771. "200":
  1772. description: '{"success":true,"data":{},"msg":"查询成功"}'
  1773. schema:
  1774. type: string
  1775. security:
  1776. - ApiKeyAuth: []
  1777. summary: 用id查询SysDictionaryDetail
  1778. tags:
  1779. - SysDictionaryDetail
  1780. /sysDictionaryDetail/getSysDictionaryDetailList:
  1781. get:
  1782. consumes:
  1783. - application/json
  1784. parameters:
  1785. - description: 页码, 每页大小, 搜索条件
  1786. in: body
  1787. name: data
  1788. required: true
  1789. schema:
  1790. $ref: '#/definitions/request.SysDictionaryDetailSearch'
  1791. produces:
  1792. - application/json
  1793. responses:
  1794. "200":
  1795. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1796. schema:
  1797. type: string
  1798. security:
  1799. - ApiKeyAuth: []
  1800. summary: 分页获取SysDictionaryDetail列表
  1801. tags:
  1802. - SysDictionaryDetail
  1803. /sysDictionaryDetail/updateSysDictionaryDetail:
  1804. put:
  1805. consumes:
  1806. - application/json
  1807. parameters:
  1808. - description: 更新SysDictionaryDetail
  1809. in: body
  1810. name: data
  1811. required: true
  1812. schema:
  1813. $ref: '#/definitions/model.SysDictionaryDetail'
  1814. produces:
  1815. - application/json
  1816. responses:
  1817. "200":
  1818. description: '{"success":true,"data":{},"msg":"更新成功"}'
  1819. schema:
  1820. type: string
  1821. security:
  1822. - ApiKeyAuth: []
  1823. summary: 更新SysDictionaryDetail
  1824. tags:
  1825. - SysDictionaryDetail
  1826. /sysOperationRecord/createSysOperationRecord:
  1827. post:
  1828. consumes:
  1829. - application/json
  1830. parameters:
  1831. - description: 创建SysOperationRecord
  1832. in: body
  1833. name: data
  1834. required: true
  1835. schema:
  1836. $ref: '#/definitions/model.SysOperationRecord'
  1837. produces:
  1838. - application/json
  1839. responses:
  1840. "200":
  1841. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1842. schema:
  1843. type: string
  1844. security:
  1845. - ApiKeyAuth: []
  1846. summary: 创建SysOperationRecord
  1847. tags:
  1848. - SysOperationRecord
  1849. /sysOperationRecord/deleteSysOperationRecord:
  1850. delete:
  1851. consumes:
  1852. - application/json
  1853. parameters:
  1854. - description: SysOperationRecord模型
  1855. in: body
  1856. name: data
  1857. required: true
  1858. schema:
  1859. $ref: '#/definitions/model.SysOperationRecord'
  1860. produces:
  1861. - application/json
  1862. responses:
  1863. "200":
  1864. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1865. schema:
  1866. type: string
  1867. security:
  1868. - ApiKeyAuth: []
  1869. summary: 删除SysOperationRecord
  1870. tags:
  1871. - SysOperationRecord
  1872. /sysOperationRecord/deleteSysOperationRecordByIds:
  1873. delete:
  1874. consumes:
  1875. - application/json
  1876. parameters:
  1877. - description: 批量删除SysOperationRecord
  1878. in: body
  1879. name: data
  1880. required: true
  1881. schema:
  1882. $ref: '#/definitions/request.IdsReq'
  1883. produces:
  1884. - application/json
  1885. responses:
  1886. "200":
  1887. description: '{"success":true,"data":{},"msg":"批量删除成功"}'
  1888. schema:
  1889. type: string
  1890. security:
  1891. - ApiKeyAuth: []
  1892. summary: 批量删除SysOperationRecord
  1893. tags:
  1894. - SysOperationRecord
  1895. /sysOperationRecord/findSysOperationRecord:
  1896. get:
  1897. consumes:
  1898. - application/json
  1899. parameters:
  1900. - description: Id
  1901. in: body
  1902. name: data
  1903. required: true
  1904. schema:
  1905. $ref: '#/definitions/model.SysOperationRecord'
  1906. produces:
  1907. - application/json
  1908. responses:
  1909. "200":
  1910. description: '{"success":true,"data":{},"msg":"查询成功"}'
  1911. schema:
  1912. type: string
  1913. security:
  1914. - ApiKeyAuth: []
  1915. summary: 用id查询SysOperationRecord
  1916. tags:
  1917. - SysOperationRecord
  1918. /sysOperationRecord/getSysOperationRecordList:
  1919. get:
  1920. consumes:
  1921. - application/json
  1922. parameters:
  1923. - description: 页码, 每页大小, 搜索条件
  1924. in: body
  1925. name: data
  1926. required: true
  1927. schema:
  1928. $ref: '#/definitions/request.SysOperationRecordSearch'
  1929. produces:
  1930. - application/json
  1931. responses:
  1932. "200":
  1933. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1934. schema:
  1935. type: string
  1936. security:
  1937. - ApiKeyAuth: []
  1938. summary: 分页获取SysOperationRecord列表
  1939. tags:
  1940. - SysOperationRecord
  1941. /system/ReloadSystem:
  1942. post:
  1943. parameters:
  1944. - description: 重启系统
  1945. in: body
  1946. name: data
  1947. required: true
  1948. schema:
  1949. $ref: '#/definitions/model.System'
  1950. produces:
  1951. - application/json
  1952. responses:
  1953. "200":
  1954. description: '{"success":true,"data":{},"msg":"重启系统成功"}'
  1955. schema:
  1956. type: string
  1957. security:
  1958. - ApiKeyAuth: []
  1959. summary: 重启系统
  1960. tags:
  1961. - System
  1962. /system/getServerInfo:
  1963. post:
  1964. produces:
  1965. - application/json
  1966. responses:
  1967. "200":
  1968. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1969. schema:
  1970. type: string
  1971. security:
  1972. - ApiKeyAuth: []
  1973. summary: 获取服务器信息
  1974. tags:
  1975. - System
  1976. /system/getSystemConfig:
  1977. post:
  1978. produces:
  1979. - application/json
  1980. responses:
  1981. "200":
  1982. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1983. schema:
  1984. type: string
  1985. security:
  1986. - ApiKeyAuth: []
  1987. summary: 获取配置文件内容
  1988. tags:
  1989. - System
  1990. /system/setSystemConfig:
  1991. post:
  1992. parameters:
  1993. - description: 设置配置文件内容
  1994. in: body
  1995. name: data
  1996. required: true
  1997. schema:
  1998. $ref: '#/definitions/model.System'
  1999. produces:
  2000. - application/json
  2001. responses:
  2002. "200":
  2003. description: '{"success":true,"data":{},"msg":"设置成功"}'
  2004. schema:
  2005. type: string
  2006. security:
  2007. - ApiKeyAuth: []
  2008. summary: 设置配置文件内容
  2009. tags:
  2010. - System
  2011. /user/changePassword:
  2012. put:
  2013. parameters:
  2014. - description: 用户名, 原密码, 新密码
  2015. in: body
  2016. name: data
  2017. required: true
  2018. schema:
  2019. $ref: '#/definitions/request.ChangePasswordStruct'
  2020. produces:
  2021. - application/json
  2022. responses:
  2023. "200":
  2024. description: '{"success":true,"data":{},"msg":"修改成功"}'
  2025. schema:
  2026. type: string
  2027. security:
  2028. - ApiKeyAuth: []
  2029. summary: 用户修改密码
  2030. tags:
  2031. - SysUser
  2032. /user/deleteUser:
  2033. delete:
  2034. consumes:
  2035. - application/json
  2036. parameters:
  2037. - description: 用户ID
  2038. in: body
  2039. name: data
  2040. required: true
  2041. schema:
  2042. $ref: '#/definitions/request.GetById'
  2043. produces:
  2044. - application/json
  2045. responses:
  2046. "200":
  2047. description: '{"success":true,"data":{},"msg":"删除成功"}'
  2048. schema:
  2049. type: string
  2050. security:
  2051. - ApiKeyAuth: []
  2052. summary: 删除用户
  2053. tags:
  2054. - SysUser
  2055. /user/getUserList:
  2056. post:
  2057. consumes:
  2058. - application/json
  2059. parameters:
  2060. - description: 页码, 每页大小
  2061. in: body
  2062. name: data
  2063. required: true
  2064. schema:
  2065. $ref: '#/definitions/request.PageInfo'
  2066. produces:
  2067. - application/json
  2068. responses:
  2069. "200":
  2070. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2071. schema:
  2072. type: string
  2073. security:
  2074. - ApiKeyAuth: []
  2075. summary: 分页获取用户列表
  2076. tags:
  2077. - SysUser
  2078. /user/register:
  2079. post:
  2080. parameters:
  2081. - description: 用户名, 昵称, 密码, 角色ID
  2082. in: body
  2083. name: data
  2084. required: true
  2085. schema:
  2086. $ref: '#/definitions/model.SysUser'
  2087. produces:
  2088. - application/json
  2089. responses:
  2090. "200":
  2091. description: '{"success":true,"data":{},"msg":"注册成功"}'
  2092. schema:
  2093. type: string
  2094. summary: 用户注册账号
  2095. tags:
  2096. - SysUser
  2097. /user/setUserAuthority:
  2098. post:
  2099. consumes:
  2100. - application/json
  2101. parameters:
  2102. - description: 用户UUID, 角色ID
  2103. in: body
  2104. name: data
  2105. required: true
  2106. schema:
  2107. $ref: '#/definitions/request.SetUserAuth'
  2108. produces:
  2109. - application/json
  2110. responses:
  2111. "200":
  2112. description: '{"success":true,"data":{},"msg":"修改成功"}'
  2113. schema:
  2114. type: string
  2115. security:
  2116. - ApiKeyAuth: []
  2117. summary: 设置用户权限
  2118. tags:
  2119. - SysUser
  2120. /user/setUserInfo:
  2121. put:
  2122. consumes:
  2123. - application/json
  2124. parameters:
  2125. - description: ID, 用户名, 昵称, 头像链接
  2126. in: body
  2127. name: data
  2128. required: true
  2129. schema:
  2130. $ref: '#/definitions/model.SysUser'
  2131. produces:
  2132. - application/json
  2133. responses:
  2134. "200":
  2135. description: '{"success":true,"data":{},"msg":"设置成功"}'
  2136. schema:
  2137. type: string
  2138. security:
  2139. - ApiKeyAuth: []
  2140. summary: 设置用户信息
  2141. tags:
  2142. - SysUser
  2143. /workflow/createWorkFlow:
  2144. post:
  2145. parameters:
  2146. - description: 注册工作流接口
  2147. in: body
  2148. name: data
  2149. required: true
  2150. schema:
  2151. $ref: '#/definitions/model.SysWorkflow'
  2152. produces:
  2153. - application/json
  2154. responses:
  2155. "200":
  2156. description: '{"success":true,"data":{},"msg":"注册成功"}'
  2157. schema:
  2158. type: string
  2159. summary: 注册工作流
  2160. tags:
  2161. - workflow
  2162. securityDefinitions:
  2163. ApiKeyAuth:
  2164. in: header
  2165. name: x-token
  2166. type: apiKey
  2167. swagger: "2.0"