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.

2800 lines
63 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
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
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.AliyunOSS:
  4. properties:
  5. accessKeyId:
  6. type: string
  7. accessKeySecret:
  8. type: string
  9. bucketName:
  10. type: string
  11. bucketUrl:
  12. type: string
  13. endpoint:
  14. type: string
  15. type: object
  16. config.Captcha:
  17. properties:
  18. imgHeight:
  19. type: integer
  20. imgWidth:
  21. type: integer
  22. keyLong:
  23. type: integer
  24. type: object
  25. config.Casbin:
  26. properties:
  27. modelPath:
  28. type: string
  29. type: object
  30. config.Email:
  31. properties:
  32. from:
  33. type: string
  34. host:
  35. type: string
  36. isSSL:
  37. type: boolean
  38. nickname:
  39. type: string
  40. port:
  41. type: integer
  42. secret:
  43. type: string
  44. to:
  45. type: string
  46. type: object
  47. config.Excel:
  48. properties:
  49. dir:
  50. type: string
  51. type: object
  52. config.JWT:
  53. properties:
  54. bufferTime:
  55. type: integer
  56. expiresTime:
  57. type: integer
  58. signingKey:
  59. type: string
  60. type: object
  61. config.Local:
  62. properties:
  63. path:
  64. type: string
  65. type: object
  66. config.Mysql:
  67. properties:
  68. config:
  69. type: string
  70. dbname:
  71. type: string
  72. logMode:
  73. type: boolean
  74. logZap:
  75. type: string
  76. maxIdleConns:
  77. type: integer
  78. maxOpenConns:
  79. type: integer
  80. password:
  81. type: string
  82. path:
  83. type: string
  84. username:
  85. type: string
  86. type: object
  87. config.Qiniu:
  88. properties:
  89. accessKey:
  90. type: string
  91. bucket:
  92. type: string
  93. imgPath:
  94. type: string
  95. secretKey:
  96. type: string
  97. useCdnDomains:
  98. type: boolean
  99. useHttps:
  100. type: boolean
  101. zone:
  102. type: string
  103. type: object
  104. config.Redis:
  105. properties:
  106. addr:
  107. type: string
  108. db:
  109. type: integer
  110. password:
  111. type: string
  112. type: object
  113. config.Server:
  114. properties:
  115. aliyunOSS:
  116. $ref: '#/definitions/config.AliyunOSS'
  117. type: object
  118. captcha:
  119. $ref: '#/definitions/config.Captcha'
  120. type: object
  121. casbin:
  122. $ref: '#/definitions/config.Casbin'
  123. type: object
  124. email:
  125. $ref: '#/definitions/config.Email'
  126. type: object
  127. excel:
  128. $ref: '#/definitions/config.Excel'
  129. type: object
  130. jwt:
  131. $ref: '#/definitions/config.JWT'
  132. type: object
  133. local:
  134. $ref: '#/definitions/config.Local'
  135. description: oss
  136. type: object
  137. mysql:
  138. $ref: '#/definitions/config.Mysql'
  139. description: gorm
  140. type: object
  141. qiniu:
  142. $ref: '#/definitions/config.Qiniu'
  143. type: object
  144. redis:
  145. $ref: '#/definitions/config.Redis'
  146. type: object
  147. system:
  148. $ref: '#/definitions/config.System'
  149. type: object
  150. tencentCOS:
  151. $ref: '#/definitions/config.TencentCOS'
  152. type: object
  153. zap:
  154. $ref: '#/definitions/config.Zap'
  155. type: object
  156. type: object
  157. config.System:
  158. properties:
  159. addr:
  160. type: integer
  161. dbType:
  162. type: string
  163. env:
  164. type: string
  165. ossType:
  166. type: string
  167. useMultipoint:
  168. type: boolean
  169. type: object
  170. config.TencentCOS:
  171. properties:
  172. baseURL:
  173. type: string
  174. bucket:
  175. type: string
  176. pathPrefix:
  177. type: string
  178. region:
  179. type: string
  180. secretID:
  181. type: string
  182. secretKey:
  183. type: string
  184. type: object
  185. config.Zap:
  186. properties:
  187. director:
  188. type: string
  189. encodeLevel:
  190. type: string
  191. format:
  192. type: string
  193. level:
  194. type: string
  195. linkName:
  196. type: string
  197. logInConsole:
  198. type: boolean
  199. prefix:
  200. type: string
  201. showLine:
  202. type: boolean
  203. stacktraceKey:
  204. type: string
  205. type: object
  206. model.AutoCodeStruct:
  207. properties:
  208. abbreviation:
  209. type: string
  210. autoCreateApiToSql:
  211. type: boolean
  212. autoMoveFile:
  213. type: boolean
  214. description:
  215. type: string
  216. fields:
  217. items:
  218. $ref: '#/definitions/model.Field'
  219. type: array
  220. packageName:
  221. type: string
  222. structName:
  223. type: string
  224. tableName:
  225. type: string
  226. type: object
  227. model.ExaCustomer:
  228. properties:
  229. createdAt:
  230. type: string
  231. customerName:
  232. type: string
  233. customerPhoneData:
  234. type: string
  235. id:
  236. type: integer
  237. sysUser:
  238. $ref: '#/definitions/model.SysUser'
  239. type: object
  240. sysUserAuthorityID:
  241. type: string
  242. sysUserId:
  243. type: integer
  244. updatedAt:
  245. type: string
  246. type: object
  247. model.ExaFileUploadAndDownload:
  248. properties:
  249. createdAt:
  250. type: string
  251. id:
  252. type: integer
  253. key:
  254. type: string
  255. name:
  256. type: string
  257. tag:
  258. type: string
  259. updatedAt:
  260. type: string
  261. url:
  262. type: string
  263. type: object
  264. model.ExcelInfo:
  265. properties:
  266. fileName:
  267. type: string
  268. infoList:
  269. items:
  270. $ref: '#/definitions/model.SysBaseMenu'
  271. type: array
  272. type: object
  273. model.Field:
  274. properties:
  275. columnName:
  276. type: string
  277. comment:
  278. type: string
  279. dataType:
  280. type: string
  281. dataTypeLong:
  282. type: string
  283. dictType:
  284. type: string
  285. fieldDesc:
  286. type: string
  287. fieldJson:
  288. type: string
  289. fieldName:
  290. type: string
  291. fieldSearchType:
  292. type: string
  293. fieldType:
  294. type: string
  295. type: object
  296. model.SysApi:
  297. properties:
  298. apiGroup:
  299. type: string
  300. createdAt:
  301. type: string
  302. description:
  303. type: string
  304. id:
  305. type: integer
  306. method:
  307. type: string
  308. path:
  309. type: string
  310. updatedAt:
  311. type: string
  312. type: object
  313. model.SysAuthority:
  314. properties:
  315. authorityId:
  316. type: string
  317. authorityName:
  318. type: string
  319. children:
  320. items:
  321. $ref: '#/definitions/model.SysAuthority'
  322. type: array
  323. createdAt:
  324. type: string
  325. dataAuthorityId:
  326. items:
  327. $ref: '#/definitions/model.SysAuthority'
  328. type: array
  329. defaultRouter:
  330. type: string
  331. deletedAt:
  332. type: string
  333. menus:
  334. items:
  335. $ref: '#/definitions/model.SysBaseMenu'
  336. type: array
  337. parentId:
  338. type: string
  339. updatedAt:
  340. type: string
  341. type: object
  342. model.SysBaseMenu:
  343. properties:
  344. authoritys:
  345. items:
  346. $ref: '#/definitions/model.SysAuthority'
  347. type: array
  348. children:
  349. items:
  350. $ref: '#/definitions/model.SysBaseMenu'
  351. type: array
  352. closeTab:
  353. type: boolean
  354. component:
  355. type: string
  356. createdAt:
  357. type: string
  358. defaultMenu:
  359. type: boolean
  360. hidden:
  361. type: boolean
  362. icon:
  363. type: string
  364. id:
  365. type: integer
  366. keepAlive:
  367. type: boolean
  368. name:
  369. type: string
  370. parameters:
  371. items:
  372. $ref: '#/definitions/model.SysBaseMenuParameter'
  373. type: array
  374. parentId:
  375. type: string
  376. path:
  377. type: string
  378. sort:
  379. type: integer
  380. title:
  381. type: string
  382. updatedAt:
  383. type: string
  384. type: object
  385. model.SysBaseMenuParameter:
  386. properties:
  387. createdAt:
  388. type: string
  389. id:
  390. type: integer
  391. key:
  392. type: string
  393. sysBaseMenuID:
  394. type: integer
  395. type:
  396. type: string
  397. updatedAt:
  398. type: string
  399. value:
  400. type: string
  401. type: object
  402. model.SysDictionary:
  403. properties:
  404. createdAt:
  405. type: string
  406. desc:
  407. type: string
  408. id:
  409. type: integer
  410. name:
  411. type: string
  412. status:
  413. type: boolean
  414. sysDictionaryDetails:
  415. items:
  416. $ref: '#/definitions/model.SysDictionaryDetail'
  417. type: array
  418. type:
  419. type: string
  420. updatedAt:
  421. type: string
  422. type: object
  423. model.SysDictionaryDetail:
  424. properties:
  425. createdAt:
  426. type: string
  427. id:
  428. type: integer
  429. label:
  430. type: string
  431. sort:
  432. type: integer
  433. status:
  434. type: boolean
  435. sysDictionaryID:
  436. type: integer
  437. updatedAt:
  438. type: string
  439. value:
  440. type: integer
  441. type: object
  442. model.SysOperationRecord:
  443. properties:
  444. agent:
  445. type: string
  446. body:
  447. type: string
  448. createdAt:
  449. type: string
  450. error_message:
  451. type: string
  452. id:
  453. type: integer
  454. ip:
  455. type: string
  456. latency:
  457. type: string
  458. method:
  459. type: string
  460. path:
  461. type: string
  462. resp:
  463. type: string
  464. status:
  465. type: integer
  466. updatedAt:
  467. type: string
  468. user:
  469. $ref: '#/definitions/model.SysUser'
  470. type: object
  471. user_id:
  472. type: integer
  473. type: object
  474. model.SysUser:
  475. properties:
  476. authority:
  477. $ref: '#/definitions/model.SysAuthority'
  478. type: object
  479. authorityId:
  480. type: string
  481. createdAt:
  482. type: string
  483. headerImg:
  484. type: string
  485. id:
  486. type: integer
  487. nickName:
  488. type: string
  489. updatedAt:
  490. type: string
  491. userName:
  492. type: string
  493. uuid:
  494. type: string
  495. type: object
  496. model.System:
  497. properties:
  498. config:
  499. $ref: '#/definitions/config.Server'
  500. type: object
  501. type: object
  502. model.WorkflowEdge:
  503. properties:
  504. clazz:
  505. type: string
  506. conditionExpression:
  507. type: string
  508. createdAt:
  509. type: string
  510. description:
  511. type: string
  512. endPoint:
  513. $ref: '#/definitions/model.WorkflowEndPoint'
  514. description: 终点信息
  515. type: object
  516. hideIcon:
  517. type: boolean
  518. id:
  519. type: string
  520. label:
  521. type: string
  522. reverse:
  523. type: boolean
  524. seq:
  525. type: string
  526. shape:
  527. type: string
  528. source:
  529. type: string
  530. sourceAnchor:
  531. type: integer
  532. startPoint:
  533. $ref: '#/definitions/model.WorkflowStartPoint'
  534. description: 起点信息
  535. type: object
  536. target:
  537. type: string
  538. targetAnchor:
  539. type: integer
  540. updatedAt:
  541. type: string
  542. type: object
  543. model.WorkflowEndPoint:
  544. properties:
  545. createdAt:
  546. type: string
  547. id:
  548. type: integer
  549. index:
  550. type: integer
  551. updatedAt:
  552. type: string
  553. workflowEdgeID:
  554. type: string
  555. x:
  556. type: number
  557. "y":
  558. type: number
  559. type: object
  560. model.WorkflowNode:
  561. properties:
  562. assignType:
  563. type: string
  564. assignValue:
  565. type: string
  566. clazz:
  567. type: string
  568. content:
  569. type: string
  570. createdAt:
  571. type: string
  572. cycle:
  573. type: string
  574. description:
  575. type: string
  576. dueDate:
  577. type: string
  578. duration:
  579. type: string
  580. hideIcon:
  581. type: boolean
  582. id:
  583. type: string
  584. label:
  585. type: string
  586. shape:
  587. type: string
  588. stateValue:
  589. type: string
  590. subject:
  591. type: string
  592. success:
  593. type: boolean
  594. to:
  595. type: string
  596. type:
  597. type: string
  598. updatedAt:
  599. type: string
  600. view:
  601. type: string
  602. waitState:
  603. type: string
  604. workflowProcessID:
  605. type: string
  606. x:
  607. type: number
  608. "y":
  609. type: number
  610. type: object
  611. model.WorkflowProcess:
  612. properties:
  613. category:
  614. type: string
  615. clazz:
  616. type: string
  617. createdAt:
  618. type: string
  619. description:
  620. type: string
  621. edges:
  622. description: 流程链接数据
  623. items:
  624. $ref: '#/definitions/model.WorkflowEdge'
  625. type: array
  626. hideIcon:
  627. type: boolean
  628. id:
  629. type: string
  630. label:
  631. type: string
  632. name:
  633. type: string
  634. nodes:
  635. description: 流程节点数据
  636. items:
  637. $ref: '#/definitions/model.WorkflowNode'
  638. type: array
  639. updatedAt:
  640. type: string
  641. view:
  642. type: string
  643. type: object
  644. model.WorkflowStartPoint:
  645. properties:
  646. createdAt:
  647. type: string
  648. id:
  649. type: integer
  650. index:
  651. type: integer
  652. updatedAt:
  653. type: string
  654. workflowEdgeID:
  655. type: string
  656. x:
  657. type: number
  658. "y":
  659. type: number
  660. type: object
  661. request.AddMenuAuthorityInfo:
  662. properties:
  663. authorityId:
  664. type: string
  665. menus:
  666. items:
  667. $ref: '#/definitions/model.SysBaseMenu'
  668. type: array
  669. type: object
  670. request.CasbinInReceive:
  671. properties:
  672. authorityId:
  673. type: string
  674. casbinInfos:
  675. items:
  676. $ref: '#/definitions/request.CasbinInfo'
  677. type: array
  678. type: object
  679. request.CasbinInfo:
  680. properties:
  681. method:
  682. type: string
  683. path:
  684. type: string
  685. type: object
  686. request.ChangePasswordStruct:
  687. properties:
  688. newPassword:
  689. type: string
  690. password:
  691. type: string
  692. username:
  693. type: string
  694. type: object
  695. request.Empty:
  696. type: object
  697. request.GetAuthorityId:
  698. properties:
  699. authorityId:
  700. type: string
  701. type: object
  702. request.GetById:
  703. properties:
  704. id:
  705. type: number
  706. type: object
  707. request.IdsReq:
  708. properties:
  709. ids:
  710. items:
  711. type: integer
  712. type: array
  713. type: object
  714. request.InitDB:
  715. properties:
  716. dbName:
  717. type: string
  718. host:
  719. type: string
  720. password:
  721. type: string
  722. port:
  723. type: string
  724. userName:
  725. type: string
  726. required:
  727. - dbName
  728. - userName
  729. type: object
  730. request.Login:
  731. properties:
  732. captcha:
  733. type: string
  734. captchaId:
  735. type: string
  736. password:
  737. type: string
  738. username:
  739. type: string
  740. type: object
  741. request.PageInfo:
  742. properties:
  743. page:
  744. type: integer
  745. pageSize:
  746. type: integer
  747. type: object
  748. request.SearchApiParams:
  749. properties:
  750. apiGroup:
  751. type: string
  752. createdAt:
  753. type: string
  754. desc:
  755. type: boolean
  756. description:
  757. type: string
  758. id:
  759. type: integer
  760. method:
  761. type: string
  762. orderKey:
  763. type: string
  764. page:
  765. type: integer
  766. pageSize:
  767. type: integer
  768. path:
  769. type: string
  770. updatedAt:
  771. type: string
  772. type: object
  773. request.SetUserAuth:
  774. properties:
  775. authorityId:
  776. type: string
  777. uuid:
  778. type: string
  779. type: object
  780. request.SysDictionaryDetailSearch:
  781. properties:
  782. createdAt:
  783. type: string
  784. id:
  785. type: integer
  786. label:
  787. type: string
  788. page:
  789. type: integer
  790. pageSize:
  791. type: integer
  792. sort:
  793. type: integer
  794. status:
  795. type: boolean
  796. sysDictionaryID:
  797. type: integer
  798. updatedAt:
  799. type: string
  800. value:
  801. type: integer
  802. type: object
  803. request.SysDictionarySearch:
  804. properties:
  805. createdAt:
  806. type: string
  807. desc:
  808. type: string
  809. id:
  810. type: integer
  811. name:
  812. type: string
  813. page:
  814. type: integer
  815. pageSize:
  816. type: integer
  817. status:
  818. type: boolean
  819. sysDictionaryDetails:
  820. items:
  821. $ref: '#/definitions/model.SysDictionaryDetail'
  822. type: array
  823. type:
  824. type: string
  825. updatedAt:
  826. type: string
  827. type: object
  828. request.SysOperationRecordSearch:
  829. properties:
  830. agent:
  831. type: string
  832. body:
  833. type: string
  834. createdAt:
  835. type: string
  836. error_message:
  837. type: string
  838. id:
  839. type: integer
  840. ip:
  841. type: string
  842. latency:
  843. type: string
  844. method:
  845. type: string
  846. page:
  847. type: integer
  848. pageSize:
  849. type: integer
  850. path:
  851. type: string
  852. resp:
  853. type: string
  854. status:
  855. type: integer
  856. updatedAt:
  857. type: string
  858. user:
  859. $ref: '#/definitions/model.SysUser'
  860. type: object
  861. user_id:
  862. type: integer
  863. type: object
  864. request.WorkflowProcessSearch:
  865. properties:
  866. category:
  867. type: string
  868. clazz:
  869. type: string
  870. createdAt:
  871. type: string
  872. description:
  873. type: string
  874. edges:
  875. description: 流程链接数据
  876. items:
  877. $ref: '#/definitions/model.WorkflowEdge'
  878. type: array
  879. hideIcon:
  880. type: boolean
  881. id:
  882. type: string
  883. label:
  884. type: string
  885. name:
  886. type: string
  887. nodes:
  888. description: 流程节点数据
  889. items:
  890. $ref: '#/definitions/model.WorkflowNode'
  891. type: array
  892. page:
  893. type: integer
  894. pageSize:
  895. type: integer
  896. updatedAt:
  897. type: string
  898. view:
  899. type: string
  900. type: object
  901. response.SysAuthorityCopyResponse:
  902. properties:
  903. authority:
  904. $ref: '#/definitions/model.SysAuthority'
  905. type: object
  906. oldAuthorityId:
  907. type: string
  908. type: object
  909. info:
  910. contact: {}
  911. description: This is a sample Server pets
  912. license: {}
  913. title: Swagger Example API
  914. version: 0.0.1
  915. paths:
  916. /api/createApi:
  917. post:
  918. consumes:
  919. - application/json
  920. parameters:
  921. - description: api路径, api中文描述, api组, 方法
  922. in: body
  923. name: data
  924. required: true
  925. schema:
  926. $ref: '#/definitions/model.SysApi'
  927. produces:
  928. - application/json
  929. responses:
  930. "200":
  931. description: '{"success":true,"data":{},"msg":"创建成功"}'
  932. schema:
  933. type: string
  934. security:
  935. - ApiKeyAuth: []
  936. summary: 创建基础api
  937. tags:
  938. - SysApi
  939. /api/deleteApi:
  940. post:
  941. consumes:
  942. - application/json
  943. parameters:
  944. - description: ID
  945. in: body
  946. name: data
  947. required: true
  948. schema:
  949. $ref: '#/definitions/model.SysApi'
  950. produces:
  951. - application/json
  952. responses:
  953. "200":
  954. description: '{"success":true,"data":{},"msg":"删除成功"}'
  955. schema:
  956. type: string
  957. security:
  958. - ApiKeyAuth: []
  959. summary: 删除api
  960. tags:
  961. - SysApi
  962. /api/getAllApis:
  963. post:
  964. consumes:
  965. - application/json
  966. produces:
  967. - application/json
  968. responses:
  969. "200":
  970. description: '{"success":true,"data":{},"msg":"获取成功"}'
  971. schema:
  972. type: string
  973. security:
  974. - ApiKeyAuth: []
  975. summary: 获取所有的Api 不分页
  976. tags:
  977. - SysApi
  978. /api/getApiById:
  979. post:
  980. consumes:
  981. - application/json
  982. parameters:
  983. - description: 根据id获取api
  984. in: body
  985. name: data
  986. required: true
  987. schema:
  988. $ref: '#/definitions/request.GetById'
  989. produces:
  990. - application/json
  991. responses:
  992. "200":
  993. description: '{"success":true,"data":{},"msg":"获取成功"}'
  994. schema:
  995. type: string
  996. security:
  997. - ApiKeyAuth: []
  998. summary: 根据id获取api
  999. tags:
  1000. - SysApi
  1001. /api/getApiList:
  1002. post:
  1003. consumes:
  1004. - application/json
  1005. parameters:
  1006. - description: 分页获取API列表
  1007. in: body
  1008. name: data
  1009. required: true
  1010. schema:
  1011. $ref: '#/definitions/request.SearchApiParams'
  1012. produces:
  1013. - application/json
  1014. responses:
  1015. "200":
  1016. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1017. schema:
  1018. type: string
  1019. security:
  1020. - ApiKeyAuth: []
  1021. summary: 分页获取API列表
  1022. tags:
  1023. - SysApi
  1024. /api/updateApi:
  1025. post:
  1026. consumes:
  1027. - application/json
  1028. parameters:
  1029. - description: api路径, api中文描述, api组, 方法
  1030. in: body
  1031. name: data
  1032. required: true
  1033. schema:
  1034. $ref: '#/definitions/model.SysApi'
  1035. produces:
  1036. - application/json
  1037. responses:
  1038. "200":
  1039. description: '{"success":true,"data":{},"msg":"修改成功"}'
  1040. schema:
  1041. type: string
  1042. security:
  1043. - ApiKeyAuth: []
  1044. summary: 创建基础api
  1045. tags:
  1046. - SysApi
  1047. /authority/copyAuthority:
  1048. post:
  1049. consumes:
  1050. - application/json
  1051. parameters:
  1052. - description: 旧角色id, 新权限id, 新权限名, 新父角色id
  1053. in: body
  1054. name: data
  1055. required: true
  1056. schema:
  1057. $ref: '#/definitions/response.SysAuthorityCopyResponse'
  1058. produces:
  1059. - application/json
  1060. responses:
  1061. "200":
  1062. description: '{"success":true,"data":{},"msg":"拷贝成功"}'
  1063. schema:
  1064. type: string
  1065. security:
  1066. - ApiKeyAuth: []
  1067. summary: 拷贝角色
  1068. tags:
  1069. - Authority
  1070. /authority/createAuthority:
  1071. post:
  1072. consumes:
  1073. - application/json
  1074. parameters:
  1075. - description: 权限id, 权限名, 父角色id
  1076. in: body
  1077. name: data
  1078. required: true
  1079. schema:
  1080. $ref: '#/definitions/model.SysAuthority'
  1081. produces:
  1082. - application/json
  1083. responses:
  1084. "200":
  1085. description: '{"success":true,"data":{},"msg":"创建成功"}'
  1086. schema:
  1087. type: string
  1088. security:
  1089. - ApiKeyAuth: []
  1090. summary: 创建角色
  1091. tags:
  1092. - Authority
  1093. /authority/deleteAuthority:
  1094. post:
  1095. consumes:
  1096. - application/json
  1097. parameters:
  1098. - description: 删除角色
  1099. in: body
  1100. name: data
  1101. required: true
  1102. schema:
  1103. $ref: '#/definitions/model.SysAuthority'
  1104. produces:
  1105. - application/json
  1106. responses:
  1107. "200":
  1108. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1109. schema:
  1110. type: string
  1111. security:
  1112. - ApiKeyAuth: []
  1113. summary: 删除角色
  1114. tags:
  1115. - Authority
  1116. /authority/getAuthorityList:
  1117. post:
  1118. consumes:
  1119. - application/json
  1120. parameters:
  1121. - description: 页码, 每页大小
  1122. in: body
  1123. name: data
  1124. required: true
  1125. schema:
  1126. $ref: '#/definitions/request.PageInfo'
  1127. produces:
  1128. - application/json
  1129. responses:
  1130. "200":
  1131. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1132. schema:
  1133. type: string
  1134. security:
  1135. - ApiKeyAuth: []
  1136. summary: 分页获取角色列表
  1137. tags:
  1138. - Authority
  1139. /authority/setDataAuthority:
  1140. post:
  1141. consumes:
  1142. - application/json
  1143. parameters:
  1144. - description: 设置角色资源权限
  1145. in: body
  1146. name: data
  1147. required: true
  1148. schema:
  1149. $ref: '#/definitions/model.SysAuthority'
  1150. produces:
  1151. - application/json
  1152. responses:
  1153. "200":
  1154. description: '{"success":true,"data":{},"msg":"设置成功"}'
  1155. schema:
  1156. type: string
  1157. security:
  1158. - ApiKeyAuth: []
  1159. summary: 设置角色资源权限
  1160. tags:
  1161. - Authority
  1162. /authority/updateAuthority:
  1163. post:
  1164. consumes:
  1165. - application/json
  1166. parameters:
  1167. - description: 权限id, 权限名, 父角色id
  1168. in: body
  1169. name: data
  1170. required: true
  1171. schema:
  1172. $ref: '#/definitions/model.SysAuthority'
  1173. produces:
  1174. - application/json
  1175. responses:
  1176. "200":
  1177. description: '{"success":true,"data":{},"msg":"更新成功"}'
  1178. schema:
  1179. type: string
  1180. security:
  1181. - ApiKeyAuth: []
  1182. summary: 更新角色信息
  1183. tags:
  1184. - Authority
  1185. /autoCode/createTemp:
  1186. post:
  1187. consumes:
  1188. - application/json
  1189. parameters:
  1190. - description: 创建自动代码
  1191. in: body
  1192. name: data
  1193. required: true
  1194. schema:
  1195. $ref: '#/definitions/model.AutoCodeStruct'
  1196. produces:
  1197. - application/json
  1198. responses:
  1199. "200":
  1200. description: '{"success":true,"data":{},"msg":"创建成功"}'
  1201. schema:
  1202. type: string
  1203. security:
  1204. - ApiKeyAuth: []
  1205. summary: 自动代码模板
  1206. tags:
  1207. - AutoCode
  1208. /autoCode/getColumn:
  1209. get:
  1210. consumes:
  1211. - application/json
  1212. produces:
  1213. - application/json
  1214. responses:
  1215. "200":
  1216. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1217. schema:
  1218. type: string
  1219. security:
  1220. - ApiKeyAuth: []
  1221. summary: 获取当前表所有字段
  1222. tags:
  1223. - AutoCode
  1224. /autoCode/getDatabase:
  1225. get:
  1226. consumes:
  1227. - application/json
  1228. produces:
  1229. - application/json
  1230. responses:
  1231. "200":
  1232. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1233. schema:
  1234. type: string
  1235. security:
  1236. - ApiKeyAuth: []
  1237. summary: 获取当前所有数据库
  1238. tags:
  1239. - AutoCode
  1240. /autoCode/getTables:
  1241. get:
  1242. consumes:
  1243. - application/json
  1244. produces:
  1245. - application/json
  1246. responses:
  1247. "200":
  1248. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1249. schema:
  1250. type: string
  1251. security:
  1252. - ApiKeyAuth: []
  1253. summary: 获取当前数据库所有表
  1254. tags:
  1255. - AutoCode
  1256. /autoCode/preview:
  1257. post:
  1258. consumes:
  1259. - application/json
  1260. parameters:
  1261. - description: 预览创建代码
  1262. in: body
  1263. name: data
  1264. required: true
  1265. schema:
  1266. $ref: '#/definitions/model.AutoCodeStruct'
  1267. produces:
  1268. - application/json
  1269. responses:
  1270. "200":
  1271. description: '{"success":true,"data":{},"msg":"创建成功"}'
  1272. schema:
  1273. type: string
  1274. security:
  1275. - ApiKeyAuth: []
  1276. summary: 预览创建后的代码
  1277. tags:
  1278. - AutoCode
  1279. /base/captcha:
  1280. post:
  1281. consumes:
  1282. - application/json
  1283. produces:
  1284. - application/json
  1285. responses:
  1286. "200":
  1287. description: '{"success":true,"data":{},"msg":"验证码获取成功"}'
  1288. schema:
  1289. type: string
  1290. security:
  1291. - ApiKeyAuth: []
  1292. summary: 生成验证码
  1293. tags:
  1294. - Base
  1295. /base/login:
  1296. post:
  1297. parameters:
  1298. - description: 用户名, 密码, 验证码
  1299. in: body
  1300. name: data
  1301. required: true
  1302. schema:
  1303. $ref: '#/definitions/request.Login'
  1304. produces:
  1305. - application/json
  1306. responses:
  1307. "200":
  1308. description: '{"success":true,"data":{},"msg":"登陆成功"}'
  1309. schema:
  1310. type: string
  1311. summary: 用户登录
  1312. tags:
  1313. - Base
  1314. /casbin/UpdateCasbin:
  1315. post:
  1316. consumes:
  1317. - application/json
  1318. parameters:
  1319. - description: 权限id, 权限模型列表
  1320. in: body
  1321. name: data
  1322. required: true
  1323. schema:
  1324. $ref: '#/definitions/request.CasbinInReceive'
  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: 更新角色api权限
  1335. tags:
  1336. - Casbin
  1337. /casbin/getPolicyPathByAuthorityId:
  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.CasbinInReceive'
  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: 获取权限列表
  1358. tags:
  1359. - Casbin
  1360. /customer/customer:
  1361. delete:
  1362. consumes:
  1363. - application/json
  1364. parameters:
  1365. - description: 客户ID
  1366. in: body
  1367. name: data
  1368. required: true
  1369. schema:
  1370. $ref: '#/definitions/model.ExaCustomer'
  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. - ExaCustomer
  1383. get:
  1384. consumes:
  1385. - application/json
  1386. parameters:
  1387. - description: 客户ID
  1388. in: body
  1389. name: data
  1390. required: true
  1391. schema:
  1392. $ref: '#/definitions/model.ExaCustomer'
  1393. produces:
  1394. - application/json
  1395. responses:
  1396. "200":
  1397. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1398. schema:
  1399. type: string
  1400. security:
  1401. - ApiKeyAuth: []
  1402. summary: 获取单一客户信息
  1403. tags:
  1404. - ExaCustomer
  1405. post:
  1406. consumes:
  1407. - application/json
  1408. parameters:
  1409. - description: 客户用户名, 客户手机号码
  1410. in: body
  1411. name: data
  1412. required: true
  1413. schema:
  1414. $ref: '#/definitions/model.ExaCustomer'
  1415. produces:
  1416. - application/json
  1417. responses:
  1418. "200":
  1419. description: '{"success":true,"data":{},"msg":"创建成功"}'
  1420. schema:
  1421. type: string
  1422. security:
  1423. - ApiKeyAuth: []
  1424. summary: 创建客户
  1425. tags:
  1426. - ExaCustomer
  1427. put:
  1428. consumes:
  1429. - application/json
  1430. parameters:
  1431. - description: 客户ID, 客户信息
  1432. in: body
  1433. name: data
  1434. required: true
  1435. schema:
  1436. $ref: '#/definitions/model.ExaCustomer'
  1437. produces:
  1438. - application/json
  1439. responses:
  1440. "200":
  1441. description: '{"success":true,"data":{},"msg":"更新成功"}'
  1442. schema:
  1443. type: string
  1444. security:
  1445. - ApiKeyAuth: []
  1446. summary: 更新客户信息
  1447. tags:
  1448. - ExaCustomer
  1449. /customer/customerList:
  1450. get:
  1451. consumes:
  1452. - application/json
  1453. parameters:
  1454. - description: 页码, 每页大小
  1455. in: body
  1456. name: data
  1457. required: true
  1458. schema:
  1459. $ref: '#/definitions/request.PageInfo'
  1460. produces:
  1461. - application/json
  1462. responses:
  1463. "200":
  1464. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1465. schema:
  1466. type: string
  1467. security:
  1468. - ApiKeyAuth: []
  1469. summary: 分页获取权限客户列表
  1470. tags:
  1471. - ExaCustomer
  1472. /email/emailTest:
  1473. post:
  1474. produces:
  1475. - application/json
  1476. responses:
  1477. "200":
  1478. description: '{"success":true,"data":{},"msg":"发送成功"}'
  1479. schema:
  1480. type: string
  1481. security:
  1482. - ApiKeyAuth: []
  1483. summary: 发送测试邮件
  1484. tags:
  1485. - System
  1486. /excel/downloadTemplate:
  1487. get:
  1488. consumes:
  1489. - multipart/form-data
  1490. parameters:
  1491. - description: 模板名称
  1492. in: query
  1493. name: fileName
  1494. required: true
  1495. type: string
  1496. produces:
  1497. - application/json
  1498. responses:
  1499. "200":
  1500. description: ""
  1501. security:
  1502. - ApiKeyAuth: []
  1503. summary: 下载模板
  1504. tags:
  1505. - excel
  1506. /excel/exportExcel:
  1507. post:
  1508. consumes:
  1509. - application/json
  1510. parameters:
  1511. - description: 导出Excel文件信息
  1512. in: body
  1513. name: data
  1514. required: true
  1515. schema:
  1516. $ref: '#/definitions/model.ExcelInfo'
  1517. produces:
  1518. - application/octet-stream
  1519. responses:
  1520. "200":
  1521. description: ""
  1522. security:
  1523. - ApiKeyAuth: []
  1524. summary: 导出Excel
  1525. tags:
  1526. - excel
  1527. /excel/importExcel:
  1528. post:
  1529. consumes:
  1530. - multipart/form-data
  1531. parameters:
  1532. - description: 导入Excel文件
  1533. in: formData
  1534. name: file
  1535. required: true
  1536. type: file
  1537. produces:
  1538. - application/json
  1539. responses:
  1540. "200":
  1541. description: '{"success":true,"data":{},"msg":"导入成功"}'
  1542. schema:
  1543. type: string
  1544. security:
  1545. - ApiKeyAuth: []
  1546. summary: 导入Excel文件
  1547. tags:
  1548. - excel
  1549. /excel/loadExcel:
  1550. get:
  1551. produces:
  1552. - application/json
  1553. responses:
  1554. "200":
  1555. description: '{"success":true,"data":{},"msg":"加载数据成功"}'
  1556. schema:
  1557. type: string
  1558. security:
  1559. - ApiKeyAuth: []
  1560. summary: 加载Excel数据
  1561. tags:
  1562. - excel
  1563. /fileUploadAndDownload/breakpointContinue:
  1564. post:
  1565. consumes:
  1566. - multipart/form-data
  1567. parameters:
  1568. - description: an example for breakpoint resume, 断点续传示例
  1569. in: formData
  1570. name: file
  1571. required: true
  1572. type: file
  1573. produces:
  1574. - application/json
  1575. responses:
  1576. "200":
  1577. description: '{"success":true,"data":{},"msg":"切片创建成功"}'
  1578. schema:
  1579. type: string
  1580. security:
  1581. - ApiKeyAuth: []
  1582. summary: 断点续传到服务器
  1583. tags:
  1584. - ExaFileUploadAndDownload
  1585. /fileUploadAndDownload/deleteFile:
  1586. post:
  1587. parameters:
  1588. - description: 传入文件里面id即可
  1589. in: body
  1590. name: data
  1591. required: true
  1592. schema:
  1593. $ref: '#/definitions/model.ExaFileUploadAndDownload'
  1594. produces:
  1595. - application/json
  1596. responses:
  1597. "200":
  1598. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1599. schema:
  1600. type: string
  1601. security:
  1602. - ApiKeyAuth: []
  1603. summary: 删除文件
  1604. tags:
  1605. - ExaFileUploadAndDownload
  1606. /fileUploadAndDownload/findFile:
  1607. post:
  1608. consumes:
  1609. - multipart/form-data
  1610. parameters:
  1611. - description: 上传文件完成
  1612. in: formData
  1613. name: file
  1614. required: true
  1615. type: file
  1616. produces:
  1617. - application/json
  1618. responses:
  1619. "200":
  1620. description: '{"success":true,"data":{},"msg":"file uploaded, 文件创建成功"}'
  1621. schema:
  1622. type: string
  1623. security:
  1624. - ApiKeyAuth: []
  1625. summary: 创建文件
  1626. tags:
  1627. - ExaFileUploadAndDownload
  1628. /fileUploadAndDownload/getFileList:
  1629. post:
  1630. consumes:
  1631. - application/json
  1632. parameters:
  1633. - description: 页码, 每页大小
  1634. in: body
  1635. name: data
  1636. required: true
  1637. schema:
  1638. $ref: '#/definitions/request.PageInfo'
  1639. produces:
  1640. - application/json
  1641. responses:
  1642. "200":
  1643. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1644. schema:
  1645. type: string
  1646. security:
  1647. - ApiKeyAuth: []
  1648. summary: 分页文件列表
  1649. tags:
  1650. - ExaFileUploadAndDownload
  1651. /fileUploadAndDownload/removeChunk:
  1652. post:
  1653. consumes:
  1654. - multipart/form-data
  1655. parameters:
  1656. - description: 删除缓存切片
  1657. in: formData
  1658. name: file
  1659. required: true
  1660. type: file
  1661. produces:
  1662. - application/json
  1663. responses:
  1664. "200":
  1665. description: '{"success":true,"data":{},"msg":"缓存切片删除成功"}'
  1666. schema:
  1667. type: string
  1668. security:
  1669. - ApiKeyAuth: []
  1670. summary: 删除切片
  1671. tags:
  1672. - ExaFileUploadAndDownload
  1673. /fileUploadAndDownload/upload:
  1674. post:
  1675. consumes:
  1676. - multipart/form-data
  1677. parameters:
  1678. - description: 上传文件示例
  1679. in: formData
  1680. name: file
  1681. required: true
  1682. type: file
  1683. produces:
  1684. - application/json
  1685. responses:
  1686. "200":
  1687. description: '{"success":true,"data":{},"msg":"上传成功"}'
  1688. schema:
  1689. type: string
  1690. security:
  1691. - ApiKeyAuth: []
  1692. summary: 上传文件示例
  1693. tags:
  1694. - ExaFileUploadAndDownload
  1695. /init/checkdb:
  1696. post:
  1697. produces:
  1698. - application/json
  1699. responses:
  1700. "200":
  1701. description: '{"code":0,"data":{},"msg":"探测完成"}'
  1702. schema:
  1703. type: string
  1704. summary: 初始化用户数据库
  1705. tags:
  1706. - CheckDB
  1707. /init/initdb:
  1708. post:
  1709. parameters:
  1710. - description: 初始化数据库参数
  1711. in: body
  1712. name: data
  1713. required: true
  1714. schema:
  1715. $ref: '#/definitions/request.InitDB'
  1716. produces:
  1717. - application/json
  1718. responses:
  1719. "200":
  1720. description: '{"code":0,"data":{},"msg":"自动创建数据库成功"}'
  1721. schema:
  1722. type: string
  1723. summary: 初始化用户数据库
  1724. tags:
  1725. - InitDB
  1726. /jwt/jsonInBlacklist:
  1727. post:
  1728. consumes:
  1729. - application/json
  1730. produces:
  1731. - application/json
  1732. responses:
  1733. "200":
  1734. description: '{"success":true,"data":{},"msg":"拉黑成功"}'
  1735. schema:
  1736. type: string
  1737. security:
  1738. - ApiKeyAuth: []
  1739. summary: jwt加入黑名单
  1740. tags:
  1741. - Jwt
  1742. /menu/GetMenuAuthority:
  1743. post:
  1744. consumes:
  1745. - application/json
  1746. parameters:
  1747. - description: 角色ID
  1748. in: body
  1749. name: data
  1750. required: true
  1751. schema:
  1752. $ref: '#/definitions/request.GetAuthorityId'
  1753. produces:
  1754. - application/json
  1755. responses:
  1756. "200":
  1757. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1758. schema:
  1759. type: string
  1760. security:
  1761. - ApiKeyAuth: []
  1762. summary: 获取指定角色menu
  1763. tags:
  1764. - AuthorityMenu
  1765. /menu/addBaseMenu:
  1766. post:
  1767. consumes:
  1768. - application/json
  1769. parameters:
  1770. - description: 路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记
  1771. in: body
  1772. name: data
  1773. required: true
  1774. schema:
  1775. $ref: '#/definitions/model.SysBaseMenu'
  1776. produces:
  1777. - application/json
  1778. responses:
  1779. "200":
  1780. description: '{"success":true,"data":{},"msg":"添加成功"}'
  1781. schema:
  1782. type: string
  1783. security:
  1784. - ApiKeyAuth: []
  1785. summary: 新增菜单
  1786. tags:
  1787. - Menu
  1788. /menu/addMenuAuthority:
  1789. post:
  1790. consumes:
  1791. - application/json
  1792. parameters:
  1793. - description: 角色ID
  1794. in: body
  1795. name: data
  1796. required: true
  1797. schema:
  1798. $ref: '#/definitions/request.AddMenuAuthorityInfo'
  1799. produces:
  1800. - application/json
  1801. responses:
  1802. "200":
  1803. description: '{"success":true,"data":{},"msg":"添加成功"}'
  1804. schema:
  1805. type: string
  1806. security:
  1807. - ApiKeyAuth: []
  1808. summary: 增加menu和角色关联关系
  1809. tags:
  1810. - AuthorityMenu
  1811. /menu/deleteBaseMenu:
  1812. post:
  1813. consumes:
  1814. - application/json
  1815. parameters:
  1816. - description: 菜单id
  1817. in: body
  1818. name: data
  1819. required: true
  1820. schema:
  1821. $ref: '#/definitions/request.GetById'
  1822. produces:
  1823. - application/json
  1824. responses:
  1825. "200":
  1826. description: '{"success":true,"data":{},"msg":"删除成功"}'
  1827. schema:
  1828. type: string
  1829. security:
  1830. - ApiKeyAuth: []
  1831. summary: 删除菜单
  1832. tags:
  1833. - Menu
  1834. /menu/getBaseMenuById:
  1835. post:
  1836. consumes:
  1837. - application/json
  1838. parameters:
  1839. - description: 菜单id
  1840. in: body
  1841. name: data
  1842. required: true
  1843. schema:
  1844. $ref: '#/definitions/request.GetById'
  1845. produces:
  1846. - application/json
  1847. responses:
  1848. "200":
  1849. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1850. schema:
  1851. type: string
  1852. security:
  1853. - ApiKeyAuth: []
  1854. summary: 根据id获取菜单
  1855. tags:
  1856. - Menu
  1857. /menu/getBaseMenuTree:
  1858. post:
  1859. parameters:
  1860. - description:
  1861. in: body
  1862. name: data
  1863. required: true
  1864. schema:
  1865. $ref: '#/definitions/request.Empty'
  1866. produces:
  1867. - application/json
  1868. responses:
  1869. "200":
  1870. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1871. schema:
  1872. type: string
  1873. security:
  1874. - ApiKeyAuth: []
  1875. summary: 获取用户动态路由
  1876. tags:
  1877. - AuthorityMenu
  1878. /menu/getMenu:
  1879. post:
  1880. parameters:
  1881. - description:
  1882. in: body
  1883. name: data
  1884. required: true
  1885. schema:
  1886. $ref: '#/definitions/request.Empty'
  1887. produces:
  1888. - application/json
  1889. responses:
  1890. "200":
  1891. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1892. schema:
  1893. type: string
  1894. security:
  1895. - ApiKeyAuth: []
  1896. summary: 获取用户动态路由
  1897. tags:
  1898. - AuthorityMenu
  1899. /menu/getMenuList:
  1900. post:
  1901. consumes:
  1902. - application/json
  1903. parameters:
  1904. - description: 页码, 每页大小
  1905. in: body
  1906. name: data
  1907. required: true
  1908. schema:
  1909. $ref: '#/definitions/request.PageInfo'
  1910. produces:
  1911. - application/json
  1912. responses:
  1913. "200":
  1914. description: '{"success":true,"data":{},"msg":"获取成功"}'
  1915. schema:
  1916. type: string
  1917. security:
  1918. - ApiKeyAuth: []
  1919. summary: 分页获取基础menu列表
  1920. tags:
  1921. - Menu
  1922. /menu/updateBaseMenu:
  1923. post:
  1924. consumes:
  1925. - application/json
  1926. parameters:
  1927. - description: 路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记
  1928. in: body
  1929. name: data
  1930. required: true
  1931. schema:
  1932. $ref: '#/definitions/model.SysBaseMenu'
  1933. produces:
  1934. - application/json
  1935. responses:
  1936. "200":
  1937. description: '{"success":true,"data":{},"msg":"更新成功"}'
  1938. schema:
  1939. type: string
  1940. security:
  1941. - ApiKeyAuth: []
  1942. summary: 更新菜单
  1943. tags:
  1944. - Menu
  1945. /simpleUploader/checkFileMd5:
  1946. get:
  1947. parameters:
  1948. - description: md5
  1949. in: query
  1950. name: md5
  1951. required: true
  1952. type: string
  1953. produces:
  1954. - application/json
  1955. responses:
  1956. "200":
  1957. description: '{"success":true,"data":{},"msg":"查询成功"}'
  1958. schema:
  1959. type: string
  1960. security:
  1961. - ApiKeyAuth: []
  1962. summary: 断点续传插件版示例
  1963. tags:
  1964. - SimpleUploader
  1965. /simpleUploader/mergeFileMd5:
  1966. get:
  1967. parameters:
  1968. - description: md5
  1969. in: query
  1970. name: md5
  1971. required: true
  1972. type: string
  1973. produces:
  1974. - application/json
  1975. responses:
  1976. "200":
  1977. description: '{"success":true,"data":{},"msg":"合并成功"}'
  1978. schema:
  1979. type: string
  1980. security:
  1981. - ApiKeyAuth: []
  1982. summary: 合并文件
  1983. tags:
  1984. - SimpleUploader
  1985. /simpleUploader/upload:
  1986. post:
  1987. consumes:
  1988. - multipart/form-data
  1989. parameters:
  1990. - description: 断点续传插件版示例
  1991. in: formData
  1992. name: file
  1993. required: true
  1994. type: file
  1995. produces:
  1996. - application/json
  1997. responses:
  1998. "200":
  1999. description: '{"success":true,"data":{},"msg":"切片创建成功"}'
  2000. schema:
  2001. type: string
  2002. security:
  2003. - ApiKeyAuth: []
  2004. summary: 断点续传插件版示例
  2005. tags:
  2006. - SimpleUploader
  2007. /sysDictionary/createSysDictionary:
  2008. post:
  2009. consumes:
  2010. - application/json
  2011. parameters:
  2012. - description: SysDictionary模型
  2013. in: body
  2014. name: data
  2015. required: true
  2016. schema:
  2017. $ref: '#/definitions/model.SysDictionary'
  2018. produces:
  2019. - application/json
  2020. responses:
  2021. "200":
  2022. description: '{"success":true,"data":{},"msg":"创建成功"}'
  2023. schema:
  2024. type: string
  2025. security:
  2026. - ApiKeyAuth: []
  2027. summary: 创建SysDictionary
  2028. tags:
  2029. - SysDictionary
  2030. /sysDictionary/deleteSysDictionary:
  2031. delete:
  2032. consumes:
  2033. - application/json
  2034. parameters:
  2035. - description: SysDictionary模型
  2036. in: body
  2037. name: data
  2038. required: true
  2039. schema:
  2040. $ref: '#/definitions/model.SysDictionary'
  2041. produces:
  2042. - application/json
  2043. responses:
  2044. "200":
  2045. description: '{"success":true,"data":{},"msg":"删除成功"}'
  2046. schema:
  2047. type: string
  2048. security:
  2049. - ApiKeyAuth: []
  2050. summary: 删除SysDictionary
  2051. tags:
  2052. - SysDictionary
  2053. /sysDictionary/findSysDictionary:
  2054. get:
  2055. consumes:
  2056. - application/json
  2057. parameters:
  2058. - description: ID或字典英名
  2059. in: body
  2060. name: data
  2061. required: true
  2062. schema:
  2063. $ref: '#/definitions/model.SysDictionary'
  2064. produces:
  2065. - application/json
  2066. responses:
  2067. "200":
  2068. description: '{"success":true,"data":{},"msg":"查询成功"}'
  2069. schema:
  2070. type: string
  2071. security:
  2072. - ApiKeyAuth: []
  2073. summary: 用id查询SysDictionary
  2074. tags:
  2075. - SysDictionary
  2076. /sysDictionary/getSysDictionaryList:
  2077. get:
  2078. consumes:
  2079. - application/json
  2080. parameters:
  2081. - description: 页码, 每页大小, 搜索条件
  2082. in: body
  2083. name: data
  2084. required: true
  2085. schema:
  2086. $ref: '#/definitions/request.SysDictionarySearch'
  2087. produces:
  2088. - application/json
  2089. responses:
  2090. "200":
  2091. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2092. schema:
  2093. type: string
  2094. security:
  2095. - ApiKeyAuth: []
  2096. summary: 分页获取SysDictionary列表
  2097. tags:
  2098. - SysDictionary
  2099. /sysDictionary/updateSysDictionary:
  2100. put:
  2101. consumes:
  2102. - application/json
  2103. parameters:
  2104. - description: SysDictionary模型
  2105. in: body
  2106. name: data
  2107. required: true
  2108. schema:
  2109. $ref: '#/definitions/model.SysDictionary'
  2110. produces:
  2111. - application/json
  2112. responses:
  2113. "200":
  2114. description: '{"success":true,"data":{},"msg":"更新成功"}'
  2115. schema:
  2116. type: string
  2117. security:
  2118. - ApiKeyAuth: []
  2119. summary: 更新SysDictionary
  2120. tags:
  2121. - SysDictionary
  2122. /sysDictionaryDetail/createSysDictionaryDetail:
  2123. post:
  2124. consumes:
  2125. - application/json
  2126. parameters:
  2127. - description: SysDictionaryDetail模型
  2128. in: body
  2129. name: data
  2130. required: true
  2131. schema:
  2132. $ref: '#/definitions/model.SysDictionaryDetail'
  2133. produces:
  2134. - application/json
  2135. responses:
  2136. "200":
  2137. description: '{"success":true,"data":{},"msg":"创建成功"}'
  2138. schema:
  2139. type: string
  2140. security:
  2141. - ApiKeyAuth: []
  2142. summary: 创建SysDictionaryDetail
  2143. tags:
  2144. - SysDictionaryDetail
  2145. /sysDictionaryDetail/deleteSysDictionaryDetail:
  2146. delete:
  2147. consumes:
  2148. - application/json
  2149. parameters:
  2150. - description: SysDictionaryDetail模型
  2151. in: body
  2152. name: data
  2153. required: true
  2154. schema:
  2155. $ref: '#/definitions/model.SysDictionaryDetail'
  2156. produces:
  2157. - application/json
  2158. responses:
  2159. "200":
  2160. description: '{"success":true,"data":{},"msg":"删除成功"}'
  2161. schema:
  2162. type: string
  2163. security:
  2164. - ApiKeyAuth: []
  2165. summary: 删除SysDictionaryDetail
  2166. tags:
  2167. - SysDictionaryDetail
  2168. /sysDictionaryDetail/findSysDictionaryDetail:
  2169. get:
  2170. consumes:
  2171. - application/json
  2172. parameters:
  2173. - description: 用id查询SysDictionaryDetail
  2174. in: body
  2175. name: data
  2176. required: true
  2177. schema:
  2178. $ref: '#/definitions/model.SysDictionaryDetail'
  2179. produces:
  2180. - application/json
  2181. responses:
  2182. "200":
  2183. description: '{"success":true,"data":{},"msg":"查询成功"}'
  2184. schema:
  2185. type: string
  2186. security:
  2187. - ApiKeyAuth: []
  2188. summary: 用id查询SysDictionaryDetail
  2189. tags:
  2190. - SysDictionaryDetail
  2191. /sysDictionaryDetail/getSysDictionaryDetailList:
  2192. get:
  2193. consumes:
  2194. - application/json
  2195. parameters:
  2196. - description: 页码, 每页大小, 搜索条件
  2197. in: body
  2198. name: data
  2199. required: true
  2200. schema:
  2201. $ref: '#/definitions/request.SysDictionaryDetailSearch'
  2202. produces:
  2203. - application/json
  2204. responses:
  2205. "200":
  2206. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2207. schema:
  2208. type: string
  2209. security:
  2210. - ApiKeyAuth: []
  2211. summary: 分页获取SysDictionaryDetail列表
  2212. tags:
  2213. - SysDictionaryDetail
  2214. /sysDictionaryDetail/updateSysDictionaryDetail:
  2215. put:
  2216. consumes:
  2217. - application/json
  2218. parameters:
  2219. - description: 更新SysDictionaryDetail
  2220. in: body
  2221. name: data
  2222. required: true
  2223. schema:
  2224. $ref: '#/definitions/model.SysDictionaryDetail'
  2225. produces:
  2226. - application/json
  2227. responses:
  2228. "200":
  2229. description: '{"success":true,"data":{},"msg":"更新成功"}'
  2230. schema:
  2231. type: string
  2232. security:
  2233. - ApiKeyAuth: []
  2234. summary: 更新SysDictionaryDetail
  2235. tags:
  2236. - SysDictionaryDetail
  2237. /sysOperationRecord/createSysOperationRecord:
  2238. post:
  2239. consumes:
  2240. - application/json
  2241. parameters:
  2242. - description: 创建SysOperationRecord
  2243. in: body
  2244. name: data
  2245. required: true
  2246. schema:
  2247. $ref: '#/definitions/model.SysOperationRecord'
  2248. produces:
  2249. - application/json
  2250. responses:
  2251. "200":
  2252. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2253. schema:
  2254. type: string
  2255. security:
  2256. - ApiKeyAuth: []
  2257. summary: 创建SysOperationRecord
  2258. tags:
  2259. - SysOperationRecord
  2260. /sysOperationRecord/deleteSysOperationRecord:
  2261. delete:
  2262. consumes:
  2263. - application/json
  2264. parameters:
  2265. - description: SysOperationRecord模型
  2266. in: body
  2267. name: data
  2268. required: true
  2269. schema:
  2270. $ref: '#/definitions/model.SysOperationRecord'
  2271. produces:
  2272. - application/json
  2273. responses:
  2274. "200":
  2275. description: '{"success":true,"data":{},"msg":"删除成功"}'
  2276. schema:
  2277. type: string
  2278. security:
  2279. - ApiKeyAuth: []
  2280. summary: 删除SysOperationRecord
  2281. tags:
  2282. - SysOperationRecord
  2283. /sysOperationRecord/deleteSysOperationRecordByIds:
  2284. delete:
  2285. consumes:
  2286. - application/json
  2287. parameters:
  2288. - description: 批量删除SysOperationRecord
  2289. in: body
  2290. name: data
  2291. required: true
  2292. schema:
  2293. $ref: '#/definitions/request.IdsReq'
  2294. produces:
  2295. - application/json
  2296. responses:
  2297. "200":
  2298. description: '{"success":true,"data":{},"msg":"批量删除成功"}'
  2299. schema:
  2300. type: string
  2301. security:
  2302. - ApiKeyAuth: []
  2303. summary: 批量删除SysOperationRecord
  2304. tags:
  2305. - SysOperationRecord
  2306. /sysOperationRecord/findSysOperationRecord:
  2307. get:
  2308. consumes:
  2309. - application/json
  2310. parameters:
  2311. - description: Id
  2312. in: body
  2313. name: data
  2314. required: true
  2315. schema:
  2316. $ref: '#/definitions/model.SysOperationRecord'
  2317. produces:
  2318. - application/json
  2319. responses:
  2320. "200":
  2321. description: '{"success":true,"data":{},"msg":"查询成功"}'
  2322. schema:
  2323. type: string
  2324. security:
  2325. - ApiKeyAuth: []
  2326. summary: 用id查询SysOperationRecord
  2327. tags:
  2328. - SysOperationRecord
  2329. /sysOperationRecord/getSysOperationRecordList:
  2330. get:
  2331. consumes:
  2332. - application/json
  2333. parameters:
  2334. - description: 页码, 每页大小, 搜索条件
  2335. in: body
  2336. name: data
  2337. required: true
  2338. schema:
  2339. $ref: '#/definitions/request.SysOperationRecordSearch'
  2340. produces:
  2341. - application/json
  2342. responses:
  2343. "200":
  2344. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2345. schema:
  2346. type: string
  2347. security:
  2348. - ApiKeyAuth: []
  2349. summary: 分页获取SysOperationRecord列表
  2350. tags:
  2351. - SysOperationRecord
  2352. /system/getServerInfo:
  2353. post:
  2354. produces:
  2355. - application/json
  2356. responses:
  2357. "200":
  2358. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2359. schema:
  2360. type: string
  2361. security:
  2362. - ApiKeyAuth: []
  2363. summary: 获取服务器信息
  2364. tags:
  2365. - System
  2366. /system/getSystemConfig:
  2367. post:
  2368. produces:
  2369. - application/json
  2370. responses:
  2371. "200":
  2372. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2373. schema:
  2374. type: string
  2375. security:
  2376. - ApiKeyAuth: []
  2377. summary: 获取配置文件内容
  2378. tags:
  2379. - System
  2380. /system/reloadSystem:
  2381. post:
  2382. produces:
  2383. - application/json
  2384. responses:
  2385. "200":
  2386. description: '{"code":0,"data":{},"msg":"重启系统成功"}'
  2387. schema:
  2388. type: string
  2389. security:
  2390. - ApiKeyAuth: []
  2391. summary: 重启系统
  2392. tags:
  2393. - System
  2394. /system/setSystemConfig:
  2395. post:
  2396. parameters:
  2397. - description: 设置配置文件内容
  2398. in: body
  2399. name: data
  2400. required: true
  2401. schema:
  2402. $ref: '#/definitions/model.System'
  2403. produces:
  2404. - application/json
  2405. responses:
  2406. "200":
  2407. description: '{"success":true,"data":{},"msg":"设置成功"}'
  2408. schema:
  2409. type: string
  2410. security:
  2411. - ApiKeyAuth: []
  2412. summary: 设置配置文件内容
  2413. tags:
  2414. - System
  2415. /user/changePassword:
  2416. put:
  2417. parameters:
  2418. - description: 用户名, 原密码, 新密码
  2419. in: body
  2420. name: data
  2421. required: true
  2422. schema:
  2423. $ref: '#/definitions/request.ChangePasswordStruct'
  2424. produces:
  2425. - application/json
  2426. responses:
  2427. "200":
  2428. description: '{"success":true,"data":{},"msg":"修改成功"}'
  2429. schema:
  2430. type: string
  2431. security:
  2432. - ApiKeyAuth: []
  2433. summary: 用户修改密码
  2434. tags:
  2435. - SysUser
  2436. /user/deleteUser:
  2437. delete:
  2438. consumes:
  2439. - application/json
  2440. parameters:
  2441. - description: 用户ID
  2442. in: body
  2443. name: data
  2444. required: true
  2445. schema:
  2446. $ref: '#/definitions/request.GetById'
  2447. produces:
  2448. - application/json
  2449. responses:
  2450. "200":
  2451. description: '{"success":true,"data":{},"msg":"删除成功"}'
  2452. schema:
  2453. type: string
  2454. security:
  2455. - ApiKeyAuth: []
  2456. summary: 删除用户
  2457. tags:
  2458. - SysUser
  2459. /user/getUserList:
  2460. post:
  2461. consumes:
  2462. - application/json
  2463. parameters:
  2464. - description: 页码, 每页大小
  2465. in: body
  2466. name: data
  2467. required: true
  2468. schema:
  2469. $ref: '#/definitions/request.PageInfo'
  2470. produces:
  2471. - application/json
  2472. responses:
  2473. "200":
  2474. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2475. schema:
  2476. type: string
  2477. security:
  2478. - ApiKeyAuth: []
  2479. summary: 分页获取用户列表
  2480. tags:
  2481. - SysUser
  2482. /user/register:
  2483. post:
  2484. parameters:
  2485. - description: 用户名, 昵称, 密码, 角色ID
  2486. in: body
  2487. name: data
  2488. required: true
  2489. schema:
  2490. $ref: '#/definitions/model.SysUser'
  2491. produces:
  2492. - application/json
  2493. responses:
  2494. "200":
  2495. description: '{"success":true,"data":{},"msg":"注册成功"}'
  2496. schema:
  2497. type: string
  2498. summary: 用户注册账号
  2499. tags:
  2500. - SysUser
  2501. /user/setUserAuthority:
  2502. post:
  2503. consumes:
  2504. - application/json
  2505. parameters:
  2506. - description: 用户UUID, 角色ID
  2507. in: body
  2508. name: data
  2509. required: true
  2510. schema:
  2511. $ref: '#/definitions/request.SetUserAuth'
  2512. produces:
  2513. - application/json
  2514. responses:
  2515. "200":
  2516. description: '{"success":true,"data":{},"msg":"修改成功"}'
  2517. schema:
  2518. type: string
  2519. security:
  2520. - ApiKeyAuth: []
  2521. summary: 设置用户权限
  2522. tags:
  2523. - SysUser
  2524. /user/setUserInfo:
  2525. put:
  2526. consumes:
  2527. - application/json
  2528. parameters:
  2529. - description: ID, 用户名, 昵称, 头像链接
  2530. in: body
  2531. name: data
  2532. required: true
  2533. schema:
  2534. $ref: '#/definitions/model.SysUser'
  2535. produces:
  2536. - application/json
  2537. responses:
  2538. "200":
  2539. description: '{"success":true,"data":{},"msg":"设置成功"}'
  2540. schema:
  2541. type: string
  2542. security:
  2543. - ApiKeyAuth: []
  2544. summary: 设置用户信息
  2545. tags:
  2546. - SysUser
  2547. /workflowProcess/completeWorkflowMove:
  2548. post:
  2549. consumes:
  2550. - application/json
  2551. produces:
  2552. - application/json
  2553. responses:
  2554. "200":
  2555. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2556. schema:
  2557. type: string
  2558. security:
  2559. - ApiKeyAuth: []
  2560. summary: 提交工作流
  2561. tags:
  2562. - WorkflowProcess
  2563. /workflowProcess/createWorkflowProcess:
  2564. post:
  2565. consumes:
  2566. - application/json
  2567. parameters:
  2568. - description: 创建WorkflowProcess
  2569. in: body
  2570. name: data
  2571. required: true
  2572. schema:
  2573. $ref: '#/definitions/model.WorkflowProcess'
  2574. produces:
  2575. - application/json
  2576. responses:
  2577. "200":
  2578. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2579. schema:
  2580. type: string
  2581. security:
  2582. - ApiKeyAuth: []
  2583. summary: 创建WorkflowProcess
  2584. tags:
  2585. - WorkflowProcess
  2586. /workflowProcess/deleteWorkflowProcess:
  2587. delete:
  2588. consumes:
  2589. - application/json
  2590. parameters:
  2591. - description: 删除WorkflowProcess
  2592. in: body
  2593. name: data
  2594. required: true
  2595. schema:
  2596. $ref: '#/definitions/model.WorkflowProcess'
  2597. produces:
  2598. - application/json
  2599. responses:
  2600. "200":
  2601. description: '{"success":true,"data":{},"msg":"删除成功"}'
  2602. schema:
  2603. type: string
  2604. security:
  2605. - ApiKeyAuth: []
  2606. summary: 删除WorkflowProcess
  2607. tags:
  2608. - WorkflowProcess
  2609. /workflowProcess/deleteWorkflowProcessByIds:
  2610. delete:
  2611. consumes:
  2612. - application/json
  2613. parameters:
  2614. - description: 批量删除WorkflowProcess
  2615. in: body
  2616. name: data
  2617. required: true
  2618. schema:
  2619. $ref: '#/definitions/request.IdsReq'
  2620. produces:
  2621. - application/json
  2622. responses:
  2623. "200":
  2624. description: '{"success":true,"data":{},"msg":"删除成功"}'
  2625. schema:
  2626. type: string
  2627. security:
  2628. - ApiKeyAuth: []
  2629. summary: 批量删除WorkflowProcess
  2630. tags:
  2631. - WorkflowProcess
  2632. /workflowProcess/findWorkflowProcess:
  2633. get:
  2634. consumes:
  2635. - application/json
  2636. parameters:
  2637. - description: 用id查询WorkflowProcess
  2638. in: body
  2639. name: data
  2640. required: true
  2641. schema:
  2642. $ref: '#/definitions/model.WorkflowProcess'
  2643. produces:
  2644. - application/json
  2645. responses:
  2646. "200":
  2647. description: '{"success":true,"data":{},"msg":"查询成功"}'
  2648. schema:
  2649. type: string
  2650. security:
  2651. - ApiKeyAuth: []
  2652. summary: 用id查询WorkflowProcess
  2653. tags:
  2654. - WorkflowProcess
  2655. /workflowProcess/findWorkflowStep:
  2656. get:
  2657. consumes:
  2658. - application/json
  2659. parameters:
  2660. - description: 用id查询WorkflowProcess
  2661. in: body
  2662. name: data
  2663. required: true
  2664. schema:
  2665. $ref: '#/definitions/model.WorkflowProcess'
  2666. produces:
  2667. - application/json
  2668. responses:
  2669. "200":
  2670. description: '{"success":true,"data":{},"msg":"查询成功"}'
  2671. schema:
  2672. type: string
  2673. security:
  2674. - ApiKeyAuth: []
  2675. summary: 用id查询工作流步骤
  2676. tags:
  2677. - WorkflowProcess
  2678. /workflowProcess/getMyNeed:
  2679. get:
  2680. consumes:
  2681. - application/json
  2682. produces:
  2683. - application/json
  2684. responses:
  2685. "200":
  2686. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2687. schema:
  2688. type: string
  2689. security:
  2690. - ApiKeyAuth: []
  2691. summary: 我的待办
  2692. tags:
  2693. - WorkflowProcess
  2694. /workflowProcess/getMyStated:
  2695. get:
  2696. consumes:
  2697. - application/json
  2698. produces:
  2699. - application/json
  2700. responses:
  2701. "200":
  2702. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2703. schema:
  2704. type: string
  2705. security:
  2706. - ApiKeyAuth: []
  2707. summary: 我发起的工作流
  2708. tags:
  2709. - WorkflowProcess
  2710. /workflowProcess/getWorkflowMoveByID:
  2711. get:
  2712. consumes:
  2713. - application/json
  2714. parameters:
  2715. - description: 根据id获取当前节点详情和过往
  2716. in: body
  2717. name: data
  2718. required: true
  2719. schema:
  2720. $ref: '#/definitions/request.GetById'
  2721. produces:
  2722. - application/json
  2723. responses:
  2724. "200":
  2725. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2726. schema:
  2727. type: string
  2728. security:
  2729. - ApiKeyAuth: []
  2730. summary: 根据id获取当前节点详情和历史
  2731. tags:
  2732. - WorkflowProcess
  2733. /workflowProcess/getWorkflowProcessList:
  2734. get:
  2735. consumes:
  2736. - application/json
  2737. parameters:
  2738. - description: 分页获取WorkflowProcess列表
  2739. in: body
  2740. name: data
  2741. required: true
  2742. schema:
  2743. $ref: '#/definitions/request.WorkflowProcessSearch'
  2744. produces:
  2745. - application/json
  2746. responses:
  2747. "200":
  2748. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2749. schema:
  2750. type: string
  2751. security:
  2752. - ApiKeyAuth: []
  2753. summary: 分页获取WorkflowProcess列表
  2754. tags:
  2755. - WorkflowProcess
  2756. /workflowProcess/startWorkflow:
  2757. post:
  2758. consumes:
  2759. - application/json
  2760. produces:
  2761. - application/json
  2762. responses:
  2763. "200":
  2764. description: '{"success":true,"data":{},"msg":"获取成功"}'
  2765. schema:
  2766. type: string
  2767. security:
  2768. - ApiKeyAuth: []
  2769. summary: 开启工作流
  2770. tags:
  2771. - WorkflowProcess
  2772. /workflowProcess/updateWorkflowProcess:
  2773. put:
  2774. consumes:
  2775. - application/json
  2776. parameters:
  2777. - description: 更新WorkflowProcess
  2778. in: body
  2779. name: data
  2780. required: true
  2781. schema:
  2782. $ref: '#/definitions/model.WorkflowProcess'
  2783. produces:
  2784. - application/json
  2785. responses:
  2786. "200":
  2787. description: '{"success":true,"data":{},"msg":"更新成功"}'
  2788. schema:
  2789. type: string
  2790. security:
  2791. - ApiKeyAuth: []
  2792. summary: 更新WorkflowProcess
  2793. tags:
  2794. - WorkflowProcess
  2795. securityDefinitions:
  2796. ApiKeyAuth:
  2797. in: header
  2798. name: x-token
  2799. type: apiKey
  2800. swagger: "2.0"