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.

3073 lines
72 KiB

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