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.

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