admin_swagger.yaml 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245
  1. definitions:
  2. IotAdmin_app_system_models.SysApi:
  3. properties:
  4. action:
  5. type: string
  6. createBy:
  7. type: integer
  8. createdAt:
  9. type: string
  10. handle:
  11. type: string
  12. id:
  13. type: integer
  14. path:
  15. type: string
  16. title:
  17. type: string
  18. type:
  19. type: string
  20. updateBy:
  21. type: integer
  22. updatedAt:
  23. type: string
  24. type: object
  25. IotAdmin_app_system_models.SysOrg:
  26. properties:
  27. children:
  28. items:
  29. $ref: '#/definitions/IotAdmin_app_system_models.SysOrg'
  30. type: array
  31. createBy:
  32. type: integer
  33. createdAt:
  34. type: string
  35. dataScope:
  36. type: string
  37. email:
  38. description: 邮箱
  39. type: string
  40. leader:
  41. description: 负责人
  42. type: string
  43. orgId:
  44. description: 部门编码
  45. type: integer
  46. orgName:
  47. description: 部门名称
  48. type: string
  49. orgPath:
  50. type: string
  51. params:
  52. type: string
  53. parentId:
  54. description: 上级部门
  55. type: integer
  56. phone:
  57. description: 手机
  58. type: string
  59. sort:
  60. description: 排序
  61. type: integer
  62. status:
  63. description: 状态
  64. type: integer
  65. updateBy:
  66. type: integer
  67. updatedAt:
  68. type: string
  69. type: object
  70. dto.GetSetSysConfigReq:
  71. properties:
  72. configKey:
  73. type: string
  74. configValue:
  75. type: string
  76. type: object
  77. dto.PassWord:
  78. properties:
  79. newPassword:
  80. type: string
  81. oldPassword:
  82. type: string
  83. type: object
  84. dto.ResetSysUserPwdReq:
  85. properties:
  86. createBy:
  87. type: integer
  88. password:
  89. type: string
  90. updateBy:
  91. type: integer
  92. userId:
  93. description: 用户ID
  94. type: integer
  95. type: object
  96. dto.RoleDataScopeReq:
  97. properties:
  98. dataScope:
  99. type: string
  100. orgIds:
  101. items:
  102. type: integer
  103. type: array
  104. roleId:
  105. type: integer
  106. required:
  107. - dataScope
  108. - roleId
  109. type: object
  110. dto.SysApiDeleteReq:
  111. properties:
  112. ids:
  113. items:
  114. type: integer
  115. type: array
  116. type: object
  117. dto.SysApiUpdateReq:
  118. properties:
  119. action:
  120. type: string
  121. createBy:
  122. type: integer
  123. handle:
  124. type: string
  125. id:
  126. description: 编码
  127. type: integer
  128. path:
  129. type: string
  130. title:
  131. type: string
  132. type:
  133. type: string
  134. updateBy:
  135. type: integer
  136. type: object
  137. dto.SysConfigByKeyReq:
  138. properties:
  139. configKey:
  140. type: string
  141. type: object
  142. dto.SysConfigControl:
  143. properties:
  144. configKey:
  145. type: string
  146. configName:
  147. type: string
  148. configType:
  149. type: string
  150. configValue:
  151. type: string
  152. createBy:
  153. type: integer
  154. id:
  155. description: 编码
  156. type: integer
  157. isFrontend:
  158. type: string
  159. remark:
  160. type: string
  161. updateBy:
  162. type: integer
  163. type: object
  164. dto.SysDictDataDeleteReq:
  165. properties:
  166. ids:
  167. items:
  168. type: integer
  169. type: array
  170. type: object
  171. dto.SysDictDataGetAllResp:
  172. properties:
  173. cssClass:
  174. type: string
  175. label:
  176. type: string
  177. listClass:
  178. type: string
  179. value:
  180. type: string
  181. type: object
  182. dto.SysDictDataInsertReq:
  183. properties:
  184. createBy:
  185. type: integer
  186. cssClass:
  187. type: string
  188. default:
  189. type: string
  190. dictLabel:
  191. type: string
  192. dictSort:
  193. type: integer
  194. dictType:
  195. type: string
  196. dictValue:
  197. type: string
  198. isDefault:
  199. type: string
  200. listClass:
  201. type: string
  202. remark:
  203. type: string
  204. status:
  205. type: integer
  206. updateBy:
  207. type: integer
  208. type: object
  209. dto.SysDictDataUpdateReq:
  210. properties:
  211. createBy:
  212. type: integer
  213. cssClass:
  214. type: string
  215. default:
  216. type: string
  217. dictLabel:
  218. type: string
  219. dictSort:
  220. type: integer
  221. dictType:
  222. type: string
  223. dictValue:
  224. type: string
  225. id:
  226. type: integer
  227. isDefault:
  228. type: string
  229. listClass:
  230. type: string
  231. remark:
  232. type: string
  233. status:
  234. type: integer
  235. updateBy:
  236. type: integer
  237. type: object
  238. dto.SysDictTypeDeleteReq:
  239. properties:
  240. createBy:
  241. type: integer
  242. ids:
  243. items:
  244. type: integer
  245. type: array
  246. updateBy:
  247. type: integer
  248. type: object
  249. dto.SysDictTypeInsertReq:
  250. properties:
  251. createBy:
  252. type: integer
  253. dictName:
  254. type: string
  255. dictType:
  256. type: string
  257. id:
  258. type: integer
  259. remark:
  260. type: string
  261. status:
  262. type: integer
  263. updateBy:
  264. type: integer
  265. type: object
  266. dto.SysDictTypeUpdateReq:
  267. properties:
  268. createBy:
  269. type: integer
  270. dictName:
  271. type: string
  272. dictType:
  273. type: string
  274. id:
  275. type: integer
  276. remark:
  277. type: string
  278. status:
  279. type: integer
  280. updateBy:
  281. type: integer
  282. type: object
  283. dto.SysJobDeleteReq:
  284. properties:
  285. ids:
  286. items:
  287. type: integer
  288. type: array
  289. type: object
  290. dto.SysJobInsertReq:
  291. properties:
  292. args:
  293. type: string
  294. concurrent:
  295. type: integer
  296. createBy:
  297. type: integer
  298. cronExpression:
  299. type: string
  300. invokeTarget:
  301. type: string
  302. jobGroup:
  303. type: string
  304. jobName:
  305. type: string
  306. jobType:
  307. type: integer
  308. misfirePolicy:
  309. type: integer
  310. status:
  311. type: integer
  312. updateBy:
  313. type: integer
  314. type: object
  315. dto.SysJobUpdateReq:
  316. properties:
  317. args:
  318. type: string
  319. concurrent:
  320. type: integer
  321. createBy:
  322. type: integer
  323. cronExpression:
  324. type: string
  325. invokeTarget:
  326. type: string
  327. jobGroup:
  328. type: string
  329. jobId:
  330. description: 编码
  331. type: integer
  332. jobName:
  333. type: string
  334. jobType:
  335. type: integer
  336. misfirePolicy:
  337. type: integer
  338. status:
  339. type: integer
  340. updateBy:
  341. type: integer
  342. type: object
  343. dto.SysLoginLogDeleteReq:
  344. properties:
  345. ids:
  346. items:
  347. type: integer
  348. type: array
  349. type: object
  350. dto.SysMenuDeleteReq:
  351. properties:
  352. createBy:
  353. type: integer
  354. ids:
  355. items:
  356. type: integer
  357. type: array
  358. updateBy:
  359. type: integer
  360. type: object
  361. dto.SysMenuInsertReq:
  362. properties:
  363. action:
  364. description: 请求方式
  365. type: string
  366. apis:
  367. items:
  368. type: integer
  369. type: array
  370. btnClass:
  371. description: 按钮样式
  372. type: string
  373. btnScript:
  374. description: 按钮脚本
  375. type: string
  376. component:
  377. description: Breadcrumb string `form:"breadcrumb" comment:"是否面包屑"`
  378. //是否面包屑
  379. type: string
  380. createBy:
  381. type: integer
  382. icon:
  383. description: 图标
  384. type: string
  385. isFrame:
  386. description: 是否frame
  387. type: string
  388. isHide:
  389. description: 是否显示
  390. type: string
  391. menuId:
  392. description: 编码
  393. type: integer
  394. menuName:
  395. description: 显示名称
  396. type: string
  397. menuType:
  398. description: 菜单类型
  399. type: string
  400. noCache:
  401. description: 是否缓存
  402. type: string
  403. parentId:
  404. description: 上级菜单
  405. type: integer
  406. path:
  407. description: 菜单name
  408. type: string
  409. paths:
  410. description: Path string `form:"path" comment:"路径"` //路径
  411. type: string
  412. permission:
  413. description: 权限编码
  414. type: string
  415. sort:
  416. description: 排序
  417. type: integer
  418. sysApi:
  419. items:
  420. $ref: '#/definitions/IotAdmin_app_system_models.SysApi'
  421. type: array
  422. updateBy:
  423. type: integer
  424. type: object
  425. dto.SysMenuUpdateReq:
  426. properties:
  427. action:
  428. description: 请求方式
  429. type: string
  430. apis:
  431. items:
  432. type: integer
  433. type: array
  434. btnClass:
  435. description: 按钮样式
  436. type: string
  437. btnScript:
  438. description: 按钮脚本
  439. type: string
  440. component:
  441. description: Breadcrumb string `form:"breadcrumb" comment:"是否面包屑"`
  442. //是否面包屑
  443. type: string
  444. createBy:
  445. type: integer
  446. icon:
  447. description: 图标
  448. type: string
  449. isFrame:
  450. description: 是否frame
  451. type: string
  452. isHide:
  453. description: 是否显示
  454. type: string
  455. menuId:
  456. description: 编码
  457. type: integer
  458. menuType:
  459. description: 菜单类型
  460. type: string
  461. noCache:
  462. description: 是否缓存
  463. type: string
  464. parentId:
  465. description: 上级菜单
  466. type: integer
  467. path:
  468. description: 菜单Path
  469. type: string
  470. paths:
  471. description: id路径
  472. type: string
  473. permission:
  474. description: 权限编码
  475. type: string
  476. sort:
  477. description: 排序
  478. type: integer
  479. sysApi:
  480. items:
  481. $ref: '#/definitions/IotAdmin_app_system_models.SysApi'
  482. type: array
  483. title:
  484. description: 显示名称
  485. type: string
  486. updateBy:
  487. type: integer
  488. type: object
  489. dto.SysOperaLogDeleteReq:
  490. properties:
  491. ids:
  492. items:
  493. type: integer
  494. type: array
  495. type: object
  496. dto.SysOrgDeleteReq:
  497. properties:
  498. ids:
  499. items:
  500. type: integer
  501. type: array
  502. type: object
  503. dto.SysOrgInsertReq:
  504. properties:
  505. createBy:
  506. type: integer
  507. email:
  508. description: 邮箱
  509. type: string
  510. leader:
  511. description: 负责人
  512. type: string
  513. orgId:
  514. description: 编码
  515. type: integer
  516. orgName:
  517. description: 组织机构名称
  518. type: string
  519. orgPath:
  520. description: 路径
  521. type: string
  522. parentId:
  523. description: 上级组织机构
  524. type: integer
  525. phone:
  526. description: 手机
  527. type: string
  528. sort:
  529. description: 排序
  530. type: integer
  531. status:
  532. description: 状态
  533. type: integer
  534. updateBy:
  535. type: integer
  536. type: object
  537. dto.SysOrgUpdateReq:
  538. properties:
  539. createBy:
  540. type: integer
  541. email:
  542. description: 邮箱
  543. type: string
  544. leader:
  545. description: 负责人
  546. type: string
  547. orgId:
  548. description: 编码
  549. type: integer
  550. orgName:
  551. description: 组织机构名称
  552. type: string
  553. orgPath:
  554. description: 路径
  555. type: string
  556. parentId:
  557. description: 上级组织机构
  558. type: integer
  559. phone:
  560. description: 手机
  561. type: string
  562. sort:
  563. description: 排序
  564. type: integer
  565. status:
  566. description: 状态
  567. type: integer
  568. updateBy:
  569. type: integer
  570. type: object
  571. dto.SysPostDeleteReq:
  572. properties:
  573. createBy:
  574. type: integer
  575. ids:
  576. items:
  577. type: integer
  578. type: array
  579. updateBy:
  580. type: integer
  581. type: object
  582. dto.SysPostInsertReq:
  583. properties:
  584. createBy:
  585. type: integer
  586. postCode:
  587. type: string
  588. postId:
  589. type: integer
  590. postName:
  591. type: string
  592. remark:
  593. type: string
  594. sort:
  595. type: integer
  596. status:
  597. type: integer
  598. updateBy:
  599. type: integer
  600. type: object
  601. dto.SysPostUpdateReq:
  602. properties:
  603. createBy:
  604. type: integer
  605. postCode:
  606. type: string
  607. postId:
  608. type: integer
  609. postName:
  610. type: string
  611. remark:
  612. type: string
  613. sort:
  614. type: integer
  615. status:
  616. type: integer
  617. updateBy:
  618. type: integer
  619. type: object
  620. dto.SysRoleDeleteReq:
  621. properties:
  622. ids:
  623. items:
  624. type: integer
  625. type: array
  626. type: object
  627. dto.SysRoleInsertReq:
  628. properties:
  629. admin:
  630. type: boolean
  631. createBy:
  632. type: integer
  633. dataScope:
  634. type: string
  635. flag:
  636. description: 标记
  637. type: string
  638. menuIds:
  639. items:
  640. type: integer
  641. type: array
  642. menus:
  643. items:
  644. $ref: '#/definitions/models.SysMenu'
  645. type: array
  646. orgIds:
  647. items:
  648. type: integer
  649. type: array
  650. orgs:
  651. items:
  652. $ref: '#/definitions/IotAdmin_app_system_models.SysOrg'
  653. type: array
  654. remark:
  655. description: 备注
  656. type: string
  657. roleId:
  658. description: 角色编码
  659. type: integer
  660. roleKey:
  661. description: 角色代码
  662. type: string
  663. roleName:
  664. description: 角色名称
  665. type: string
  666. roleSort:
  667. description: 角色排序
  668. type: integer
  669. status:
  670. description: 状态 1禁用 2正常
  671. type: string
  672. updateBy:
  673. type: integer
  674. type: object
  675. dto.SysRoleUpdateReq:
  676. properties:
  677. admin:
  678. type: boolean
  679. createBy:
  680. type: integer
  681. dataScope:
  682. type: string
  683. flag:
  684. description: 标记
  685. type: string
  686. menuIds:
  687. items:
  688. type: integer
  689. type: array
  690. menus:
  691. items:
  692. $ref: '#/definitions/models.SysMenu'
  693. type: array
  694. orgIds:
  695. items:
  696. type: integer
  697. type: array
  698. orgs:
  699. items:
  700. $ref: '#/definitions/IotAdmin_app_system_models.SysOrg'
  701. type: array
  702. remark:
  703. description: 备注
  704. type: string
  705. roleId:
  706. description: 角色编码
  707. type: integer
  708. roleKey:
  709. description: 角色代码
  710. type: string
  711. roleName:
  712. description: 角色名称
  713. type: string
  714. roleSort:
  715. description: 角色排序
  716. type: integer
  717. status:
  718. description: 状态
  719. type: string
  720. updateBy:
  721. type: integer
  722. type: object
  723. dto.SysUserInsertReq:
  724. properties:
  725. avatar:
  726. type: string
  727. createBy:
  728. type: integer
  729. email:
  730. type: string
  731. nickName:
  732. type: string
  733. orgId:
  734. type: integer
  735. password:
  736. type: string
  737. phone:
  738. type: string
  739. postId:
  740. type: integer
  741. remark:
  742. type: string
  743. roleId:
  744. type: integer
  745. sex:
  746. type: string
  747. status:
  748. default: "1"
  749. type: string
  750. updateBy:
  751. type: integer
  752. userId:
  753. description: 用户ID
  754. type: integer
  755. userName:
  756. type: string
  757. type: object
  758. dto.SysUserUpdateReq:
  759. properties:
  760. avatar:
  761. type: string
  762. createBy:
  763. type: integer
  764. email:
  765. type: string
  766. nickName:
  767. type: string
  768. orgId:
  769. type: integer
  770. phone:
  771. type: string
  772. postId:
  773. type: integer
  774. remark:
  775. type: string
  776. roleId:
  777. type: integer
  778. sex:
  779. type: string
  780. status:
  781. default: "1"
  782. type: string
  783. updateBy:
  784. type: integer
  785. userId:
  786. description: 用户ID
  787. type: integer
  788. username:
  789. type: string
  790. type: object
  791. dto.UpdateStatusReq:
  792. properties:
  793. createBy:
  794. type: integer
  795. roleId:
  796. description: 角色编码
  797. type: integer
  798. status:
  799. description: 状态
  800. type: string
  801. updateBy:
  802. type: integer
  803. type: object
  804. dto.UpdateSysUserStatusReq:
  805. properties:
  806. createBy:
  807. type: integer
  808. status:
  809. type: string
  810. updateBy:
  811. type: integer
  812. userId:
  813. description: 用户ID
  814. type: integer
  815. type: object
  816. handler.Login:
  817. properties:
  818. code:
  819. type: string
  820. password:
  821. type: string
  822. username:
  823. type: string
  824. uuid:
  825. type: string
  826. required:
  827. - code
  828. - password
  829. - username
  830. - uuid
  831. type: object
  832. models.SysConfig:
  833. properties:
  834. configKey:
  835. type: string
  836. configName:
  837. type: string
  838. configType:
  839. type: string
  840. configValue:
  841. type: string
  842. createBy:
  843. type: integer
  844. createdAt:
  845. type: string
  846. id:
  847. type: integer
  848. isFrontend:
  849. type: string
  850. remark:
  851. type: string
  852. updateBy:
  853. type: integer
  854. updatedAt:
  855. type: string
  856. type: object
  857. models.SysJob:
  858. properties:
  859. args:
  860. type: string
  861. concurrent:
  862. type: integer
  863. createBy:
  864. type: integer
  865. createdAt:
  866. type: string
  867. cronExpression:
  868. type: string
  869. entryId:
  870. type: integer
  871. invokeTarget:
  872. type: string
  873. jobGroup:
  874. type: string
  875. jobId:
  876. type: integer
  877. jobName:
  878. type: string
  879. jobType:
  880. type: integer
  881. misfirePolicy:
  882. type: integer
  883. status:
  884. type: integer
  885. updateBy:
  886. type: integer
  887. updatedAt:
  888. type: string
  889. type: object
  890. models.SysMenu:
  891. properties:
  892. action:
  893. type: string
  894. apis:
  895. items:
  896. type: integer
  897. type: array
  898. btnClass:
  899. type: string
  900. btnScript:
  901. type: string
  902. children:
  903. items:
  904. $ref: '#/definitions/models.SysMenu'
  905. type: array
  906. component:
  907. description: Breadcrumb string `json:"breadcrumb" gorm:"size:255;"`
  908. type: string
  909. createBy:
  910. type: integer
  911. createdAt:
  912. type: string
  913. dataScope:
  914. type: string
  915. icon:
  916. type: string
  917. is_select:
  918. type: boolean
  919. isFrame:
  920. type: boolean
  921. isHide:
  922. type: boolean
  923. menuId:
  924. type: integer
  925. menuName:
  926. type: string
  927. menuType:
  928. type: string
  929. noCache:
  930. type: boolean
  931. params:
  932. type: string
  933. parentId:
  934. type: integer
  935. path:
  936. type: string
  937. paths:
  938. type: string
  939. permission:
  940. type: string
  941. roleId:
  942. type: integer
  943. sort:
  944. type: integer
  945. sysApi:
  946. items:
  947. $ref: '#/definitions/IotAdmin_app_system_models.SysApi'
  948. type: array
  949. updateBy:
  950. type: integer
  951. updatedAt:
  952. type: string
  953. type: object
  954. response.Page:
  955. properties:
  956. pageIndex:
  957. type: integer
  958. pageSize:
  959. type: integer
  960. total:
  961. type: integer
  962. type: object
  963. response.Response:
  964. properties:
  965. code:
  966. type: integer
  967. msg:
  968. type: string
  969. requestId:
  970. type: string
  971. status:
  972. type: string
  973. type: object
  974. tools.Params:
  975. properties:
  976. treeCode:
  977. type: string
  978. treeName:
  979. type: string
  980. treeParentCode:
  981. type: string
  982. type: object
  983. tools.SysColumns:
  984. properties:
  985. columnComment:
  986. type: string
  987. columnId:
  988. type: integer
  989. columnName:
  990. type: string
  991. columnType:
  992. type: string
  993. createBy:
  994. type: integer
  995. createdAt:
  996. type: string
  997. dictType:
  998. type: string
  999. fkCol:
  1000. items:
  1001. $ref: '#/definitions/tools.SysColumns'
  1002. type: array
  1003. fkLabelId:
  1004. type: string
  1005. fkLabelName:
  1006. type: string
  1007. fkTableName:
  1008. type: string
  1009. fkTableNameBusiness:
  1010. type: string
  1011. fkTableNameClass:
  1012. type: string
  1013. fkTableNamePackage:
  1014. type: string
  1015. goField:
  1016. type: string
  1017. goType:
  1018. type: string
  1019. htmlType:
  1020. type: string
  1021. isIncrement:
  1022. type: string
  1023. isInsert:
  1024. type: string
  1025. isList:
  1026. type: string
  1027. isPk:
  1028. type: string
  1029. isQuery:
  1030. type: string
  1031. isRequired:
  1032. type: string
  1033. isSort:
  1034. type: string
  1035. jsonField:
  1036. type: string
  1037. pk:
  1038. type: boolean
  1039. queryType:
  1040. type: string
  1041. remark:
  1042. type: string
  1043. required:
  1044. type: boolean
  1045. sort:
  1046. type: integer
  1047. tableId:
  1048. type: integer
  1049. updateBy:
  1050. type: integer
  1051. updatedAt:
  1052. type: string
  1053. type: object
  1054. tools.SysTables:
  1055. properties:
  1056. businessName:
  1057. type: string
  1058. className:
  1059. description: 类名
  1060. type: string
  1061. columns:
  1062. items:
  1063. $ref: '#/definitions/tools.SysColumns'
  1064. type: array
  1065. createBy:
  1066. type: integer
  1067. createdAt:
  1068. type: string
  1069. crud:
  1070. type: boolean
  1071. dataScope:
  1072. type: string
  1073. functionAuthor:
  1074. description: 功能作者
  1075. type: string
  1076. functionName:
  1077. description: 功能名称
  1078. type: string
  1079. isActions:
  1080. type: integer
  1081. isAuth:
  1082. type: integer
  1083. isDataScope:
  1084. type: integer
  1085. moduleFrontName:
  1086. description: 前端文件名
  1087. type: string
  1088. moduleName:
  1089. description: go文件名
  1090. type: string
  1091. options:
  1092. type: string
  1093. packageName:
  1094. description: 包名
  1095. type: string
  1096. params:
  1097. $ref: '#/definitions/tools.Params'
  1098. pkColumn:
  1099. type: string
  1100. pkGoField:
  1101. type: string
  1102. pkJsonField:
  1103. type: string
  1104. remark:
  1105. type: string
  1106. tableComment:
  1107. description: 表备注
  1108. type: string
  1109. tableId:
  1110. description: 表编码
  1111. type: integer
  1112. tableName:
  1113. description: 表名称
  1114. type: string
  1115. tplCategory:
  1116. type: string
  1117. tree:
  1118. type: boolean
  1119. treeCode:
  1120. type: string
  1121. treeName:
  1122. type: string
  1123. treeParentCode:
  1124. type: string
  1125. updateBy:
  1126. type: integer
  1127. updatedAt:
  1128. type: string
  1129. type: object
  1130. info:
  1131. contact: {}
  1132. paths:
  1133. /api/captcha:
  1134. get:
  1135. description: 获取验证码
  1136. responses:
  1137. "200":
  1138. description: '{"code": 200, "data": [...]}'
  1139. schema:
  1140. allOf:
  1141. - $ref: '#/definitions/response.Response'
  1142. - properties:
  1143. data:
  1144. type: string
  1145. id:
  1146. type: string
  1147. msg:
  1148. type: string
  1149. type: object
  1150. summary: 获取验证码
  1151. tags:
  1152. - 登陆
  1153. /api/login:
  1154. post:
  1155. consumes:
  1156. - application/json
  1157. description: |-
  1158. 获取token
  1159. LoginHandler can be used by clients to get a jwt token.
  1160. Payload needs to be json in the form of {"username": "USERNAME", "password": "PASSWORD"}.
  1161. Reply will be of the form {"token": "TOKEN"}.
  1162. dev mode:It should be noted that all fields cannot be empty, and a value of 0 can be passed in addition to the account password
  1163. 注意:开发模式:需要注意全部字段不能为空,账号密码外可以传入0值
  1164. parameters:
  1165. - description: account
  1166. in: body
  1167. name: account
  1168. required: true
  1169. schema:
  1170. $ref: '#/definitions/handler.Login'
  1171. responses:
  1172. "200":
  1173. description: '{"code": 200, "expire": "2024-03-07T12:45:48+08:00", "token":
  1174. "" }'
  1175. schema:
  1176. type: string
  1177. summary: 登陆
  1178. tags:
  1179. - 登陆
  1180. /api/logout:
  1181. post:
  1182. consumes:
  1183. - application/json
  1184. description: 获取token
  1185. responses:
  1186. "200":
  1187. description: '{"code": 200, "msg": "成功退出系统" }'
  1188. schema:
  1189. type: string
  1190. security:
  1191. - Bearer: []
  1192. summary: 退出登录
  1193. /api/sys-api:
  1194. delete:
  1195. description: 删除接口管理
  1196. parameters:
  1197. - description: body
  1198. in: body
  1199. name: data
  1200. required: true
  1201. schema:
  1202. $ref: '#/definitions/dto.SysApiDeleteReq'
  1203. responses:
  1204. "200":
  1205. description: '{"code": 200, "message": "删除成功"}'
  1206. schema:
  1207. $ref: '#/definitions/response.Response'
  1208. security:
  1209. - Bearer: []
  1210. summary: 删除接口管理
  1211. tags:
  1212. - 接口管理
  1213. get:
  1214. description: 获取接口管理列表
  1215. parameters:
  1216. - description: 名称
  1217. in: query
  1218. name: name
  1219. type: string
  1220. - description: 标题
  1221. in: query
  1222. name: title
  1223. type: string
  1224. - description: 地址
  1225. in: query
  1226. name: path
  1227. type: string
  1228. - description: 类型
  1229. in: query
  1230. name: action
  1231. type: string
  1232. - description: 页条数
  1233. in: query
  1234. name: pageSize
  1235. type: integer
  1236. - description: 页码
  1237. in: query
  1238. name: pageIndex
  1239. type: integer
  1240. responses:
  1241. "200":
  1242. description: '{"code": 200, "data": [...]}'
  1243. schema:
  1244. allOf:
  1245. - $ref: '#/definitions/response.Response'
  1246. - properties:
  1247. data:
  1248. allOf:
  1249. - $ref: '#/definitions/response.Page'
  1250. - properties:
  1251. list:
  1252. items:
  1253. $ref: '#/definitions/IotAdmin_app_system_models.SysApi'
  1254. type: array
  1255. type: object
  1256. type: object
  1257. security:
  1258. - Bearer: []
  1259. summary: 获取接口管理列表
  1260. tags:
  1261. - 接口管理
  1262. /api/sys-api/{id}:
  1263. get:
  1264. description: 获取接口管理
  1265. parameters:
  1266. - description: id
  1267. in: path
  1268. name: id
  1269. type: string
  1270. responses:
  1271. "200":
  1272. description: '{"code": 200, "data": [...]}'
  1273. schema:
  1274. allOf:
  1275. - $ref: '#/definitions/response.Response'
  1276. - properties:
  1277. data:
  1278. $ref: '#/definitions/IotAdmin_app_system_models.SysApi'
  1279. type: object
  1280. security:
  1281. - Bearer: []
  1282. summary: 获取接口管理
  1283. tags:
  1284. - 接口管理
  1285. put:
  1286. consumes:
  1287. - application/json
  1288. description: 修改接口管理
  1289. parameters:
  1290. - description: body
  1291. in: body
  1292. name: data
  1293. required: true
  1294. schema:
  1295. $ref: '#/definitions/dto.SysApiUpdateReq'
  1296. responses:
  1297. "200":
  1298. description: '{"code": 200, "message": "修改成功"}'
  1299. schema:
  1300. $ref: '#/definitions/response.Response'
  1301. security:
  1302. - Bearer: []
  1303. summary: 修改接口管理
  1304. tags:
  1305. - 接口管理
  1306. /api/sys-config:
  1307. delete:
  1308. description: 删除配置管理
  1309. parameters:
  1310. - description: ids
  1311. in: body
  1312. name: ids
  1313. schema:
  1314. items:
  1315. type: integer
  1316. type: array
  1317. responses:
  1318. "200":
  1319. description: '{"code": 200, "message": "删除成功"}'
  1320. schema:
  1321. $ref: '#/definitions/response.Response'
  1322. security:
  1323. - Bearer: []
  1324. summary: 删除配置管理
  1325. tags:
  1326. - 配置管理
  1327. get:
  1328. description: 获取配置管理列表
  1329. parameters:
  1330. - description: 名称
  1331. in: query
  1332. name: configName
  1333. type: string
  1334. - description: key
  1335. in: query
  1336. name: configKey
  1337. type: string
  1338. - description: 类型
  1339. in: query
  1340. name: configType
  1341. type: string
  1342. - description: 是否前端
  1343. in: query
  1344. name: isFrontend
  1345. type: integer
  1346. - description: 页条数
  1347. in: query
  1348. name: pageSize
  1349. type: integer
  1350. - description: 页码
  1351. in: query
  1352. name: pageIndex
  1353. type: integer
  1354. responses:
  1355. "200":
  1356. description: '{"code": 200, "data": [...]}'
  1357. schema:
  1358. allOf:
  1359. - $ref: '#/definitions/response.Response'
  1360. - properties:
  1361. data:
  1362. allOf:
  1363. - $ref: '#/definitions/response.Page'
  1364. - properties:
  1365. list:
  1366. items:
  1367. $ref: '#/definitions/IotAdmin_app_system_models.SysApi'
  1368. type: array
  1369. type: object
  1370. type: object
  1371. security:
  1372. - Bearer: []
  1373. summary: 获取配置管理列表
  1374. tags:
  1375. - 配置管理
  1376. post:
  1377. consumes:
  1378. - application/json
  1379. description: 创建配置管理
  1380. parameters:
  1381. - description: body
  1382. in: body
  1383. name: data
  1384. required: true
  1385. schema:
  1386. $ref: '#/definitions/dto.SysConfigControl'
  1387. responses:
  1388. "200":
  1389. description: '{"code": 200, "message": "创建成功"}'
  1390. schema:
  1391. $ref: '#/definitions/response.Response'
  1392. security:
  1393. - Bearer: []
  1394. summary: 创建配置管理
  1395. tags:
  1396. - 配置管理
  1397. /api/sys-config/{id}:
  1398. get:
  1399. description: 获取配置管理
  1400. parameters:
  1401. - description: id
  1402. in: path
  1403. name: id
  1404. type: string
  1405. responses:
  1406. "200":
  1407. description: '{"code": 200, "data": [...]}'
  1408. schema:
  1409. allOf:
  1410. - $ref: '#/definitions/response.Response'
  1411. - properties:
  1412. data:
  1413. $ref: '#/definitions/models.SysConfig'
  1414. type: object
  1415. security:
  1416. - Bearer: []
  1417. summary: 获取配置管理
  1418. tags:
  1419. - 配置管理
  1420. put:
  1421. consumes:
  1422. - application/json
  1423. description: 修改配置管理
  1424. parameters:
  1425. - description: body
  1426. in: body
  1427. name: data
  1428. required: true
  1429. schema:
  1430. $ref: '#/definitions/dto.SysConfigControl'
  1431. responses:
  1432. "200":
  1433. description: '{"code": 200, "message": "修改成功"}'
  1434. schema:
  1435. $ref: '#/definitions/response.Response'
  1436. security:
  1437. - Bearer: []
  1438. summary: 修改配置管理
  1439. tags:
  1440. - 配置管理
  1441. /api/sys-dict-data:
  1442. delete:
  1443. description: 删除数据
  1444. parameters:
  1445. - description: body
  1446. in: body
  1447. name: dictCode
  1448. required: true
  1449. schema:
  1450. $ref: '#/definitions/dto.SysDictDataDeleteReq'
  1451. responses:
  1452. "200":
  1453. description: '{"code": 200, "message": "删除成功"}'
  1454. schema:
  1455. $ref: '#/definitions/response.Response'
  1456. security:
  1457. - Bearer: []
  1458. summary: 删除字典数据
  1459. tags:
  1460. - 字典数据
  1461. get:
  1462. description: 获取JSON
  1463. parameters:
  1464. - description: status
  1465. in: query
  1466. name: status
  1467. type: string
  1468. - description: dictCode
  1469. in: query
  1470. name: dictCode
  1471. type: string
  1472. - description: dictType
  1473. in: query
  1474. name: dictType
  1475. type: string
  1476. - description: 页条数
  1477. in: query
  1478. name: pageSize
  1479. type: integer
  1480. - description: 页码
  1481. in: query
  1482. name: pageIndex
  1483. type: integer
  1484. responses:
  1485. "200":
  1486. description: '{"code": 200, "data": [...]}'
  1487. schema:
  1488. $ref: '#/definitions/response.Response'
  1489. security:
  1490. - Bearer: []
  1491. summary: 字典数据列表
  1492. tags:
  1493. - 字典数据
  1494. post:
  1495. consumes:
  1496. - application/json
  1497. description: 获取JSON
  1498. parameters:
  1499. - description: data
  1500. in: body
  1501. name: data
  1502. required: true
  1503. schema:
  1504. $ref: '#/definitions/dto.SysDictDataInsertReq'
  1505. responses:
  1506. "200":
  1507. description: '{"code": 200, "message": "添加成功"}'
  1508. schema:
  1509. $ref: '#/definitions/response.Response'
  1510. security:
  1511. - Bearer: []
  1512. summary: 添加字典数据
  1513. tags:
  1514. - 字典数据
  1515. /api/sys-dict-data/{dictCode}:
  1516. get:
  1517. description: 获取JSON
  1518. parameters:
  1519. - description: 字典编码
  1520. in: path
  1521. name: dictCode
  1522. required: true
  1523. type: integer
  1524. responses:
  1525. "200":
  1526. description: '{"code": 200, "data": [...]}'
  1527. schema:
  1528. $ref: '#/definitions/response.Response'
  1529. security:
  1530. - Bearer: []
  1531. summary: 通过编码获取字典数据
  1532. tags:
  1533. - 字典数据
  1534. put:
  1535. consumes:
  1536. - application/json
  1537. description: 获取JSON
  1538. parameters:
  1539. - description: body
  1540. in: body
  1541. name: data
  1542. required: true
  1543. schema:
  1544. $ref: '#/definitions/dto.SysDictDataUpdateReq'
  1545. responses:
  1546. "200":
  1547. description: '{"code": 200, "message": "修改成功"}'
  1548. schema:
  1549. $ref: '#/definitions/response.Response'
  1550. security:
  1551. - Bearer: []
  1552. summary: 修改字典数据
  1553. tags:
  1554. - 字典数据
  1555. /api/sys-dict-type:
  1556. delete:
  1557. description: 删除字典类型
  1558. parameters:
  1559. - description: body
  1560. in: body
  1561. name: dictCode
  1562. required: true
  1563. schema:
  1564. $ref: '#/definitions/dto.SysDictTypeDeleteReq'
  1565. responses:
  1566. "200":
  1567. description: '{"code": 200, "data": [...]}'
  1568. schema:
  1569. $ref: '#/definitions/response.Response'
  1570. security:
  1571. - Bearer: []
  1572. summary: 删除字典类型
  1573. tags:
  1574. - 字典类型
  1575. get:
  1576. description: 获取JSON
  1577. parameters:
  1578. - description: dictName
  1579. in: query
  1580. name: dictName
  1581. type: string
  1582. - description: dictId
  1583. in: query
  1584. name: dictId
  1585. type: string
  1586. - description: dictType
  1587. in: query
  1588. name: dictType
  1589. type: string
  1590. - description: 页条数
  1591. in: query
  1592. name: pageSize
  1593. type: integer
  1594. - description: 页码
  1595. in: query
  1596. name: pageIndex
  1597. type: integer
  1598. responses:
  1599. "200":
  1600. description: '{"code": 200, "data": [...]}'
  1601. schema:
  1602. $ref: '#/definitions/response.Response'
  1603. security:
  1604. - Bearer: []
  1605. summary: 字典类型列表数据
  1606. tags:
  1607. - 字典类型
  1608. post:
  1609. consumes:
  1610. - application/json
  1611. description: 字典类型创建
  1612. parameters:
  1613. - description: data
  1614. in: body
  1615. name: data
  1616. required: true
  1617. schema:
  1618. $ref: '#/definitions/dto.SysDictTypeInsertReq'
  1619. responses:
  1620. "200":
  1621. description: '{"code": 200, "data": [...]}'
  1622. schema:
  1623. $ref: '#/definitions/response.Response'
  1624. security:
  1625. - Bearer: []
  1626. summary: 添加字典类型
  1627. tags:
  1628. - 字典类型
  1629. /api/sys-dict-type/{id}:
  1630. get:
  1631. description: 获取JSON
  1632. parameters:
  1633. - description: 字典类型编码
  1634. in: path
  1635. name: dictId
  1636. required: true
  1637. type: integer
  1638. responses:
  1639. "200":
  1640. description: '{"code": 200, "data": [...]}'
  1641. schema:
  1642. $ref: '#/definitions/response.Response'
  1643. security:
  1644. - Bearer: []
  1645. summary: 字典类型通过字典id获取
  1646. tags:
  1647. - 字典类型
  1648. put:
  1649. consumes:
  1650. - application/json
  1651. description: 删除字典类型
  1652. parameters:
  1653. - description: body
  1654. in: body
  1655. name: data
  1656. required: true
  1657. schema:
  1658. $ref: '#/definitions/dto.SysDictTypeUpdateReq'
  1659. responses:
  1660. "200":
  1661. description: '{"code": 200, "data": [...]}'
  1662. schema:
  1663. $ref: '#/definitions/response.Response'
  1664. security:
  1665. - Bearer: []
  1666. summary: 删除字典类型
  1667. tags:
  1668. - 字典类型
  1669. /api/sys-job:
  1670. delete:
  1671. description: 删除定时任务
  1672. parameters:
  1673. - description: body
  1674. in: body
  1675. name: data
  1676. required: true
  1677. schema:
  1678. $ref: '#/definitions/dto.SysJobDeleteReq'
  1679. responses:
  1680. "200":
  1681. description: '{"code": 200, "message": "删除成功"}'
  1682. schema:
  1683. $ref: '#/definitions/response.Response'
  1684. security:
  1685. - Bearer: []
  1686. summary: 删除定时任务
  1687. tags:
  1688. - 定时任务管理
  1689. get:
  1690. description: 获取定时任务列表
  1691. parameters:
  1692. - description: 名称
  1693. in: query
  1694. name: jobName
  1695. type: string
  1696. - description: 任务分组
  1697. in: query
  1698. name: jobGroup
  1699. type: string
  1700. - description: 调用类型
  1701. in: query
  1702. name: jobType
  1703. type: integer
  1704. - description: 调用目标
  1705. in: query
  1706. name: invokeTarget
  1707. type: string
  1708. - description: 状态
  1709. in: query
  1710. name: status
  1711. type: integer
  1712. - description: 页条数
  1713. in: query
  1714. name: pageSize
  1715. type: integer
  1716. - description: 页码
  1717. in: query
  1718. name: pageIndex
  1719. type: integer
  1720. responses:
  1721. "200":
  1722. description: '{"code": 200, "data": [...]}'
  1723. schema:
  1724. allOf:
  1725. - $ref: '#/definitions/response.Response'
  1726. - properties:
  1727. data:
  1728. allOf:
  1729. - $ref: '#/definitions/response.Page'
  1730. - properties:
  1731. list:
  1732. items:
  1733. $ref: '#/definitions/models.SysJob'
  1734. type: array
  1735. type: object
  1736. type: object
  1737. security:
  1738. - Bearer: []
  1739. summary: 获取定时任务列表
  1740. tags:
  1741. - 定时任务管理
  1742. post:
  1743. consumes:
  1744. - application/json
  1745. description: 添加定时任务
  1746. parameters:
  1747. - description: data
  1748. in: body
  1749. name: data
  1750. required: true
  1751. schema:
  1752. $ref: '#/definitions/dto.SysJobInsertReq'
  1753. responses:
  1754. "200":
  1755. description: '{"code": 200, "message": "添加成功"}'
  1756. schema:
  1757. $ref: '#/definitions/response.Response'
  1758. security:
  1759. - Bearer: []
  1760. summary: 添加定时任务
  1761. tags:
  1762. - 定时任务管理
  1763. /api/sys-job/{id}:
  1764. get:
  1765. description: 获取定时任务
  1766. parameters:
  1767. - description: id
  1768. in: path
  1769. name: id
  1770. type: integer
  1771. responses:
  1772. "200":
  1773. description: '{"code": 200, "data": [...]}'
  1774. schema:
  1775. allOf:
  1776. - $ref: '#/definitions/response.Response'
  1777. - properties:
  1778. data:
  1779. $ref: '#/definitions/models.SysJob'
  1780. type: object
  1781. security:
  1782. - Bearer: []
  1783. summary: 获取定时任务
  1784. tags:
  1785. - 定时任务管理
  1786. put:
  1787. consumes:
  1788. - application/json
  1789. description: 修改定时任务
  1790. parameters:
  1791. - description: id
  1792. in: path
  1793. name: id
  1794. required: true
  1795. type: integer
  1796. - description: body
  1797. in: body
  1798. name: data
  1799. required: true
  1800. schema:
  1801. $ref: '#/definitions/dto.SysJobUpdateReq'
  1802. responses:
  1803. "200":
  1804. description: '{"code": 200, "message": "修改成功"}'
  1805. schema:
  1806. $ref: '#/definitions/response.Response'
  1807. security:
  1808. - Bearer: []
  1809. summary: 修改定时任务
  1810. tags:
  1811. - 定时任务管理
  1812. /api/sys-job/keys:
  1813. get:
  1814. description: 获取系统内的定时任务
  1815. responses:
  1816. "200":
  1817. description: '{"code": 200, "data": [...]}'
  1818. schema:
  1819. $ref: '#/definitions/response.Response'
  1820. security:
  1821. - Bearer: []
  1822. summary: 获取系统内的定时任务
  1823. tags:
  1824. - 定时任务管理
  1825. /api/sys-job/start/{id}:
  1826. post:
  1827. description: 启动定时任务
  1828. parameters:
  1829. - description: data
  1830. in: body
  1831. name: data
  1832. required: true
  1833. schema:
  1834. $ref: '#/definitions/dto.SysJobInsertReq'
  1835. responses:
  1836. "200":
  1837. description: '{"code": 200, "message": "添加成功"}'
  1838. schema:
  1839. $ref: '#/definitions/response.Response'
  1840. security:
  1841. - Bearer: []
  1842. summary: 启动定时任务
  1843. tags:
  1844. - 定时任务管理
  1845. /api/sys-job/stop/{id}:
  1846. post:
  1847. description: 停止定时任务
  1848. parameters:
  1849. - description: data
  1850. in: body
  1851. name: data
  1852. required: true
  1853. schema:
  1854. $ref: '#/definitions/dto.SysJobInsertReq'
  1855. responses:
  1856. "200":
  1857. description: '{"code": 200, "message": "添加成功"}'
  1858. schema:
  1859. $ref: '#/definitions/response.Response'
  1860. security:
  1861. - Bearer: []
  1862. summary: 停止定时任务
  1863. tags:
  1864. - 定时任务管理
  1865. /api/sys-login-log:
  1866. delete:
  1867. description: 登录日志删除
  1868. parameters:
  1869. - description: body
  1870. in: body
  1871. name: data
  1872. required: true
  1873. schema:
  1874. $ref: '#/definitions/dto.SysLoginLogDeleteReq'
  1875. responses:
  1876. "200":
  1877. description: '{"code": 200, "data": [...]}'
  1878. schema:
  1879. $ref: '#/definitions/response.Response'
  1880. security:
  1881. - Bearer: []
  1882. summary: 登录日志删除
  1883. tags:
  1884. - 登录日志
  1885. get:
  1886. description: 获取JSON
  1887. parameters:
  1888. - description: 用户名
  1889. in: query
  1890. name: username
  1891. type: string
  1892. - description: ip地址
  1893. in: query
  1894. name: ipaddr
  1895. type: string
  1896. - description: 归属地
  1897. in: query
  1898. name: loginLocation
  1899. type: string
  1900. - description: 状态
  1901. in: query
  1902. name: status
  1903. type: string
  1904. - description: 开始时间
  1905. in: query
  1906. name: beginTime
  1907. type: string
  1908. - description: 结束时间
  1909. in: query
  1910. name: endTime
  1911. type: string
  1912. responses:
  1913. "200":
  1914. description: '{"code": 200, "data": [...]}'
  1915. schema:
  1916. $ref: '#/definitions/response.Response'
  1917. security:
  1918. - Bearer: []
  1919. summary: 登录日志列表
  1920. tags:
  1921. - 登录日志
  1922. /api/sys-login-log/{id}:
  1923. get:
  1924. description: 获取JSON
  1925. parameters:
  1926. - description: id
  1927. in: path
  1928. name: id
  1929. type: string
  1930. responses:
  1931. "200":
  1932. description: '{"code": 200, "data": [...]}'
  1933. schema:
  1934. $ref: '#/definitions/response.Response'
  1935. security:
  1936. - Bearer: []
  1937. summary: 登录日志通过id获取
  1938. tags:
  1939. - 登录日志
  1940. /api/sys-menu:
  1941. delete:
  1942. description: 删除数据
  1943. parameters:
  1944. - description: body
  1945. in: body
  1946. name: data
  1947. required: true
  1948. schema:
  1949. $ref: '#/definitions/dto.SysMenuDeleteReq'
  1950. responses:
  1951. "200":
  1952. description: '{"code": 200, "data": [...]}'
  1953. schema:
  1954. $ref: '#/definitions/response.Response'
  1955. security:
  1956. - Bearer: []
  1957. summary: 删除菜单
  1958. tags:
  1959. - 菜单
  1960. get:
  1961. description: 获取JSON
  1962. parameters:
  1963. - description: menuName
  1964. in: query
  1965. name: menuName
  1966. type: string
  1967. responses:
  1968. "200":
  1969. description: '{"code": 200, "data": [...]}'
  1970. schema:
  1971. $ref: '#/definitions/response.Response'
  1972. security:
  1973. - Bearer: []
  1974. summary: Menu列表数据
  1975. tags:
  1976. - 菜单
  1977. post:
  1978. consumes:
  1979. - application/json
  1980. description: 获取JSON
  1981. parameters:
  1982. - description: data
  1983. in: body
  1984. name: data
  1985. required: true
  1986. schema:
  1987. $ref: '#/definitions/dto.SysMenuInsertReq'
  1988. responses:
  1989. "200":
  1990. description: '{"code": 200, "data": [...]}'
  1991. schema:
  1992. $ref: '#/definitions/response.Response'
  1993. security:
  1994. - Bearer: []
  1995. summary: 创建菜单
  1996. tags:
  1997. - 菜单
  1998. /api/sys-menu/{id}:
  1999. get:
  2000. description: 获取JSON
  2001. parameters:
  2002. - description: id
  2003. in: path
  2004. name: id
  2005. type: string
  2006. responses:
  2007. "200":
  2008. description: '{"code": 200, "data": [...]}'
  2009. schema:
  2010. $ref: '#/definitions/response.Response'
  2011. security:
  2012. - Bearer: []
  2013. summary: Menu详情数据
  2014. tags:
  2015. - 菜单
  2016. put:
  2017. consumes:
  2018. - application/json
  2019. description: 获取JSON
  2020. parameters:
  2021. - description: id
  2022. in: path
  2023. name: id
  2024. required: true
  2025. type: integer
  2026. - description: body
  2027. in: body
  2028. name: data
  2029. required: true
  2030. schema:
  2031. $ref: '#/definitions/dto.SysMenuUpdateReq'
  2032. responses:
  2033. "200":
  2034. description: '{"code": 200, "data": [...]}'
  2035. schema:
  2036. $ref: '#/definitions/response.Response'
  2037. security:
  2038. - Bearer: []
  2039. summary: 修改菜单
  2040. tags:
  2041. - 菜单
  2042. /api/sys-opera-log:
  2043. delete:
  2044. description: 删除数据
  2045. parameters:
  2046. - description: body
  2047. in: body
  2048. name: data
  2049. required: true
  2050. schema:
  2051. $ref: '#/definitions/dto.SysOperaLogDeleteReq'
  2052. responses:
  2053. "200":
  2054. description: '{"code": 200, "data": [...]}'
  2055. schema:
  2056. $ref: '#/definitions/response.Response'
  2057. security:
  2058. - Bearer: []
  2059. summary: 删除操作日志
  2060. tags:
  2061. - 操作日志
  2062. get:
  2063. description: 获取JSON
  2064. parameters:
  2065. - description: title
  2066. in: query
  2067. name: title
  2068. type: string
  2069. - description: method
  2070. in: query
  2071. name: method
  2072. type: string
  2073. - description: requestMethod
  2074. in: query
  2075. name: requestMethod
  2076. type: string
  2077. - description: operUrl
  2078. in: query
  2079. name: operUrl
  2080. type: string
  2081. - description: operIp
  2082. in: query
  2083. name: operIp
  2084. type: string
  2085. - description: status
  2086. in: query
  2087. name: status
  2088. type: string
  2089. - description: beginTime
  2090. in: query
  2091. name: beginTime
  2092. type: string
  2093. - description: endTime
  2094. in: query
  2095. name: endTime
  2096. type: string
  2097. responses:
  2098. "200":
  2099. description: '{"code": 200, "data": [...]}'
  2100. schema:
  2101. $ref: '#/definitions/response.Response'
  2102. security:
  2103. - Bearer: []
  2104. summary: 操作日志列表
  2105. tags:
  2106. - 操作日志
  2107. /api/sys-opera-log/{id}:
  2108. get:
  2109. description: 获取JSON
  2110. parameters:
  2111. - description: id
  2112. in: path
  2113. name: id
  2114. type: string
  2115. responses:
  2116. "200":
  2117. description: '{"code": 200, "data": [...]}'
  2118. schema:
  2119. $ref: '#/definitions/response.Response'
  2120. security:
  2121. - Bearer: []
  2122. summary: 操作日志通过id获取
  2123. tags:
  2124. - 操作日志
  2125. /api/sys-org:
  2126. delete:
  2127. description: 删除数据
  2128. parameters:
  2129. - description: body
  2130. in: body
  2131. name: data
  2132. required: true
  2133. schema:
  2134. $ref: '#/definitions/dto.SysOrgDeleteReq'
  2135. responses:
  2136. "200":
  2137. description: '{"code": -1, "message": "删除失败"}'
  2138. schema:
  2139. type: string
  2140. security:
  2141. - Bearer: []
  2142. summary: 删除部门
  2143. tags:
  2144. - 部门
  2145. get:
  2146. description: 分页列表
  2147. parameters:
  2148. - description: orgName
  2149. in: query
  2150. name: orgName
  2151. type: string
  2152. - description: orgId
  2153. in: query
  2154. name: orgId
  2155. type: string
  2156. - description: position
  2157. in: query
  2158. name: position
  2159. type: string
  2160. responses:
  2161. "200":
  2162. description: '{"code": 200, "data": [...]}'
  2163. schema:
  2164. $ref: '#/definitions/response.Response'
  2165. security:
  2166. - Bearer: []
  2167. summary: 分页部门列表数据
  2168. tags:
  2169. - 部门
  2170. post:
  2171. consumes:
  2172. - application/json
  2173. description: 获取JSON
  2174. parameters:
  2175. - description: data
  2176. in: body
  2177. name: data
  2178. required: true
  2179. schema:
  2180. $ref: '#/definitions/dto.SysOrgInsertReq'
  2181. responses:
  2182. "200":
  2183. description: '{"code": -1, "message": "添加失败"}'
  2184. schema:
  2185. type: string
  2186. security:
  2187. - Bearer: []
  2188. summary: 添加部门
  2189. tags:
  2190. - 部门
  2191. /api/sys-org/{id}:
  2192. get:
  2193. description: 获取JSON
  2194. parameters:
  2195. - description: orgId
  2196. in: path
  2197. name: orgId
  2198. type: string
  2199. responses:
  2200. "200":
  2201. description: '{"code": 200, "data": [...]}'
  2202. schema:
  2203. $ref: '#/definitions/response.Response'
  2204. security:
  2205. - Bearer: []
  2206. summary: 获取部门数据
  2207. tags:
  2208. - 部门
  2209. put:
  2210. consumes:
  2211. - application/json
  2212. description: 获取JSON
  2213. parameters:
  2214. - description: id
  2215. in: path
  2216. name: id
  2217. required: true
  2218. type: integer
  2219. - description: body
  2220. in: body
  2221. name: data
  2222. required: true
  2223. schema:
  2224. $ref: '#/definitions/dto.SysOrgUpdateReq'
  2225. responses:
  2226. "200":
  2227. description: '{"code": -1, "message": "添加失败"}'
  2228. schema:
  2229. type: string
  2230. security:
  2231. - Bearer: []
  2232. summary: 修改部门
  2233. tags:
  2234. - 部门
  2235. /api/sys-post:
  2236. delete:
  2237. description: 删除数据
  2238. parameters:
  2239. - description: 请求参数
  2240. in: body
  2241. name: id
  2242. required: true
  2243. schema:
  2244. $ref: '#/definitions/dto.SysPostDeleteReq'
  2245. responses:
  2246. "200":
  2247. description: '{"code": 200, "data": [...]}'
  2248. schema:
  2249. $ref: '#/definitions/response.Response'
  2250. security:
  2251. - Bearer: []
  2252. summary: 删除岗位
  2253. tags:
  2254. - 岗位
  2255. get:
  2256. description: 获取JSON
  2257. parameters:
  2258. - description: postName
  2259. in: query
  2260. name: postName
  2261. type: string
  2262. - description: postCode
  2263. in: query
  2264. name: postCode
  2265. type: string
  2266. - description: postId
  2267. in: query
  2268. name: postId
  2269. type: string
  2270. - description: status
  2271. in: query
  2272. name: status
  2273. type: string
  2274. responses:
  2275. "200":
  2276. description: '{"code": 200, "data": [...]}'
  2277. schema:
  2278. $ref: '#/definitions/response.Response'
  2279. security:
  2280. - Bearer: []
  2281. summary: 岗位列表数据
  2282. tags:
  2283. - 岗位
  2284. post:
  2285. consumes:
  2286. - application/json
  2287. description: 获取JSON
  2288. parameters:
  2289. - description: data
  2290. in: body
  2291. name: data
  2292. required: true
  2293. schema:
  2294. $ref: '#/definitions/dto.SysPostInsertReq'
  2295. responses:
  2296. "200":
  2297. description: '{"code": 200, "data": [...]}'
  2298. schema:
  2299. $ref: '#/definitions/response.Response'
  2300. security:
  2301. - Bearer: []
  2302. summary: 添加岗位
  2303. tags:
  2304. - 岗位
  2305. /api/sys-post/{id}:
  2306. get:
  2307. description: 获取JSON
  2308. parameters:
  2309. - description: 编码
  2310. in: path
  2311. name: id
  2312. required: true
  2313. type: integer
  2314. responses:
  2315. "200":
  2316. description: '{"code": 200, "data": [...]}'
  2317. schema:
  2318. $ref: '#/definitions/response.Response'
  2319. security:
  2320. - Bearer: []
  2321. summary: 获取岗位信息
  2322. tags:
  2323. - 岗位
  2324. put:
  2325. consumes:
  2326. - application/json
  2327. description: 获取JSON
  2328. parameters:
  2329. - description: body
  2330. in: body
  2331. name: data
  2332. required: true
  2333. schema:
  2334. $ref: '#/definitions/dto.SysPostUpdateReq'
  2335. responses:
  2336. "200":
  2337. description: '{"code": 200, "data": [...]}'
  2338. schema:
  2339. $ref: '#/definitions/response.Response'
  2340. security:
  2341. - Bearer: []
  2342. summary: 修改岗位
  2343. tags:
  2344. - 岗位
  2345. /api/sys-role:
  2346. delete:
  2347. description: 删除数据
  2348. parameters:
  2349. - description: body
  2350. in: body
  2351. name: data
  2352. required: true
  2353. schema:
  2354. $ref: '#/definitions/dto.SysRoleDeleteReq'
  2355. responses:
  2356. "200":
  2357. description: '{"code": 200, "data": [...]}'
  2358. schema:
  2359. $ref: '#/definitions/response.Response'
  2360. security:
  2361. - Bearer: []
  2362. summary: 删除用户角色
  2363. tags:
  2364. - 角色
  2365. get:
  2366. description: Get JSON
  2367. parameters:
  2368. - description: roleName
  2369. in: query
  2370. name: roleName
  2371. type: string
  2372. - description: status
  2373. in: query
  2374. name: status
  2375. type: string
  2376. - description: roleKey
  2377. in: query
  2378. name: roleKey
  2379. type: string
  2380. - description: 页条数
  2381. in: query
  2382. name: pageSize
  2383. type: integer
  2384. - description: 页码
  2385. in: query
  2386. name: pageIndex
  2387. type: integer
  2388. responses:
  2389. "200":
  2390. description: '{"code": 200, "data": [...]}'
  2391. schema:
  2392. $ref: '#/definitions/response.Response'
  2393. security:
  2394. - Bearer: []
  2395. summary: 角色列表数据
  2396. tags:
  2397. - 角色
  2398. post:
  2399. consumes:
  2400. - application/json
  2401. description: 获取JSON
  2402. parameters:
  2403. - description: data
  2404. in: body
  2405. name: data
  2406. required: true
  2407. schema:
  2408. $ref: '#/definitions/dto.SysRoleInsertReq'
  2409. responses:
  2410. "200":
  2411. description: '{"code": 200, "data": [...]}'
  2412. schema:
  2413. $ref: '#/definitions/response.Response'
  2414. security:
  2415. - Bearer: []
  2416. summary: 创建角色
  2417. tags:
  2418. - 角色
  2419. /api/sys-role/{id}:
  2420. get:
  2421. description: 获取JSON
  2422. parameters:
  2423. - description: id
  2424. in: path
  2425. name: id
  2426. type: string
  2427. responses:
  2428. "200":
  2429. description: '{"code": 200, "data": [...]}'
  2430. schema:
  2431. $ref: '#/definitions/response.Response'
  2432. security:
  2433. - Bearer: []
  2434. summary: 获取Role数据
  2435. tags:
  2436. - 角色
  2437. put:
  2438. consumes:
  2439. - application/json
  2440. description: 获取JSON
  2441. parameters:
  2442. - description: body
  2443. in: body
  2444. name: data
  2445. required: true
  2446. schema:
  2447. $ref: '#/definitions/dto.SysRoleUpdateReq'
  2448. responses:
  2449. "200":
  2450. description: '{"code": 200, "data": [...]}'
  2451. schema:
  2452. $ref: '#/definitions/response.Response'
  2453. security:
  2454. - Bearer: []
  2455. summary: 修改用户角色
  2456. tags:
  2457. - 角色
  2458. /api/sys-role/change-status:
  2459. put:
  2460. consumes:
  2461. - application/json
  2462. description: 获取JSON
  2463. parameters:
  2464. - description: body
  2465. in: body
  2466. name: data
  2467. required: true
  2468. schema:
  2469. $ref: '#/definitions/dto.UpdateStatusReq'
  2470. responses:
  2471. "200":
  2472. description: '{"code": 200, "data": [...]}'
  2473. schema:
  2474. $ref: '#/definitions/response.Response'
  2475. security:
  2476. - Bearer: []
  2477. summary: 修改用户角色
  2478. tags:
  2479. - 角色
  2480. /api/sys-role/data-scope:
  2481. put:
  2482. consumes:
  2483. - application/json
  2484. description: 获取JSON
  2485. parameters:
  2486. - description: body
  2487. in: body
  2488. name: data
  2489. required: true
  2490. schema:
  2491. $ref: '#/definitions/dto.RoleDataScopeReq'
  2492. responses:
  2493. "200":
  2494. description: '{"code": 200, "data": [...]}'
  2495. schema:
  2496. $ref: '#/definitions/response.Response'
  2497. security:
  2498. - Bearer: []
  2499. summary: 更新角色数据权限
  2500. tags:
  2501. - 角色
  2502. /api/sys-user:
  2503. delete:
  2504. description: 删除数据
  2505. parameters:
  2506. - description: userId
  2507. in: path
  2508. name: userId
  2509. required: true
  2510. type: integer
  2511. responses:
  2512. "200":
  2513. description: '{"code": 200, "data": [...]}'
  2514. schema:
  2515. $ref: '#/definitions/response.Response'
  2516. security:
  2517. - Bearer: []
  2518. summary: 删除用户数据
  2519. tags:
  2520. - 用户
  2521. get:
  2522. description: 获取JSON
  2523. parameters:
  2524. - description: username
  2525. in: query
  2526. name: username
  2527. type: string
  2528. responses:
  2529. "200":
  2530. description: '{"code": 200, "data": [...]}'
  2531. schema:
  2532. type: string
  2533. security:
  2534. - Bearer: []
  2535. summary: 列表用户信息数据
  2536. tags:
  2537. - 用户
  2538. post:
  2539. consumes:
  2540. - application/json
  2541. description: 获取JSON
  2542. parameters:
  2543. - description: 用户数据
  2544. in: body
  2545. name: data
  2546. required: true
  2547. schema:
  2548. $ref: '#/definitions/dto.SysUserInsertReq'
  2549. responses:
  2550. "200":
  2551. description: '{"code": 200, "data": [...]}'
  2552. schema:
  2553. $ref: '#/definitions/response.Response'
  2554. security:
  2555. - Bearer: []
  2556. summary: 创建用户
  2557. tags:
  2558. - 用户
  2559. put:
  2560. consumes:
  2561. - application/json
  2562. description: 获取JSON
  2563. parameters:
  2564. - description: body
  2565. in: body
  2566. name: data
  2567. required: true
  2568. schema:
  2569. $ref: '#/definitions/dto.SysUserUpdateReq'
  2570. responses:
  2571. "200":
  2572. description: '{"code": 200, "data": [...]}'
  2573. schema:
  2574. $ref: '#/definitions/response.Response'
  2575. security:
  2576. - Bearer: []
  2577. summary: 修改用户数据
  2578. tags:
  2579. - 用户
  2580. /api/sys-user/{id}:
  2581. get:
  2582. description: 获取JSON
  2583. parameters:
  2584. - description: 用户编码
  2585. in: path
  2586. name: userId
  2587. required: true
  2588. type: integer
  2589. responses:
  2590. "200":
  2591. description: '{"code": 200, "data": [...]}'
  2592. schema:
  2593. $ref: '#/definitions/response.Response'
  2594. security:
  2595. - Bearer: []
  2596. summary: 获取用户
  2597. tags:
  2598. - 用户
  2599. /api/sys-user/change-status:
  2600. put:
  2601. consumes:
  2602. - application/json
  2603. description: 获取JSON
  2604. parameters:
  2605. - description: body
  2606. in: body
  2607. name: data
  2608. required: true
  2609. schema:
  2610. $ref: '#/definitions/dto.UpdateSysUserStatusReq'
  2611. responses:
  2612. "200":
  2613. description: '{"code": 200, "data": [...]}'
  2614. schema:
  2615. $ref: '#/definitions/response.Response'
  2616. security:
  2617. - Bearer: []
  2618. summary: 修改用户状态
  2619. tags:
  2620. - 用户
  2621. /api/sys-user/reset-pwd:
  2622. put:
  2623. consumes:
  2624. - application/json
  2625. description: 获取JSON
  2626. parameters:
  2627. - description: body
  2628. in: body
  2629. name: data
  2630. required: true
  2631. schema:
  2632. $ref: '#/definitions/dto.ResetSysUserPwdReq'
  2633. responses:
  2634. "200":
  2635. description: '{"code": 200, "data": [...]}'
  2636. schema:
  2637. $ref: '#/definitions/response.Response'
  2638. security:
  2639. - Bearer: []
  2640. summary: 重置用户密码
  2641. tags:
  2642. - 用户
  2643. /api/sys-user/roles/{id}:
  2644. get:
  2645. description: 获取JSON
  2646. responses:
  2647. "200":
  2648. description: '{"code": 200, "data": [...]}'
  2649. schema:
  2650. $ref: '#/definitions/response.Response'
  2651. security:
  2652. - Bearer: []
  2653. summary: 获取用户角色
  2654. tags:
  2655. - 用户
  2656. /api/sys/app-config:
  2657. get:
  2658. description: 获取系统配置信息,主要注意这里不在验证权限
  2659. responses:
  2660. "200":
  2661. description: '{"code": 200, "data": [...]}'
  2662. schema:
  2663. allOf:
  2664. - $ref: '#/definitions/response.Response'
  2665. - properties:
  2666. data:
  2667. additionalProperties:
  2668. type: string
  2669. type: object
  2670. type: object
  2671. summary: 获取系统前台配置信息,主要注意这里不在验证权限
  2672. tags:
  2673. - 系統接口/系统配置
  2674. /api/sys/avatar:
  2675. put:
  2676. consumes:
  2677. - multipart/form-data
  2678. description: 获取JSON
  2679. parameters:
  2680. - description: file
  2681. in: formData
  2682. name: file
  2683. required: true
  2684. type: file
  2685. responses:
  2686. "200":
  2687. description: '{"code": 200, "data": [...]}'
  2688. schema:
  2689. $ref: '#/definitions/response.Response'
  2690. security:
  2691. - Bearer: []
  2692. summary: 修改头像
  2693. tags:
  2694. - 系統接口/个人中心
  2695. /api/sys/config-key/{key}:
  2696. get:
  2697. description: 根据Key获取SysConfig的Service
  2698. parameters:
  2699. - description: configKey
  2700. in: path
  2701. name: configKey
  2702. type: string
  2703. responses:
  2704. "200":
  2705. description: '{"code": 200, "data": [...]}'
  2706. schema:
  2707. allOf:
  2708. - $ref: '#/definitions/response.Response'
  2709. - properties:
  2710. data:
  2711. $ref: '#/definitions/dto.SysConfigByKeyReq'
  2712. type: object
  2713. security:
  2714. - Bearer: []
  2715. summary: 根据Key获取SysConfig的Service
  2716. tags:
  2717. - 系統接口/系统配置
  2718. /api/sys/dict-data-option-select:
  2719. get:
  2720. description: 数据字典根据key获取
  2721. parameters:
  2722. - description: dictType
  2723. in: query
  2724. name: dictType
  2725. required: true
  2726. type: integer
  2727. responses:
  2728. "200":
  2729. description: '{"code": 200, "data": [...]}'
  2730. schema:
  2731. allOf:
  2732. - $ref: '#/definitions/response.Response'
  2733. - properties:
  2734. data:
  2735. items:
  2736. $ref: '#/definitions/dto.SysDictDataGetAllResp'
  2737. type: array
  2738. type: object
  2739. security:
  2740. - Bearer: []
  2741. summary: 数据字典根据key获取
  2742. tags:
  2743. - 系統接口/字典数据
  2744. /api/sys/dict-type-option-select:
  2745. get:
  2746. description: 获取JSON
  2747. parameters:
  2748. - description: dictName
  2749. in: query
  2750. name: dictName
  2751. type: string
  2752. - description: dictId
  2753. in: query
  2754. name: dictId
  2755. type: string
  2756. - description: dictType
  2757. in: query
  2758. name: dictType
  2759. type: string
  2760. responses:
  2761. "200":
  2762. description: '{"code": 200, "data": [...]}'
  2763. schema:
  2764. $ref: '#/definitions/response.Response'
  2765. security:
  2766. - Bearer: []
  2767. summary: 获取字典类下拉型树
  2768. tags:
  2769. - 系統接口/字典类型
  2770. /api/sys/gen-api-to-file/{tableId}:
  2771. get:
  2772. description: 生成 Menu 迁移文件
  2773. parameters:
  2774. - description: tableId / 表Id
  2775. in: path
  2776. name: tableId
  2777. type: string
  2778. responses:
  2779. "200":
  2780. description: '{"code": 200, "data": [...]}'
  2781. schema:
  2782. $ref: '#/definitions/response.Response'
  2783. summary: 生成 Menu 迁移文件
  2784. tags:
  2785. - 系統接口 / 生成工具 / 生成代码
  2786. /api/sys/gen-code/{tableId}:
  2787. get:
  2788. description: 生成代码
  2789. parameters:
  2790. - description: tableId / 表Id
  2791. in: path
  2792. name: tableId
  2793. type: string
  2794. responses:
  2795. "200":
  2796. description: '{"code": 200, "data": [...]}'
  2797. schema:
  2798. $ref: '#/definitions/response.Response'
  2799. summary: 生成代码
  2800. tags:
  2801. - 系統接口 / 生成工具 / 生成代码
  2802. /api/sys/gen-db-columns:
  2803. get:
  2804. description: 数据库表列分页列表 / database table column page list
  2805. parameters:
  2806. - description: tableName / 数据表名称
  2807. in: query
  2808. name: tableName
  2809. type: string
  2810. - description: pageSize / 页条数
  2811. in: query
  2812. name: pageSize
  2813. type: integer
  2814. - description: pageIndex / 页码
  2815. in: query
  2816. name: pageIndex
  2817. type: integer
  2818. responses:
  2819. "200":
  2820. description: '{"code": 200, "data": [...]}'
  2821. schema:
  2822. $ref: '#/definitions/response.Response'
  2823. summary: 分页列表数据 / page list data
  2824. tags:
  2825. - 系统接口 / 生成工具
  2826. /api/sys/gen-db-table-tree:
  2827. get:
  2828. description: 获取JSON
  2829. parameters:
  2830. - description: tableId
  2831. in: path
  2832. name: tableId
  2833. required: true
  2834. type: integer
  2835. responses:
  2836. "200":
  2837. description: '{"code": 200, "data": [...]}'
  2838. schema:
  2839. $ref: '#/definitions/response.Response'
  2840. security:
  2841. - Bearer: []
  2842. summary: 查询关系表下拉树
  2843. tags:
  2844. - 系統接口 / 生成工具
  2845. /api/sys/gen-db-tables:
  2846. get:
  2847. description: 查询数据库表列表 / database table page list
  2848. parameters:
  2849. - description: tableName / 数据表名称
  2850. in: query
  2851. name: tableName
  2852. type: string
  2853. - description: pageSize / 页条数
  2854. in: query
  2855. name: pageSize
  2856. type: integer
  2857. - description: pageIndex / 页码
  2858. in: query
  2859. name: pageIndex
  2860. type: integer
  2861. responses:
  2862. "200":
  2863. description: '{"code": 200, "data": [...]}'
  2864. schema:
  2865. $ref: '#/definitions/response.Response'
  2866. summary: 查询数据库表列表 / page list data
  2867. tags:
  2868. - 系統接口 / 生成工具
  2869. /api/sys/gen-menu-api/{tableId}:
  2870. get:
  2871. description: 生成菜单API到DB
  2872. parameters:
  2873. - description: tableId / 表Id
  2874. in: path
  2875. name: tableId
  2876. type: string
  2877. responses:
  2878. "200":
  2879. description: '{"code": 200, "data": [...]}'
  2880. schema:
  2881. $ref: '#/definitions/response.Response'
  2882. summary: 生成菜单及接口
  2883. tags:
  2884. - 系統接口 / 生成工具 / 生成代码
  2885. /api/sys/gen-preview/{tableId}:
  2886. get:
  2887. description: 生成预览
  2888. parameters:
  2889. - description: tableId / 表Id
  2890. in: path
  2891. name: tableId
  2892. type: string
  2893. responses:
  2894. "200":
  2895. description: '{"code": 200, "data": [...]}'
  2896. schema:
  2897. $ref: '#/definitions/response.Response'
  2898. summary: 生成预览
  2899. tags:
  2900. - 系統接口 / 生成工具 / 生成代码
  2901. /api/sys/gen-table:
  2902. get:
  2903. description: 查询代码生成表列表
  2904. parameters:
  2905. - description: tableName / 数据表名称
  2906. in: query
  2907. name: tableName
  2908. type: string
  2909. - description: pageSize / 页条数
  2910. in: query
  2911. name: pageSize
  2912. type: integer
  2913. - description: pageIndex / 页码
  2914. in: query
  2915. name: pageIndex
  2916. type: integer
  2917. responses:
  2918. "200":
  2919. description: '{"code": 200, "data": [...]}'
  2920. schema:
  2921. $ref: '#/definitions/response.Response'
  2922. summary: 查询代码生成表列表
  2923. tags:
  2924. - 系統接口 / 生成工具
  2925. post:
  2926. consumes:
  2927. - application/json
  2928. description: 导入表
  2929. parameters:
  2930. - description: tableName / 数据表名称
  2931. in: query
  2932. name: tables
  2933. type: string
  2934. responses:
  2935. "200":
  2936. description: '{"code": -1, "message": "添加失败"}'
  2937. schema:
  2938. type: string
  2939. security:
  2940. - Bearer: []
  2941. summary: 导入表
  2942. tags:
  2943. - 系統接口 / 生成工具
  2944. put:
  2945. consumes:
  2946. - application/json
  2947. description: 修改表结构
  2948. parameters:
  2949. - description: body
  2950. in: body
  2951. name: data
  2952. required: true
  2953. schema:
  2954. $ref: '#/definitions/tools.SysTables'
  2955. responses:
  2956. "200":
  2957. description: '{"code": -1, "message": "添加失败"}'
  2958. schema:
  2959. type: string
  2960. security:
  2961. - Bearer: []
  2962. summary: 修改表结构
  2963. tags:
  2964. - 系統接口 / 生成工具
  2965. /api/sys/gen-table/{tableId}:
  2966. delete:
  2967. description: 删除表结构
  2968. parameters:
  2969. - description: tableId
  2970. in: path
  2971. name: tableId
  2972. required: true
  2973. type: integer
  2974. responses:
  2975. "200":
  2976. description: '{"code": -1, "message": "删除失败"}'
  2977. schema:
  2978. type: string
  2979. summary: 删除表结构
  2980. tags:
  2981. - 系統接口 / 生成工具
  2982. get:
  2983. description: 获取代码生成表详情
  2984. parameters:
  2985. - description: tableId
  2986. in: path
  2987. name: tableId
  2988. required: true
  2989. type: integer
  2990. responses:
  2991. "200":
  2992. description: '{"code": 200, "data": [...]}'
  2993. schema:
  2994. $ref: '#/definitions/response.Response'
  2995. security:
  2996. - Bearer: []
  2997. summary: 获取代码生成表详情
  2998. tags:
  2999. - 系統接口 / 生成工具
  3000. /api/sys/gen-table/name:
  3001. get:
  3002. description: 获取代码生成表详情(表名称)
  3003. parameters:
  3004. - description: tableId
  3005. in: path
  3006. name: tableId
  3007. required: true
  3008. type: integer
  3009. responses:
  3010. "200":
  3011. description: '{"code": 200, "data": [...]}'
  3012. schema:
  3013. $ref: '#/definitions/response.Response'
  3014. security:
  3015. - Bearer: []
  3016. summary: 获取代码生成表详情(表名称)
  3017. tags:
  3018. - 系統接口 / 生成工具
  3019. /api/sys/get-info:
  3020. get:
  3021. description: 获取JSON
  3022. responses:
  3023. "200":
  3024. description: '{"code": 200, "data": [...]}'
  3025. schema:
  3026. $ref: '#/definitions/response.Response'
  3027. security:
  3028. - Bearer: []
  3029. summary: 获取个人信息
  3030. tags:
  3031. - 系統接口/个人中心
  3032. /api/sys/get-router:
  3033. get:
  3034. description: 获取JSON
  3035. responses:
  3036. "200":
  3037. description: '{"code": 200, "data": [...]}'
  3038. schema:
  3039. $ref: '#/definitions/response.Response'
  3040. security:
  3041. - Bearer: []
  3042. summary: 根据登录角色名称获取菜单列表数据(左菜单使用)
  3043. tags:
  3044. - 系統接口/菜单
  3045. /api/sys/org-tree/{id}:
  3046. get:
  3047. description: 左侧部门树
  3048. parameters:
  3049. - description: body
  3050. in: body
  3051. name: data
  3052. required: true
  3053. schema:
  3054. $ref: '#/definitions/dto.SysOrgDeleteReq'
  3055. responses:
  3056. "200":
  3057. description: '{"code": 200, "data": []}'
  3058. schema:
  3059. type: string
  3060. security:
  3061. - Bearer: []
  3062. summary: 部门树
  3063. tags:
  3064. - 系統接口/部门
  3065. /api/sys/prem-menu-btn/{permission}:
  3066. get:
  3067. consumes:
  3068. - application/json
  3069. description: 根据权限名查询子按钮
  3070. parameters:
  3071. - description: permission
  3072. in: path
  3073. name: permission
  3074. required: true
  3075. type: integer
  3076. responses:
  3077. "200":
  3078. description: '{"code": 200, "data": [...]}'
  3079. schema:
  3080. $ref: '#/definitions/response.Response'
  3081. security:
  3082. - Bearer: []
  3083. summary: 根据权限名查询子按钮
  3084. tags:
  3085. - 系統接口/菜单
  3086. /api/sys/profile:
  3087. get:
  3088. description: 获取JSON
  3089. responses:
  3090. "200":
  3091. description: '{"code": 200, "data": [...]}'
  3092. schema:
  3093. $ref: '#/definitions/response.Response'
  3094. security:
  3095. - Bearer: []
  3096. summary: 获取个人中心用户
  3097. tags:
  3098. - 系統接口/个人中心
  3099. /api/sys/pwd:
  3100. put:
  3101. consumes:
  3102. - application/json
  3103. description: 获取JSON
  3104. parameters:
  3105. - description: body
  3106. in: body
  3107. name: data
  3108. required: true
  3109. schema:
  3110. $ref: '#/definitions/dto.PassWord'
  3111. responses:
  3112. "200":
  3113. description: '{"code": 200, "data": [...]}'
  3114. schema:
  3115. $ref: '#/definitions/response.Response'
  3116. security:
  3117. - Bearer: []
  3118. summary: 修改密码
  3119. tags:
  3120. - 系統接口/个人中心
  3121. /api/sys/role-menu-tree-select/{roleId}:
  3122. get:
  3123. consumes:
  3124. - application/json
  3125. description: 获取JSON
  3126. parameters:
  3127. - description: roleId
  3128. in: path
  3129. name: roleId
  3130. required: true
  3131. type: integer
  3132. responses:
  3133. "200":
  3134. description: '{"code": 200, "data": [...]}'
  3135. schema:
  3136. $ref: '#/definitions/response.Response'
  3137. security:
  3138. - Bearer: []
  3139. summary: 角色修改使用的菜单列表
  3140. tags:
  3141. - 系統接口/菜单
  3142. /api/sys/role-org-tree-select/{roleId}:
  3143. get:
  3144. description: 根据角色查询部门树
  3145. parameters:
  3146. - description: body
  3147. in: body
  3148. name: data
  3149. required: true
  3150. schema:
  3151. $ref: '#/definitions/dto.SysOrgDeleteReq'
  3152. responses:
  3153. "200":
  3154. description: '{"code": 200, "data": []}'
  3155. schema:
  3156. type: string
  3157. security:
  3158. - Bearer: []
  3159. summary: 部门下拉树
  3160. tags:
  3161. - 系統接口/部门
  3162. /api/sys/server-monitor:
  3163. get:
  3164. description: 获取JSON
  3165. responses:
  3166. "200":
  3167. description: '{"code": 200, "data": [...]}'
  3168. schema:
  3169. $ref: '#/definitions/response.Response'
  3170. security:
  3171. - Bearer: []
  3172. summary: 获取系统服务系统信息
  3173. tags:
  3174. - 系統接口/系统服务监控
  3175. /api/sys/set-config:
  3176. get:
  3177. consumes:
  3178. - application/json
  3179. description: 界面操作设置配置值的获取
  3180. responses:
  3181. "200":
  3182. description: '{"code": 200, "message": "修改成功"}'
  3183. schema:
  3184. allOf:
  3185. - $ref: '#/definitions/response.Response'
  3186. - properties:
  3187. data:
  3188. additionalProperties: true
  3189. type: object
  3190. type: object
  3191. security:
  3192. - Bearer: []
  3193. summary: 获取可配置的配置参数
  3194. tags:
  3195. - 系統接口/系统配置
  3196. put:
  3197. consumes:
  3198. - application/json
  3199. description: 界面操作设置配置值
  3200. parameters:
  3201. - description: body
  3202. in: body
  3203. name: data
  3204. required: true
  3205. schema:
  3206. items:
  3207. $ref: '#/definitions/dto.GetSetSysConfigReq'
  3208. type: array
  3209. responses:
  3210. "200":
  3211. description: '{"code": 200, "message": "修改成功"}'
  3212. schema:
  3213. $ref: '#/definitions/response.Response'
  3214. security:
  3215. - Bearer: []
  3216. summary: 修改可配置的配置参数
  3217. tags:
  3218. - 系統接口/系统配置
  3219. /api/sys/upload-file:
  3220. post:
  3221. consumes:
  3222. - multipart/form-data
  3223. description: 获取JSON
  3224. parameters:
  3225. - description: type
  3226. in: query
  3227. name: type
  3228. required: true
  3229. type: string
  3230. - description: file
  3231. in: formData
  3232. name: file
  3233. required: true
  3234. type: file
  3235. responses:
  3236. "200":
  3237. description: '{"code": -1, "message": "添加失败"}'
  3238. schema:
  3239. type: string
  3240. security:
  3241. - Bearer: []
  3242. summary: 上传图片
  3243. tags:
  3244. - 系統接口/上传图片
  3245. swagger: "2.0"