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.

2625 lines
61 KiB

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