swagger.yaml 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073
  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"