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.

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