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.

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