admin_swagger.json 165 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "contact": {}
  5. },
  6. "paths": {
  7. "/api/captcha": {
  8. "get": {
  9. "description": "获取验证码",
  10. "tags": [
  11. "登陆"
  12. ],
  13. "summary": "获取验证码",
  14. "responses": {
  15. "200": {
  16. "description": "{\"code\": 200, \"data\": [...]}",
  17. "schema": {
  18. "allOf": [
  19. {
  20. "$ref": "#/definitions/response.Response"
  21. },
  22. {
  23. "type": "object",
  24. "properties": {
  25. "data": {
  26. "type": "string"
  27. },
  28. "id": {
  29. "type": "string"
  30. },
  31. "msg": {
  32. "type": "string"
  33. }
  34. }
  35. }
  36. ]
  37. }
  38. }
  39. }
  40. }
  41. },
  42. "/api/login": {
  43. "post": {
  44. "description": "获取token\nLoginHandler can be used by clients to get a jwt token.\nPayload needs to be json in the form of {\"username\": \"USERNAME\", \"password\": \"PASSWORD\"}.\nReply will be of the form {\"token\": \"TOKEN\"}.\ndev 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\n注意:开发模式:需要注意全部字段不能为空,账号密码外可以传入0值",
  45. "consumes": [
  46. "application/json"
  47. ],
  48. "tags": [
  49. "登陆"
  50. ],
  51. "summary": "登陆",
  52. "parameters": [
  53. {
  54. "description": "account",
  55. "name": "account",
  56. "in": "body",
  57. "required": true,
  58. "schema": {
  59. "$ref": "#/definitions/handler.Login"
  60. }
  61. }
  62. ],
  63. "responses": {
  64. "200": {
  65. "description": "{\"code\": 200, \"expire\": \"2024-03-07T12:45:48+08:00\", \"token\": \"\" }",
  66. "schema": {
  67. "type": "string"
  68. }
  69. }
  70. }
  71. }
  72. },
  73. "/api/logout": {
  74. "post": {
  75. "security": [
  76. {
  77. "Bearer": []
  78. }
  79. ],
  80. "description": "获取token",
  81. "consumes": [
  82. "application/json"
  83. ],
  84. "summary": "退出登录",
  85. "responses": {
  86. "200": {
  87. "description": "{\"code\": 200, \"msg\": \"成功退出系统\" }",
  88. "schema": {
  89. "type": "string"
  90. }
  91. }
  92. }
  93. }
  94. },
  95. "/api/sys-api": {
  96. "get": {
  97. "security": [
  98. {
  99. "Bearer": []
  100. }
  101. ],
  102. "description": "获取接口管理列表",
  103. "tags": [
  104. "接口管理"
  105. ],
  106. "summary": "获取接口管理列表",
  107. "parameters": [
  108. {
  109. "type": "string",
  110. "description": "名称",
  111. "name": "name",
  112. "in": "query"
  113. },
  114. {
  115. "type": "string",
  116. "description": "标题",
  117. "name": "title",
  118. "in": "query"
  119. },
  120. {
  121. "type": "string",
  122. "description": "地址",
  123. "name": "path",
  124. "in": "query"
  125. },
  126. {
  127. "type": "string",
  128. "description": "类型",
  129. "name": "action",
  130. "in": "query"
  131. },
  132. {
  133. "type": "integer",
  134. "description": "页条数",
  135. "name": "pageSize",
  136. "in": "query"
  137. },
  138. {
  139. "type": "integer",
  140. "description": "页码",
  141. "name": "pageIndex",
  142. "in": "query"
  143. }
  144. ],
  145. "responses": {
  146. "200": {
  147. "description": "{\"code\": 200, \"data\": [...]}",
  148. "schema": {
  149. "allOf": [
  150. {
  151. "$ref": "#/definitions/response.Response"
  152. },
  153. {
  154. "type": "object",
  155. "properties": {
  156. "data": {
  157. "allOf": [
  158. {
  159. "$ref": "#/definitions/response.Page"
  160. },
  161. {
  162. "type": "object",
  163. "properties": {
  164. "list": {
  165. "type": "array",
  166. "items": {
  167. "$ref": "#/definitions/IotAdmin_app_system_models.SysApi"
  168. }
  169. }
  170. }
  171. }
  172. ]
  173. }
  174. }
  175. }
  176. ]
  177. }
  178. }
  179. }
  180. },
  181. "delete": {
  182. "security": [
  183. {
  184. "Bearer": []
  185. }
  186. ],
  187. "description": "删除接口管理",
  188. "tags": [
  189. "接口管理"
  190. ],
  191. "summary": "删除接口管理",
  192. "parameters": [
  193. {
  194. "description": "body",
  195. "name": "data",
  196. "in": "body",
  197. "required": true,
  198. "schema": {
  199. "$ref": "#/definitions/dto.SysApiDeleteReq"
  200. }
  201. }
  202. ],
  203. "responses": {
  204. "200": {
  205. "description": "{\"code\": 200, \"message\": \"删除成功\"}",
  206. "schema": {
  207. "$ref": "#/definitions/response.Response"
  208. }
  209. }
  210. }
  211. }
  212. },
  213. "/api/sys-api/{id}": {
  214. "get": {
  215. "security": [
  216. {
  217. "Bearer": []
  218. }
  219. ],
  220. "description": "获取接口管理",
  221. "tags": [
  222. "接口管理"
  223. ],
  224. "summary": "获取接口管理",
  225. "parameters": [
  226. {
  227. "type": "string",
  228. "description": "id",
  229. "name": "id",
  230. "in": "path"
  231. }
  232. ],
  233. "responses": {
  234. "200": {
  235. "description": "{\"code\": 200, \"data\": [...]}",
  236. "schema": {
  237. "allOf": [
  238. {
  239. "$ref": "#/definitions/response.Response"
  240. },
  241. {
  242. "type": "object",
  243. "properties": {
  244. "data": {
  245. "$ref": "#/definitions/IotAdmin_app_system_models.SysApi"
  246. }
  247. }
  248. }
  249. ]
  250. }
  251. }
  252. }
  253. },
  254. "put": {
  255. "security": [
  256. {
  257. "Bearer": []
  258. }
  259. ],
  260. "description": "修改接口管理",
  261. "consumes": [
  262. "application/json"
  263. ],
  264. "tags": [
  265. "接口管理"
  266. ],
  267. "summary": "修改接口管理",
  268. "parameters": [
  269. {
  270. "description": "body",
  271. "name": "data",
  272. "in": "body",
  273. "required": true,
  274. "schema": {
  275. "$ref": "#/definitions/dto.SysApiUpdateReq"
  276. }
  277. }
  278. ],
  279. "responses": {
  280. "200": {
  281. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  282. "schema": {
  283. "$ref": "#/definitions/response.Response"
  284. }
  285. }
  286. }
  287. }
  288. },
  289. "/api/sys-config": {
  290. "get": {
  291. "security": [
  292. {
  293. "Bearer": []
  294. }
  295. ],
  296. "description": "获取配置管理列表",
  297. "tags": [
  298. "配置管理"
  299. ],
  300. "summary": "获取配置管理列表",
  301. "parameters": [
  302. {
  303. "type": "string",
  304. "description": "名称",
  305. "name": "configName",
  306. "in": "query"
  307. },
  308. {
  309. "type": "string",
  310. "description": "key",
  311. "name": "configKey",
  312. "in": "query"
  313. },
  314. {
  315. "type": "string",
  316. "description": "类型",
  317. "name": "configType",
  318. "in": "query"
  319. },
  320. {
  321. "type": "integer",
  322. "description": "是否前端",
  323. "name": "isFrontend",
  324. "in": "query"
  325. },
  326. {
  327. "type": "integer",
  328. "description": "页条数",
  329. "name": "pageSize",
  330. "in": "query"
  331. },
  332. {
  333. "type": "integer",
  334. "description": "页码",
  335. "name": "pageIndex",
  336. "in": "query"
  337. }
  338. ],
  339. "responses": {
  340. "200": {
  341. "description": "{\"code\": 200, \"data\": [...]}",
  342. "schema": {
  343. "allOf": [
  344. {
  345. "$ref": "#/definitions/response.Response"
  346. },
  347. {
  348. "type": "object",
  349. "properties": {
  350. "data": {
  351. "allOf": [
  352. {
  353. "$ref": "#/definitions/response.Page"
  354. },
  355. {
  356. "type": "object",
  357. "properties": {
  358. "list": {
  359. "type": "array",
  360. "items": {
  361. "$ref": "#/definitions/IotAdmin_app_system_models.SysApi"
  362. }
  363. }
  364. }
  365. }
  366. ]
  367. }
  368. }
  369. }
  370. ]
  371. }
  372. }
  373. }
  374. },
  375. "post": {
  376. "security": [
  377. {
  378. "Bearer": []
  379. }
  380. ],
  381. "description": "创建配置管理",
  382. "consumes": [
  383. "application/json"
  384. ],
  385. "tags": [
  386. "配置管理"
  387. ],
  388. "summary": "创建配置管理",
  389. "parameters": [
  390. {
  391. "description": "body",
  392. "name": "data",
  393. "in": "body",
  394. "required": true,
  395. "schema": {
  396. "$ref": "#/definitions/dto.SysConfigControl"
  397. }
  398. }
  399. ],
  400. "responses": {
  401. "200": {
  402. "description": "{\"code\": 200, \"message\": \"创建成功\"}",
  403. "schema": {
  404. "$ref": "#/definitions/response.Response"
  405. }
  406. }
  407. }
  408. },
  409. "delete": {
  410. "security": [
  411. {
  412. "Bearer": []
  413. }
  414. ],
  415. "description": "删除配置管理",
  416. "tags": [
  417. "配置管理"
  418. ],
  419. "summary": "删除配置管理",
  420. "parameters": [
  421. {
  422. "description": "ids",
  423. "name": "ids",
  424. "in": "body",
  425. "schema": {
  426. "type": "array",
  427. "items": {
  428. "type": "integer"
  429. }
  430. }
  431. }
  432. ],
  433. "responses": {
  434. "200": {
  435. "description": "{\"code\": 200, \"message\": \"删除成功\"}",
  436. "schema": {
  437. "$ref": "#/definitions/response.Response"
  438. }
  439. }
  440. }
  441. }
  442. },
  443. "/api/sys-config/{id}": {
  444. "get": {
  445. "security": [
  446. {
  447. "Bearer": []
  448. }
  449. ],
  450. "description": "获取配置管理",
  451. "tags": [
  452. "配置管理"
  453. ],
  454. "summary": "获取配置管理",
  455. "parameters": [
  456. {
  457. "type": "string",
  458. "description": "id",
  459. "name": "id",
  460. "in": "path"
  461. }
  462. ],
  463. "responses": {
  464. "200": {
  465. "description": "{\"code\": 200, \"data\": [...]}",
  466. "schema": {
  467. "allOf": [
  468. {
  469. "$ref": "#/definitions/response.Response"
  470. },
  471. {
  472. "type": "object",
  473. "properties": {
  474. "data": {
  475. "$ref": "#/definitions/models.SysConfig"
  476. }
  477. }
  478. }
  479. ]
  480. }
  481. }
  482. }
  483. },
  484. "put": {
  485. "security": [
  486. {
  487. "Bearer": []
  488. }
  489. ],
  490. "description": "修改配置管理",
  491. "consumes": [
  492. "application/json"
  493. ],
  494. "tags": [
  495. "配置管理"
  496. ],
  497. "summary": "修改配置管理",
  498. "parameters": [
  499. {
  500. "description": "body",
  501. "name": "data",
  502. "in": "body",
  503. "required": true,
  504. "schema": {
  505. "$ref": "#/definitions/dto.SysConfigControl"
  506. }
  507. }
  508. ],
  509. "responses": {
  510. "200": {
  511. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  512. "schema": {
  513. "$ref": "#/definitions/response.Response"
  514. }
  515. }
  516. }
  517. }
  518. },
  519. "/api/sys-dict-data": {
  520. "get": {
  521. "security": [
  522. {
  523. "Bearer": []
  524. }
  525. ],
  526. "description": "获取JSON",
  527. "tags": [
  528. "字典数据"
  529. ],
  530. "summary": "字典数据列表",
  531. "parameters": [
  532. {
  533. "type": "string",
  534. "description": "status",
  535. "name": "status",
  536. "in": "query"
  537. },
  538. {
  539. "type": "string",
  540. "description": "dictCode",
  541. "name": "dictCode",
  542. "in": "query"
  543. },
  544. {
  545. "type": "string",
  546. "description": "dictType",
  547. "name": "dictType",
  548. "in": "query"
  549. },
  550. {
  551. "type": "integer",
  552. "description": "页条数",
  553. "name": "pageSize",
  554. "in": "query"
  555. },
  556. {
  557. "type": "integer",
  558. "description": "页码",
  559. "name": "pageIndex",
  560. "in": "query"
  561. }
  562. ],
  563. "responses": {
  564. "200": {
  565. "description": "{\"code\": 200, \"data\": [...]}",
  566. "schema": {
  567. "$ref": "#/definitions/response.Response"
  568. }
  569. }
  570. }
  571. },
  572. "post": {
  573. "security": [
  574. {
  575. "Bearer": []
  576. }
  577. ],
  578. "description": "获取JSON",
  579. "consumes": [
  580. "application/json"
  581. ],
  582. "tags": [
  583. "字典数据"
  584. ],
  585. "summary": "添加字典数据",
  586. "parameters": [
  587. {
  588. "description": "data",
  589. "name": "data",
  590. "in": "body",
  591. "required": true,
  592. "schema": {
  593. "$ref": "#/definitions/dto.SysDictDataInsertReq"
  594. }
  595. }
  596. ],
  597. "responses": {
  598. "200": {
  599. "description": "{\"code\": 200, \"message\": \"添加成功\"}",
  600. "schema": {
  601. "$ref": "#/definitions/response.Response"
  602. }
  603. }
  604. }
  605. },
  606. "delete": {
  607. "security": [
  608. {
  609. "Bearer": []
  610. }
  611. ],
  612. "description": "删除数据",
  613. "tags": [
  614. "字典数据"
  615. ],
  616. "summary": "删除字典数据",
  617. "parameters": [
  618. {
  619. "description": "body",
  620. "name": "dictCode",
  621. "in": "body",
  622. "required": true,
  623. "schema": {
  624. "$ref": "#/definitions/dto.SysDictDataDeleteReq"
  625. }
  626. }
  627. ],
  628. "responses": {
  629. "200": {
  630. "description": "{\"code\": 200, \"message\": \"删除成功\"}",
  631. "schema": {
  632. "$ref": "#/definitions/response.Response"
  633. }
  634. }
  635. }
  636. }
  637. },
  638. "/api/sys-dict-data/{dictCode}": {
  639. "get": {
  640. "security": [
  641. {
  642. "Bearer": []
  643. }
  644. ],
  645. "description": "获取JSON",
  646. "tags": [
  647. "字典数据"
  648. ],
  649. "summary": "通过编码获取字典数据",
  650. "parameters": [
  651. {
  652. "type": "integer",
  653. "description": "字典编码",
  654. "name": "dictCode",
  655. "in": "path",
  656. "required": true
  657. }
  658. ],
  659. "responses": {
  660. "200": {
  661. "description": "{\"code\": 200, \"data\": [...]}",
  662. "schema": {
  663. "$ref": "#/definitions/response.Response"
  664. }
  665. }
  666. }
  667. },
  668. "put": {
  669. "security": [
  670. {
  671. "Bearer": []
  672. }
  673. ],
  674. "description": "获取JSON",
  675. "consumes": [
  676. "application/json"
  677. ],
  678. "tags": [
  679. "字典数据"
  680. ],
  681. "summary": "修改字典数据",
  682. "parameters": [
  683. {
  684. "description": "body",
  685. "name": "data",
  686. "in": "body",
  687. "required": true,
  688. "schema": {
  689. "$ref": "#/definitions/dto.SysDictDataUpdateReq"
  690. }
  691. }
  692. ],
  693. "responses": {
  694. "200": {
  695. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  696. "schema": {
  697. "$ref": "#/definitions/response.Response"
  698. }
  699. }
  700. }
  701. }
  702. },
  703. "/api/sys-dict-type": {
  704. "get": {
  705. "security": [
  706. {
  707. "Bearer": []
  708. }
  709. ],
  710. "description": "获取JSON",
  711. "tags": [
  712. "字典类型"
  713. ],
  714. "summary": "字典类型列表数据",
  715. "parameters": [
  716. {
  717. "type": "string",
  718. "description": "dictName",
  719. "name": "dictName",
  720. "in": "query"
  721. },
  722. {
  723. "type": "string",
  724. "description": "dictId",
  725. "name": "dictId",
  726. "in": "query"
  727. },
  728. {
  729. "type": "string",
  730. "description": "dictType",
  731. "name": "dictType",
  732. "in": "query"
  733. },
  734. {
  735. "type": "integer",
  736. "description": "页条数",
  737. "name": "pageSize",
  738. "in": "query"
  739. },
  740. {
  741. "type": "integer",
  742. "description": "页码",
  743. "name": "pageIndex",
  744. "in": "query"
  745. }
  746. ],
  747. "responses": {
  748. "200": {
  749. "description": "{\"code\": 200, \"data\": [...]}",
  750. "schema": {
  751. "$ref": "#/definitions/response.Response"
  752. }
  753. }
  754. }
  755. },
  756. "post": {
  757. "security": [
  758. {
  759. "Bearer": []
  760. }
  761. ],
  762. "description": "字典类型创建",
  763. "consumes": [
  764. "application/json"
  765. ],
  766. "tags": [
  767. "字典类型"
  768. ],
  769. "summary": "添加字典类型",
  770. "parameters": [
  771. {
  772. "description": "data",
  773. "name": "data",
  774. "in": "body",
  775. "required": true,
  776. "schema": {
  777. "$ref": "#/definitions/dto.SysDictTypeInsertReq"
  778. }
  779. }
  780. ],
  781. "responses": {
  782. "200": {
  783. "description": "{\"code\": 200, \"data\": [...]}",
  784. "schema": {
  785. "$ref": "#/definitions/response.Response"
  786. }
  787. }
  788. }
  789. },
  790. "delete": {
  791. "security": [
  792. {
  793. "Bearer": []
  794. }
  795. ],
  796. "description": "删除字典类型",
  797. "tags": [
  798. "字典类型"
  799. ],
  800. "summary": "删除字典类型",
  801. "parameters": [
  802. {
  803. "description": "body",
  804. "name": "dictCode",
  805. "in": "body",
  806. "required": true,
  807. "schema": {
  808. "$ref": "#/definitions/dto.SysDictTypeDeleteReq"
  809. }
  810. }
  811. ],
  812. "responses": {
  813. "200": {
  814. "description": "{\"code\": 200, \"data\": [...]}",
  815. "schema": {
  816. "$ref": "#/definitions/response.Response"
  817. }
  818. }
  819. }
  820. }
  821. },
  822. "/api/sys-dict-type/{id}": {
  823. "get": {
  824. "security": [
  825. {
  826. "Bearer": []
  827. }
  828. ],
  829. "description": "获取JSON",
  830. "tags": [
  831. "字典类型"
  832. ],
  833. "summary": "字典类型通过字典id获取",
  834. "parameters": [
  835. {
  836. "type": "integer",
  837. "description": "字典类型编码",
  838. "name": "dictId",
  839. "in": "path",
  840. "required": true
  841. }
  842. ],
  843. "responses": {
  844. "200": {
  845. "description": "{\"code\": 200, \"data\": [...]}",
  846. "schema": {
  847. "$ref": "#/definitions/response.Response"
  848. }
  849. }
  850. }
  851. },
  852. "put": {
  853. "security": [
  854. {
  855. "Bearer": []
  856. }
  857. ],
  858. "description": "删除字典类型",
  859. "consumes": [
  860. "application/json"
  861. ],
  862. "tags": [
  863. "字典类型"
  864. ],
  865. "summary": "删除字典类型",
  866. "parameters": [
  867. {
  868. "description": "body",
  869. "name": "data",
  870. "in": "body",
  871. "required": true,
  872. "schema": {
  873. "$ref": "#/definitions/dto.SysDictTypeUpdateReq"
  874. }
  875. }
  876. ],
  877. "responses": {
  878. "200": {
  879. "description": "{\"code\": 200, \"data\": [...]}",
  880. "schema": {
  881. "$ref": "#/definitions/response.Response"
  882. }
  883. }
  884. }
  885. }
  886. },
  887. "/api/sys-job": {
  888. "get": {
  889. "security": [
  890. {
  891. "Bearer": []
  892. }
  893. ],
  894. "description": "获取定时任务列表",
  895. "tags": [
  896. "定时任务管理"
  897. ],
  898. "summary": "获取定时任务列表",
  899. "parameters": [
  900. {
  901. "type": "string",
  902. "description": "名称",
  903. "name": "jobName",
  904. "in": "query"
  905. },
  906. {
  907. "type": "string",
  908. "description": "任务分组",
  909. "name": "jobGroup",
  910. "in": "query"
  911. },
  912. {
  913. "type": "integer",
  914. "description": "调用类型",
  915. "name": "jobType",
  916. "in": "query"
  917. },
  918. {
  919. "type": "string",
  920. "description": "调用目标",
  921. "name": "invokeTarget",
  922. "in": "query"
  923. },
  924. {
  925. "type": "integer",
  926. "description": "状态",
  927. "name": "status",
  928. "in": "query"
  929. },
  930. {
  931. "type": "integer",
  932. "description": "页条数",
  933. "name": "pageSize",
  934. "in": "query"
  935. },
  936. {
  937. "type": "integer",
  938. "description": "页码",
  939. "name": "pageIndex",
  940. "in": "query"
  941. }
  942. ],
  943. "responses": {
  944. "200": {
  945. "description": "{\"code\": 200, \"data\": [...]}",
  946. "schema": {
  947. "allOf": [
  948. {
  949. "$ref": "#/definitions/response.Response"
  950. },
  951. {
  952. "type": "object",
  953. "properties": {
  954. "data": {
  955. "allOf": [
  956. {
  957. "$ref": "#/definitions/response.Page"
  958. },
  959. {
  960. "type": "object",
  961. "properties": {
  962. "list": {
  963. "type": "array",
  964. "items": {
  965. "$ref": "#/definitions/models.SysJob"
  966. }
  967. }
  968. }
  969. }
  970. ]
  971. }
  972. }
  973. }
  974. ]
  975. }
  976. }
  977. }
  978. },
  979. "post": {
  980. "security": [
  981. {
  982. "Bearer": []
  983. }
  984. ],
  985. "description": "添加定时任务",
  986. "consumes": [
  987. "application/json"
  988. ],
  989. "tags": [
  990. "定时任务管理"
  991. ],
  992. "summary": "添加定时任务",
  993. "parameters": [
  994. {
  995. "description": "data",
  996. "name": "data",
  997. "in": "body",
  998. "required": true,
  999. "schema": {
  1000. "$ref": "#/definitions/dto.SysJobInsertReq"
  1001. }
  1002. }
  1003. ],
  1004. "responses": {
  1005. "200": {
  1006. "description": "{\"code\": 200, \"message\": \"添加成功\"}",
  1007. "schema": {
  1008. "$ref": "#/definitions/response.Response"
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "delete": {
  1014. "security": [
  1015. {
  1016. "Bearer": []
  1017. }
  1018. ],
  1019. "description": "删除定时任务",
  1020. "tags": [
  1021. "定时任务管理"
  1022. ],
  1023. "summary": "删除定时任务",
  1024. "parameters": [
  1025. {
  1026. "description": "body",
  1027. "name": "data",
  1028. "in": "body",
  1029. "required": true,
  1030. "schema": {
  1031. "$ref": "#/definitions/dto.SysJobDeleteReq"
  1032. }
  1033. }
  1034. ],
  1035. "responses": {
  1036. "200": {
  1037. "description": "{\"code\": 200, \"message\": \"删除成功\"}",
  1038. "schema": {
  1039. "$ref": "#/definitions/response.Response"
  1040. }
  1041. }
  1042. }
  1043. }
  1044. },
  1045. "/api/sys-job/keys": {
  1046. "get": {
  1047. "security": [
  1048. {
  1049. "Bearer": []
  1050. }
  1051. ],
  1052. "description": "获取系统内的定时任务",
  1053. "tags": [
  1054. "定时任务管理"
  1055. ],
  1056. "summary": "获取系统内的定时任务",
  1057. "responses": {
  1058. "200": {
  1059. "description": "{\"code\": 200, \"data\": [...]}",
  1060. "schema": {
  1061. "$ref": "#/definitions/response.Response"
  1062. }
  1063. }
  1064. }
  1065. }
  1066. },
  1067. "/api/sys-job/start/{id}": {
  1068. "post": {
  1069. "security": [
  1070. {
  1071. "Bearer": []
  1072. }
  1073. ],
  1074. "description": "启动定时任务",
  1075. "tags": [
  1076. "定时任务管理"
  1077. ],
  1078. "summary": "启动定时任务",
  1079. "parameters": [
  1080. {
  1081. "description": "data",
  1082. "name": "data",
  1083. "in": "body",
  1084. "required": true,
  1085. "schema": {
  1086. "$ref": "#/definitions/dto.SysJobInsertReq"
  1087. }
  1088. }
  1089. ],
  1090. "responses": {
  1091. "200": {
  1092. "description": "{\"code\": 200, \"message\": \"添加成功\"}",
  1093. "schema": {
  1094. "$ref": "#/definitions/response.Response"
  1095. }
  1096. }
  1097. }
  1098. }
  1099. },
  1100. "/api/sys-job/stop/{id}": {
  1101. "post": {
  1102. "security": [
  1103. {
  1104. "Bearer": []
  1105. }
  1106. ],
  1107. "description": "停止定时任务",
  1108. "tags": [
  1109. "定时任务管理"
  1110. ],
  1111. "summary": "停止定时任务",
  1112. "parameters": [
  1113. {
  1114. "description": "data",
  1115. "name": "data",
  1116. "in": "body",
  1117. "required": true,
  1118. "schema": {
  1119. "$ref": "#/definitions/dto.SysJobInsertReq"
  1120. }
  1121. }
  1122. ],
  1123. "responses": {
  1124. "200": {
  1125. "description": "{\"code\": 200, \"message\": \"添加成功\"}",
  1126. "schema": {
  1127. "$ref": "#/definitions/response.Response"
  1128. }
  1129. }
  1130. }
  1131. }
  1132. },
  1133. "/api/sys-job/{id}": {
  1134. "get": {
  1135. "security": [
  1136. {
  1137. "Bearer": []
  1138. }
  1139. ],
  1140. "description": "获取定时任务",
  1141. "tags": [
  1142. "定时任务管理"
  1143. ],
  1144. "summary": "获取定时任务",
  1145. "parameters": [
  1146. {
  1147. "type": "integer",
  1148. "description": "id",
  1149. "name": "id",
  1150. "in": "path"
  1151. }
  1152. ],
  1153. "responses": {
  1154. "200": {
  1155. "description": "{\"code\": 200, \"data\": [...]}",
  1156. "schema": {
  1157. "allOf": [
  1158. {
  1159. "$ref": "#/definitions/response.Response"
  1160. },
  1161. {
  1162. "type": "object",
  1163. "properties": {
  1164. "data": {
  1165. "$ref": "#/definitions/models.SysJob"
  1166. }
  1167. }
  1168. }
  1169. ]
  1170. }
  1171. }
  1172. }
  1173. },
  1174. "put": {
  1175. "security": [
  1176. {
  1177. "Bearer": []
  1178. }
  1179. ],
  1180. "description": "修改定时任务",
  1181. "consumes": [
  1182. "application/json"
  1183. ],
  1184. "tags": [
  1185. "定时任务管理"
  1186. ],
  1187. "summary": "修改定时任务",
  1188. "parameters": [
  1189. {
  1190. "type": "integer",
  1191. "description": "id",
  1192. "name": "id",
  1193. "in": "path",
  1194. "required": true
  1195. },
  1196. {
  1197. "description": "body",
  1198. "name": "data",
  1199. "in": "body",
  1200. "required": true,
  1201. "schema": {
  1202. "$ref": "#/definitions/dto.SysJobUpdateReq"
  1203. }
  1204. }
  1205. ],
  1206. "responses": {
  1207. "200": {
  1208. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  1209. "schema": {
  1210. "$ref": "#/definitions/response.Response"
  1211. }
  1212. }
  1213. }
  1214. }
  1215. },
  1216. "/api/sys-login-log": {
  1217. "get": {
  1218. "security": [
  1219. {
  1220. "Bearer": []
  1221. }
  1222. ],
  1223. "description": "获取JSON",
  1224. "tags": [
  1225. "登录日志"
  1226. ],
  1227. "summary": "登录日志列表",
  1228. "parameters": [
  1229. {
  1230. "type": "string",
  1231. "description": "用户名",
  1232. "name": "username",
  1233. "in": "query"
  1234. },
  1235. {
  1236. "type": "string",
  1237. "description": "ip地址",
  1238. "name": "ipaddr",
  1239. "in": "query"
  1240. },
  1241. {
  1242. "type": "string",
  1243. "description": "归属地",
  1244. "name": "loginLocation",
  1245. "in": "query"
  1246. },
  1247. {
  1248. "type": "string",
  1249. "description": "状态",
  1250. "name": "status",
  1251. "in": "query"
  1252. },
  1253. {
  1254. "type": "string",
  1255. "description": "开始时间",
  1256. "name": "beginTime",
  1257. "in": "query"
  1258. },
  1259. {
  1260. "type": "string",
  1261. "description": "结束时间",
  1262. "name": "endTime",
  1263. "in": "query"
  1264. }
  1265. ],
  1266. "responses": {
  1267. "200": {
  1268. "description": "{\"code\": 200, \"data\": [...]}",
  1269. "schema": {
  1270. "$ref": "#/definitions/response.Response"
  1271. }
  1272. }
  1273. }
  1274. },
  1275. "delete": {
  1276. "security": [
  1277. {
  1278. "Bearer": []
  1279. }
  1280. ],
  1281. "description": "登录日志删除",
  1282. "tags": [
  1283. "登录日志"
  1284. ],
  1285. "summary": "登录日志删除",
  1286. "parameters": [
  1287. {
  1288. "description": "body",
  1289. "name": "data",
  1290. "in": "body",
  1291. "required": true,
  1292. "schema": {
  1293. "$ref": "#/definitions/dto.SysLoginLogDeleteReq"
  1294. }
  1295. }
  1296. ],
  1297. "responses": {
  1298. "200": {
  1299. "description": "{\"code\": 200, \"data\": [...]}",
  1300. "schema": {
  1301. "$ref": "#/definitions/response.Response"
  1302. }
  1303. }
  1304. }
  1305. }
  1306. },
  1307. "/api/sys-login-log/{id}": {
  1308. "get": {
  1309. "security": [
  1310. {
  1311. "Bearer": []
  1312. }
  1313. ],
  1314. "description": "获取JSON",
  1315. "tags": [
  1316. "登录日志"
  1317. ],
  1318. "summary": "登录日志通过id获取",
  1319. "parameters": [
  1320. {
  1321. "type": "string",
  1322. "description": "id",
  1323. "name": "id",
  1324. "in": "path"
  1325. }
  1326. ],
  1327. "responses": {
  1328. "200": {
  1329. "description": "{\"code\": 200, \"data\": [...]}",
  1330. "schema": {
  1331. "$ref": "#/definitions/response.Response"
  1332. }
  1333. }
  1334. }
  1335. }
  1336. },
  1337. "/api/sys-menu": {
  1338. "get": {
  1339. "security": [
  1340. {
  1341. "Bearer": []
  1342. }
  1343. ],
  1344. "description": "获取JSON",
  1345. "tags": [
  1346. "菜单"
  1347. ],
  1348. "summary": "Menu列表数据",
  1349. "parameters": [
  1350. {
  1351. "type": "string",
  1352. "description": "menuName",
  1353. "name": "menuName",
  1354. "in": "query"
  1355. }
  1356. ],
  1357. "responses": {
  1358. "200": {
  1359. "description": "{\"code\": 200, \"data\": [...]}",
  1360. "schema": {
  1361. "$ref": "#/definitions/response.Response"
  1362. }
  1363. }
  1364. }
  1365. },
  1366. "post": {
  1367. "security": [
  1368. {
  1369. "Bearer": []
  1370. }
  1371. ],
  1372. "description": "获取JSON",
  1373. "consumes": [
  1374. "application/json"
  1375. ],
  1376. "tags": [
  1377. "菜单"
  1378. ],
  1379. "summary": "创建菜单",
  1380. "parameters": [
  1381. {
  1382. "description": "data",
  1383. "name": "data",
  1384. "in": "body",
  1385. "required": true,
  1386. "schema": {
  1387. "$ref": "#/definitions/dto.SysMenuInsertReq"
  1388. }
  1389. }
  1390. ],
  1391. "responses": {
  1392. "200": {
  1393. "description": "{\"code\": 200, \"data\": [...]}",
  1394. "schema": {
  1395. "$ref": "#/definitions/response.Response"
  1396. }
  1397. }
  1398. }
  1399. },
  1400. "delete": {
  1401. "security": [
  1402. {
  1403. "Bearer": []
  1404. }
  1405. ],
  1406. "description": "删除数据",
  1407. "tags": [
  1408. "菜单"
  1409. ],
  1410. "summary": "删除菜单",
  1411. "parameters": [
  1412. {
  1413. "description": "body",
  1414. "name": "data",
  1415. "in": "body",
  1416. "required": true,
  1417. "schema": {
  1418. "$ref": "#/definitions/dto.SysMenuDeleteReq"
  1419. }
  1420. }
  1421. ],
  1422. "responses": {
  1423. "200": {
  1424. "description": "{\"code\": 200, \"data\": [...]}",
  1425. "schema": {
  1426. "$ref": "#/definitions/response.Response"
  1427. }
  1428. }
  1429. }
  1430. }
  1431. },
  1432. "/api/sys-menu/{id}": {
  1433. "get": {
  1434. "security": [
  1435. {
  1436. "Bearer": []
  1437. }
  1438. ],
  1439. "description": "获取JSON",
  1440. "tags": [
  1441. "菜单"
  1442. ],
  1443. "summary": "Menu详情数据",
  1444. "parameters": [
  1445. {
  1446. "type": "string",
  1447. "description": "id",
  1448. "name": "id",
  1449. "in": "path"
  1450. }
  1451. ],
  1452. "responses": {
  1453. "200": {
  1454. "description": "{\"code\": 200, \"data\": [...]}",
  1455. "schema": {
  1456. "$ref": "#/definitions/response.Response"
  1457. }
  1458. }
  1459. }
  1460. },
  1461. "put": {
  1462. "security": [
  1463. {
  1464. "Bearer": []
  1465. }
  1466. ],
  1467. "description": "获取JSON",
  1468. "consumes": [
  1469. "application/json"
  1470. ],
  1471. "tags": [
  1472. "菜单"
  1473. ],
  1474. "summary": "修改菜单",
  1475. "parameters": [
  1476. {
  1477. "type": "integer",
  1478. "description": "id",
  1479. "name": "id",
  1480. "in": "path",
  1481. "required": true
  1482. },
  1483. {
  1484. "description": "body",
  1485. "name": "data",
  1486. "in": "body",
  1487. "required": true,
  1488. "schema": {
  1489. "$ref": "#/definitions/dto.SysMenuUpdateReq"
  1490. }
  1491. }
  1492. ],
  1493. "responses": {
  1494. "200": {
  1495. "description": "{\"code\": 200, \"data\": [...]}",
  1496. "schema": {
  1497. "$ref": "#/definitions/response.Response"
  1498. }
  1499. }
  1500. }
  1501. }
  1502. },
  1503. "/api/sys-opera-log": {
  1504. "get": {
  1505. "security": [
  1506. {
  1507. "Bearer": []
  1508. }
  1509. ],
  1510. "description": "获取JSON",
  1511. "tags": [
  1512. "操作日志"
  1513. ],
  1514. "summary": "操作日志列表",
  1515. "parameters": [
  1516. {
  1517. "type": "string",
  1518. "description": "title",
  1519. "name": "title",
  1520. "in": "query"
  1521. },
  1522. {
  1523. "type": "string",
  1524. "description": "method",
  1525. "name": "method",
  1526. "in": "query"
  1527. },
  1528. {
  1529. "type": "string",
  1530. "description": "requestMethod",
  1531. "name": "requestMethod",
  1532. "in": "query"
  1533. },
  1534. {
  1535. "type": "string",
  1536. "description": "operUrl",
  1537. "name": "operUrl",
  1538. "in": "query"
  1539. },
  1540. {
  1541. "type": "string",
  1542. "description": "operIp",
  1543. "name": "operIp",
  1544. "in": "query"
  1545. },
  1546. {
  1547. "type": "string",
  1548. "description": "status",
  1549. "name": "status",
  1550. "in": "query"
  1551. },
  1552. {
  1553. "type": "string",
  1554. "description": "beginTime",
  1555. "name": "beginTime",
  1556. "in": "query"
  1557. },
  1558. {
  1559. "type": "string",
  1560. "description": "endTime",
  1561. "name": "endTime",
  1562. "in": "query"
  1563. }
  1564. ],
  1565. "responses": {
  1566. "200": {
  1567. "description": "{\"code\": 200, \"data\": [...]}",
  1568. "schema": {
  1569. "$ref": "#/definitions/response.Response"
  1570. }
  1571. }
  1572. }
  1573. },
  1574. "delete": {
  1575. "security": [
  1576. {
  1577. "Bearer": []
  1578. }
  1579. ],
  1580. "description": "删除数据",
  1581. "tags": [
  1582. "操作日志"
  1583. ],
  1584. "summary": "删除操作日志",
  1585. "parameters": [
  1586. {
  1587. "description": "body",
  1588. "name": "data",
  1589. "in": "body",
  1590. "required": true,
  1591. "schema": {
  1592. "$ref": "#/definitions/dto.SysOperaLogDeleteReq"
  1593. }
  1594. }
  1595. ],
  1596. "responses": {
  1597. "200": {
  1598. "description": "{\"code\": 200, \"data\": [...]}",
  1599. "schema": {
  1600. "$ref": "#/definitions/response.Response"
  1601. }
  1602. }
  1603. }
  1604. }
  1605. },
  1606. "/api/sys-opera-log/{id}": {
  1607. "get": {
  1608. "security": [
  1609. {
  1610. "Bearer": []
  1611. }
  1612. ],
  1613. "description": "获取JSON",
  1614. "tags": [
  1615. "操作日志"
  1616. ],
  1617. "summary": "操作日志通过id获取",
  1618. "parameters": [
  1619. {
  1620. "type": "string",
  1621. "description": "id",
  1622. "name": "id",
  1623. "in": "path"
  1624. }
  1625. ],
  1626. "responses": {
  1627. "200": {
  1628. "description": "{\"code\": 200, \"data\": [...]}",
  1629. "schema": {
  1630. "$ref": "#/definitions/response.Response"
  1631. }
  1632. }
  1633. }
  1634. }
  1635. },
  1636. "/api/sys-org": {
  1637. "get": {
  1638. "security": [
  1639. {
  1640. "Bearer": []
  1641. }
  1642. ],
  1643. "description": "分页列表",
  1644. "tags": [
  1645. "部门"
  1646. ],
  1647. "summary": "分页部门列表数据",
  1648. "parameters": [
  1649. {
  1650. "type": "string",
  1651. "description": "orgName",
  1652. "name": "orgName",
  1653. "in": "query"
  1654. },
  1655. {
  1656. "type": "string",
  1657. "description": "orgId",
  1658. "name": "orgId",
  1659. "in": "query"
  1660. },
  1661. {
  1662. "type": "string",
  1663. "description": "position",
  1664. "name": "position",
  1665. "in": "query"
  1666. }
  1667. ],
  1668. "responses": {
  1669. "200": {
  1670. "description": "{\"code\": 200, \"data\": [...]}",
  1671. "schema": {
  1672. "$ref": "#/definitions/response.Response"
  1673. }
  1674. }
  1675. }
  1676. },
  1677. "post": {
  1678. "security": [
  1679. {
  1680. "Bearer": []
  1681. }
  1682. ],
  1683. "description": "获取JSON",
  1684. "consumes": [
  1685. "application/json"
  1686. ],
  1687. "tags": [
  1688. "部门"
  1689. ],
  1690. "summary": "添加部门",
  1691. "parameters": [
  1692. {
  1693. "description": "data",
  1694. "name": "data",
  1695. "in": "body",
  1696. "required": true,
  1697. "schema": {
  1698. "$ref": "#/definitions/dto.SysOrgInsertReq"
  1699. }
  1700. }
  1701. ],
  1702. "responses": {
  1703. "200": {
  1704. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1705. "schema": {
  1706. "type": "string"
  1707. }
  1708. }
  1709. }
  1710. },
  1711. "delete": {
  1712. "security": [
  1713. {
  1714. "Bearer": []
  1715. }
  1716. ],
  1717. "description": "删除数据",
  1718. "tags": [
  1719. "部门"
  1720. ],
  1721. "summary": "删除部门",
  1722. "parameters": [
  1723. {
  1724. "description": "body",
  1725. "name": "data",
  1726. "in": "body",
  1727. "required": true,
  1728. "schema": {
  1729. "$ref": "#/definitions/dto.SysOrgDeleteReq"
  1730. }
  1731. }
  1732. ],
  1733. "responses": {
  1734. "200": {
  1735. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  1736. "schema": {
  1737. "type": "string"
  1738. }
  1739. }
  1740. }
  1741. }
  1742. },
  1743. "/api/sys-org/{id}": {
  1744. "get": {
  1745. "security": [
  1746. {
  1747. "Bearer": []
  1748. }
  1749. ],
  1750. "description": "获取JSON",
  1751. "tags": [
  1752. "部门"
  1753. ],
  1754. "summary": "获取部门数据",
  1755. "parameters": [
  1756. {
  1757. "type": "string",
  1758. "description": "orgId",
  1759. "name": "orgId",
  1760. "in": "path"
  1761. }
  1762. ],
  1763. "responses": {
  1764. "200": {
  1765. "description": "{\"code\": 200, \"data\": [...]}",
  1766. "schema": {
  1767. "$ref": "#/definitions/response.Response"
  1768. }
  1769. }
  1770. }
  1771. },
  1772. "put": {
  1773. "security": [
  1774. {
  1775. "Bearer": []
  1776. }
  1777. ],
  1778. "description": "获取JSON",
  1779. "consumes": [
  1780. "application/json"
  1781. ],
  1782. "tags": [
  1783. "部门"
  1784. ],
  1785. "summary": "修改部门",
  1786. "parameters": [
  1787. {
  1788. "type": "integer",
  1789. "description": "id",
  1790. "name": "id",
  1791. "in": "path",
  1792. "required": true
  1793. },
  1794. {
  1795. "description": "body",
  1796. "name": "data",
  1797. "in": "body",
  1798. "required": true,
  1799. "schema": {
  1800. "$ref": "#/definitions/dto.SysOrgUpdateReq"
  1801. }
  1802. }
  1803. ],
  1804. "responses": {
  1805. "200": {
  1806. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1807. "schema": {
  1808. "type": "string"
  1809. }
  1810. }
  1811. }
  1812. }
  1813. },
  1814. "/api/sys-post": {
  1815. "get": {
  1816. "security": [
  1817. {
  1818. "Bearer": []
  1819. }
  1820. ],
  1821. "description": "获取JSON",
  1822. "tags": [
  1823. "岗位"
  1824. ],
  1825. "summary": "岗位列表数据",
  1826. "parameters": [
  1827. {
  1828. "type": "string",
  1829. "description": "postName",
  1830. "name": "postName",
  1831. "in": "query"
  1832. },
  1833. {
  1834. "type": "string",
  1835. "description": "postCode",
  1836. "name": "postCode",
  1837. "in": "query"
  1838. },
  1839. {
  1840. "type": "string",
  1841. "description": "postId",
  1842. "name": "postId",
  1843. "in": "query"
  1844. },
  1845. {
  1846. "type": "string",
  1847. "description": "status",
  1848. "name": "status",
  1849. "in": "query"
  1850. }
  1851. ],
  1852. "responses": {
  1853. "200": {
  1854. "description": "{\"code\": 200, \"data\": [...]}",
  1855. "schema": {
  1856. "$ref": "#/definitions/response.Response"
  1857. }
  1858. }
  1859. }
  1860. },
  1861. "post": {
  1862. "security": [
  1863. {
  1864. "Bearer": []
  1865. }
  1866. ],
  1867. "description": "获取JSON",
  1868. "consumes": [
  1869. "application/json"
  1870. ],
  1871. "tags": [
  1872. "岗位"
  1873. ],
  1874. "summary": "添加岗位",
  1875. "parameters": [
  1876. {
  1877. "description": "data",
  1878. "name": "data",
  1879. "in": "body",
  1880. "required": true,
  1881. "schema": {
  1882. "$ref": "#/definitions/dto.SysPostInsertReq"
  1883. }
  1884. }
  1885. ],
  1886. "responses": {
  1887. "200": {
  1888. "description": "{\"code\": 200, \"data\": [...]}",
  1889. "schema": {
  1890. "$ref": "#/definitions/response.Response"
  1891. }
  1892. }
  1893. }
  1894. },
  1895. "delete": {
  1896. "security": [
  1897. {
  1898. "Bearer": []
  1899. }
  1900. ],
  1901. "description": "删除数据",
  1902. "tags": [
  1903. "岗位"
  1904. ],
  1905. "summary": "删除岗位",
  1906. "parameters": [
  1907. {
  1908. "description": "请求参数",
  1909. "name": "id",
  1910. "in": "body",
  1911. "required": true,
  1912. "schema": {
  1913. "$ref": "#/definitions/dto.SysPostDeleteReq"
  1914. }
  1915. }
  1916. ],
  1917. "responses": {
  1918. "200": {
  1919. "description": "{\"code\": 200, \"data\": [...]}",
  1920. "schema": {
  1921. "$ref": "#/definitions/response.Response"
  1922. }
  1923. }
  1924. }
  1925. }
  1926. },
  1927. "/api/sys-post/{id}": {
  1928. "get": {
  1929. "security": [
  1930. {
  1931. "Bearer": []
  1932. }
  1933. ],
  1934. "description": "获取JSON",
  1935. "tags": [
  1936. "岗位"
  1937. ],
  1938. "summary": "获取岗位信息",
  1939. "parameters": [
  1940. {
  1941. "type": "integer",
  1942. "description": "编码",
  1943. "name": "id",
  1944. "in": "path",
  1945. "required": true
  1946. }
  1947. ],
  1948. "responses": {
  1949. "200": {
  1950. "description": "{\"code\": 200, \"data\": [...]}",
  1951. "schema": {
  1952. "$ref": "#/definitions/response.Response"
  1953. }
  1954. }
  1955. }
  1956. },
  1957. "put": {
  1958. "security": [
  1959. {
  1960. "Bearer": []
  1961. }
  1962. ],
  1963. "description": "获取JSON",
  1964. "consumes": [
  1965. "application/json"
  1966. ],
  1967. "tags": [
  1968. "岗位"
  1969. ],
  1970. "summary": "修改岗位",
  1971. "parameters": [
  1972. {
  1973. "description": "body",
  1974. "name": "data",
  1975. "in": "body",
  1976. "required": true,
  1977. "schema": {
  1978. "$ref": "#/definitions/dto.SysPostUpdateReq"
  1979. }
  1980. }
  1981. ],
  1982. "responses": {
  1983. "200": {
  1984. "description": "{\"code\": 200, \"data\": [...]}",
  1985. "schema": {
  1986. "$ref": "#/definitions/response.Response"
  1987. }
  1988. }
  1989. }
  1990. }
  1991. },
  1992. "/api/sys-role": {
  1993. "get": {
  1994. "security": [
  1995. {
  1996. "Bearer": []
  1997. }
  1998. ],
  1999. "description": "Get JSON",
  2000. "tags": [
  2001. "角色"
  2002. ],
  2003. "summary": "角色列表数据",
  2004. "parameters": [
  2005. {
  2006. "type": "string",
  2007. "description": "roleName",
  2008. "name": "roleName",
  2009. "in": "query"
  2010. },
  2011. {
  2012. "type": "string",
  2013. "description": "status",
  2014. "name": "status",
  2015. "in": "query"
  2016. },
  2017. {
  2018. "type": "string",
  2019. "description": "roleKey",
  2020. "name": "roleKey",
  2021. "in": "query"
  2022. },
  2023. {
  2024. "type": "integer",
  2025. "description": "页条数",
  2026. "name": "pageSize",
  2027. "in": "query"
  2028. },
  2029. {
  2030. "type": "integer",
  2031. "description": "页码",
  2032. "name": "pageIndex",
  2033. "in": "query"
  2034. }
  2035. ],
  2036. "responses": {
  2037. "200": {
  2038. "description": "{\"code\": 200, \"data\": [...]}",
  2039. "schema": {
  2040. "$ref": "#/definitions/response.Response"
  2041. }
  2042. }
  2043. }
  2044. },
  2045. "post": {
  2046. "security": [
  2047. {
  2048. "Bearer": []
  2049. }
  2050. ],
  2051. "description": "获取JSON",
  2052. "consumes": [
  2053. "application/json"
  2054. ],
  2055. "tags": [
  2056. "角色"
  2057. ],
  2058. "summary": "创建角色",
  2059. "parameters": [
  2060. {
  2061. "description": "data",
  2062. "name": "data",
  2063. "in": "body",
  2064. "required": true,
  2065. "schema": {
  2066. "$ref": "#/definitions/dto.SysRoleInsertReq"
  2067. }
  2068. }
  2069. ],
  2070. "responses": {
  2071. "200": {
  2072. "description": "{\"code\": 200, \"data\": [...]}",
  2073. "schema": {
  2074. "$ref": "#/definitions/response.Response"
  2075. }
  2076. }
  2077. }
  2078. },
  2079. "delete": {
  2080. "security": [
  2081. {
  2082. "Bearer": []
  2083. }
  2084. ],
  2085. "description": "删除数据",
  2086. "tags": [
  2087. "角色"
  2088. ],
  2089. "summary": "删除用户角色",
  2090. "parameters": [
  2091. {
  2092. "description": "body",
  2093. "name": "data",
  2094. "in": "body",
  2095. "required": true,
  2096. "schema": {
  2097. "$ref": "#/definitions/dto.SysRoleDeleteReq"
  2098. }
  2099. }
  2100. ],
  2101. "responses": {
  2102. "200": {
  2103. "description": "{\"code\": 200, \"data\": [...]}",
  2104. "schema": {
  2105. "$ref": "#/definitions/response.Response"
  2106. }
  2107. }
  2108. }
  2109. }
  2110. },
  2111. "/api/sys-role/change-status": {
  2112. "put": {
  2113. "security": [
  2114. {
  2115. "Bearer": []
  2116. }
  2117. ],
  2118. "description": "获取JSON",
  2119. "consumes": [
  2120. "application/json"
  2121. ],
  2122. "tags": [
  2123. "角色"
  2124. ],
  2125. "summary": "修改用户角色",
  2126. "parameters": [
  2127. {
  2128. "description": "body",
  2129. "name": "data",
  2130. "in": "body",
  2131. "required": true,
  2132. "schema": {
  2133. "$ref": "#/definitions/dto.UpdateStatusReq"
  2134. }
  2135. }
  2136. ],
  2137. "responses": {
  2138. "200": {
  2139. "description": "{\"code\": 200, \"data\": [...]}",
  2140. "schema": {
  2141. "$ref": "#/definitions/response.Response"
  2142. }
  2143. }
  2144. }
  2145. }
  2146. },
  2147. "/api/sys-role/data-scope": {
  2148. "put": {
  2149. "security": [
  2150. {
  2151. "Bearer": []
  2152. }
  2153. ],
  2154. "description": "获取JSON",
  2155. "consumes": [
  2156. "application/json"
  2157. ],
  2158. "tags": [
  2159. "角色"
  2160. ],
  2161. "summary": "更新角色数据权限",
  2162. "parameters": [
  2163. {
  2164. "description": "body",
  2165. "name": "data",
  2166. "in": "body",
  2167. "required": true,
  2168. "schema": {
  2169. "$ref": "#/definitions/dto.RoleDataScopeReq"
  2170. }
  2171. }
  2172. ],
  2173. "responses": {
  2174. "200": {
  2175. "description": "{\"code\": 200, \"data\": [...]}",
  2176. "schema": {
  2177. "$ref": "#/definitions/response.Response"
  2178. }
  2179. }
  2180. }
  2181. }
  2182. },
  2183. "/api/sys-role/{id}": {
  2184. "get": {
  2185. "security": [
  2186. {
  2187. "Bearer": []
  2188. }
  2189. ],
  2190. "description": "获取JSON",
  2191. "tags": [
  2192. "角色"
  2193. ],
  2194. "summary": "获取Role数据",
  2195. "parameters": [
  2196. {
  2197. "type": "string",
  2198. "description": "id",
  2199. "name": "id",
  2200. "in": "path"
  2201. }
  2202. ],
  2203. "responses": {
  2204. "200": {
  2205. "description": "{\"code\": 200, \"data\": [...]}",
  2206. "schema": {
  2207. "$ref": "#/definitions/response.Response"
  2208. }
  2209. }
  2210. }
  2211. },
  2212. "put": {
  2213. "security": [
  2214. {
  2215. "Bearer": []
  2216. }
  2217. ],
  2218. "description": "获取JSON",
  2219. "consumes": [
  2220. "application/json"
  2221. ],
  2222. "tags": [
  2223. "角色"
  2224. ],
  2225. "summary": "修改用户角色",
  2226. "parameters": [
  2227. {
  2228. "description": "body",
  2229. "name": "data",
  2230. "in": "body",
  2231. "required": true,
  2232. "schema": {
  2233. "$ref": "#/definitions/dto.SysRoleUpdateReq"
  2234. }
  2235. }
  2236. ],
  2237. "responses": {
  2238. "200": {
  2239. "description": "{\"code\": 200, \"data\": [...]}",
  2240. "schema": {
  2241. "$ref": "#/definitions/response.Response"
  2242. }
  2243. }
  2244. }
  2245. }
  2246. },
  2247. "/api/sys-user": {
  2248. "get": {
  2249. "security": [
  2250. {
  2251. "Bearer": []
  2252. }
  2253. ],
  2254. "description": "获取JSON",
  2255. "tags": [
  2256. "用户"
  2257. ],
  2258. "summary": "列表用户信息数据",
  2259. "parameters": [
  2260. {
  2261. "type": "string",
  2262. "description": "username",
  2263. "name": "username",
  2264. "in": "query"
  2265. }
  2266. ],
  2267. "responses": {
  2268. "200": {
  2269. "description": "{\"code\": 200, \"data\": [...]}",
  2270. "schema": {
  2271. "type": "string"
  2272. }
  2273. }
  2274. }
  2275. },
  2276. "put": {
  2277. "security": [
  2278. {
  2279. "Bearer": []
  2280. }
  2281. ],
  2282. "description": "获取JSON",
  2283. "consumes": [
  2284. "application/json"
  2285. ],
  2286. "tags": [
  2287. "用户"
  2288. ],
  2289. "summary": "修改用户数据",
  2290. "parameters": [
  2291. {
  2292. "description": "body",
  2293. "name": "data",
  2294. "in": "body",
  2295. "required": true,
  2296. "schema": {
  2297. "$ref": "#/definitions/dto.SysUserUpdateReq"
  2298. }
  2299. }
  2300. ],
  2301. "responses": {
  2302. "200": {
  2303. "description": "{\"code\": 200, \"data\": [...]}",
  2304. "schema": {
  2305. "$ref": "#/definitions/response.Response"
  2306. }
  2307. }
  2308. }
  2309. },
  2310. "post": {
  2311. "security": [
  2312. {
  2313. "Bearer": []
  2314. }
  2315. ],
  2316. "description": "获取JSON",
  2317. "consumes": [
  2318. "application/json"
  2319. ],
  2320. "tags": [
  2321. "用户"
  2322. ],
  2323. "summary": "创建用户",
  2324. "parameters": [
  2325. {
  2326. "description": "用户数据",
  2327. "name": "data",
  2328. "in": "body",
  2329. "required": true,
  2330. "schema": {
  2331. "$ref": "#/definitions/dto.SysUserInsertReq"
  2332. }
  2333. }
  2334. ],
  2335. "responses": {
  2336. "200": {
  2337. "description": "{\"code\": 200, \"data\": [...]}",
  2338. "schema": {
  2339. "$ref": "#/definitions/response.Response"
  2340. }
  2341. }
  2342. }
  2343. },
  2344. "delete": {
  2345. "security": [
  2346. {
  2347. "Bearer": []
  2348. }
  2349. ],
  2350. "description": "删除数据",
  2351. "tags": [
  2352. "用户"
  2353. ],
  2354. "summary": "删除用户数据",
  2355. "parameters": [
  2356. {
  2357. "type": "integer",
  2358. "description": "userId",
  2359. "name": "userId",
  2360. "in": "path",
  2361. "required": true
  2362. }
  2363. ],
  2364. "responses": {
  2365. "200": {
  2366. "description": "{\"code\": 200, \"data\": [...]}",
  2367. "schema": {
  2368. "$ref": "#/definitions/response.Response"
  2369. }
  2370. }
  2371. }
  2372. }
  2373. },
  2374. "/api/sys-user/change-status": {
  2375. "put": {
  2376. "security": [
  2377. {
  2378. "Bearer": []
  2379. }
  2380. ],
  2381. "description": "获取JSON",
  2382. "consumes": [
  2383. "application/json"
  2384. ],
  2385. "tags": [
  2386. "用户"
  2387. ],
  2388. "summary": "修改用户状态",
  2389. "parameters": [
  2390. {
  2391. "description": "body",
  2392. "name": "data",
  2393. "in": "body",
  2394. "required": true,
  2395. "schema": {
  2396. "$ref": "#/definitions/dto.UpdateSysUserStatusReq"
  2397. }
  2398. }
  2399. ],
  2400. "responses": {
  2401. "200": {
  2402. "description": "{\"code\": 200, \"data\": [...]}",
  2403. "schema": {
  2404. "$ref": "#/definitions/response.Response"
  2405. }
  2406. }
  2407. }
  2408. }
  2409. },
  2410. "/api/sys-user/reset-pwd": {
  2411. "put": {
  2412. "security": [
  2413. {
  2414. "Bearer": []
  2415. }
  2416. ],
  2417. "description": "获取JSON",
  2418. "consumes": [
  2419. "application/json"
  2420. ],
  2421. "tags": [
  2422. "用户"
  2423. ],
  2424. "summary": "重置用户密码",
  2425. "parameters": [
  2426. {
  2427. "description": "body",
  2428. "name": "data",
  2429. "in": "body",
  2430. "required": true,
  2431. "schema": {
  2432. "$ref": "#/definitions/dto.ResetSysUserPwdReq"
  2433. }
  2434. }
  2435. ],
  2436. "responses": {
  2437. "200": {
  2438. "description": "{\"code\": 200, \"data\": [...]}",
  2439. "schema": {
  2440. "$ref": "#/definitions/response.Response"
  2441. }
  2442. }
  2443. }
  2444. }
  2445. },
  2446. "/api/sys-user/roles/{id}": {
  2447. "get": {
  2448. "security": [
  2449. {
  2450. "Bearer": []
  2451. }
  2452. ],
  2453. "description": "获取JSON",
  2454. "tags": [
  2455. "用户"
  2456. ],
  2457. "summary": "获取用户角色",
  2458. "responses": {
  2459. "200": {
  2460. "description": "{\"code\": 200, \"data\": [...]}",
  2461. "schema": {
  2462. "$ref": "#/definitions/response.Response"
  2463. }
  2464. }
  2465. }
  2466. }
  2467. },
  2468. "/api/sys-user/{id}": {
  2469. "get": {
  2470. "security": [
  2471. {
  2472. "Bearer": []
  2473. }
  2474. ],
  2475. "description": "获取JSON",
  2476. "tags": [
  2477. "用户"
  2478. ],
  2479. "summary": "获取用户",
  2480. "parameters": [
  2481. {
  2482. "type": "integer",
  2483. "description": "用户编码",
  2484. "name": "userId",
  2485. "in": "path",
  2486. "required": true
  2487. }
  2488. ],
  2489. "responses": {
  2490. "200": {
  2491. "description": "{\"code\": 200, \"data\": [...]}",
  2492. "schema": {
  2493. "$ref": "#/definitions/response.Response"
  2494. }
  2495. }
  2496. }
  2497. }
  2498. },
  2499. "/api/sys/app-config": {
  2500. "get": {
  2501. "description": "获取系统配置信息,主要注意这里不在验证权限",
  2502. "tags": [
  2503. "系統接口/系统配置"
  2504. ],
  2505. "summary": "获取系统前台配置信息,主要注意这里不在验证权限",
  2506. "responses": {
  2507. "200": {
  2508. "description": "{\"code\": 200, \"data\": [...]}",
  2509. "schema": {
  2510. "allOf": [
  2511. {
  2512. "$ref": "#/definitions/response.Response"
  2513. },
  2514. {
  2515. "type": "object",
  2516. "properties": {
  2517. "data": {
  2518. "type": "object",
  2519. "additionalProperties": {
  2520. "type": "string"
  2521. }
  2522. }
  2523. }
  2524. }
  2525. ]
  2526. }
  2527. }
  2528. }
  2529. }
  2530. },
  2531. "/api/sys/avatar": {
  2532. "put": {
  2533. "security": [
  2534. {
  2535. "Bearer": []
  2536. }
  2537. ],
  2538. "description": "获取JSON",
  2539. "consumes": [
  2540. "multipart/form-data"
  2541. ],
  2542. "tags": [
  2543. "系統接口/个人中心"
  2544. ],
  2545. "summary": "修改头像",
  2546. "parameters": [
  2547. {
  2548. "type": "file",
  2549. "description": "file",
  2550. "name": "file",
  2551. "in": "formData",
  2552. "required": true
  2553. }
  2554. ],
  2555. "responses": {
  2556. "200": {
  2557. "description": "{\"code\": 200, \"data\": [...]}",
  2558. "schema": {
  2559. "$ref": "#/definitions/response.Response"
  2560. }
  2561. }
  2562. }
  2563. }
  2564. },
  2565. "/api/sys/config-key/{key}": {
  2566. "get": {
  2567. "security": [
  2568. {
  2569. "Bearer": []
  2570. }
  2571. ],
  2572. "description": "根据Key获取SysConfig的Service",
  2573. "tags": [
  2574. "系統接口/系统配置"
  2575. ],
  2576. "summary": "根据Key获取SysConfig的Service",
  2577. "parameters": [
  2578. {
  2579. "type": "string",
  2580. "description": "configKey",
  2581. "name": "configKey",
  2582. "in": "path"
  2583. }
  2584. ],
  2585. "responses": {
  2586. "200": {
  2587. "description": "{\"code\": 200, \"data\": [...]}",
  2588. "schema": {
  2589. "allOf": [
  2590. {
  2591. "$ref": "#/definitions/response.Response"
  2592. },
  2593. {
  2594. "type": "object",
  2595. "properties": {
  2596. "data": {
  2597. "$ref": "#/definitions/dto.SysConfigByKeyReq"
  2598. }
  2599. }
  2600. }
  2601. ]
  2602. }
  2603. }
  2604. }
  2605. }
  2606. },
  2607. "/api/sys/dict-data-option-select": {
  2608. "get": {
  2609. "security": [
  2610. {
  2611. "Bearer": []
  2612. }
  2613. ],
  2614. "description": "数据字典根据key获取",
  2615. "tags": [
  2616. "系統接口/字典数据"
  2617. ],
  2618. "summary": "数据字典根据key获取",
  2619. "parameters": [
  2620. {
  2621. "type": "integer",
  2622. "description": "dictType",
  2623. "name": "dictType",
  2624. "in": "query",
  2625. "required": true
  2626. }
  2627. ],
  2628. "responses": {
  2629. "200": {
  2630. "description": "{\"code\": 200, \"data\": [...]}",
  2631. "schema": {
  2632. "allOf": [
  2633. {
  2634. "$ref": "#/definitions/response.Response"
  2635. },
  2636. {
  2637. "type": "object",
  2638. "properties": {
  2639. "data": {
  2640. "type": "array",
  2641. "items": {
  2642. "$ref": "#/definitions/dto.SysDictDataGetAllResp"
  2643. }
  2644. }
  2645. }
  2646. }
  2647. ]
  2648. }
  2649. }
  2650. }
  2651. }
  2652. },
  2653. "/api/sys/dict-type-option-select": {
  2654. "get": {
  2655. "security": [
  2656. {
  2657. "Bearer": []
  2658. }
  2659. ],
  2660. "description": "获取JSON",
  2661. "tags": [
  2662. "系統接口/字典类型"
  2663. ],
  2664. "summary": "获取字典类下拉型树",
  2665. "parameters": [
  2666. {
  2667. "type": "string",
  2668. "description": "dictName",
  2669. "name": "dictName",
  2670. "in": "query"
  2671. },
  2672. {
  2673. "type": "string",
  2674. "description": "dictId",
  2675. "name": "dictId",
  2676. "in": "query"
  2677. },
  2678. {
  2679. "type": "string",
  2680. "description": "dictType",
  2681. "name": "dictType",
  2682. "in": "query"
  2683. }
  2684. ],
  2685. "responses": {
  2686. "200": {
  2687. "description": "{\"code\": 200, \"data\": [...]}",
  2688. "schema": {
  2689. "$ref": "#/definitions/response.Response"
  2690. }
  2691. }
  2692. }
  2693. }
  2694. },
  2695. "/api/sys/gen-api-to-file/{tableId}": {
  2696. "get": {
  2697. "description": "生成 Menu 迁移文件",
  2698. "tags": [
  2699. "系統接口 / 生成工具 / 生成代码"
  2700. ],
  2701. "summary": "生成 Menu 迁移文件",
  2702. "parameters": [
  2703. {
  2704. "type": "string",
  2705. "description": "tableId / 表Id",
  2706. "name": "tableId",
  2707. "in": "path"
  2708. }
  2709. ],
  2710. "responses": {
  2711. "200": {
  2712. "description": "{\"code\": 200, \"data\": [...]}",
  2713. "schema": {
  2714. "$ref": "#/definitions/response.Response"
  2715. }
  2716. }
  2717. }
  2718. }
  2719. },
  2720. "/api/sys/gen-code/{tableId}": {
  2721. "get": {
  2722. "description": "生成代码",
  2723. "tags": [
  2724. "系統接口 / 生成工具 / 生成代码"
  2725. ],
  2726. "summary": "生成代码",
  2727. "parameters": [
  2728. {
  2729. "type": "string",
  2730. "description": "tableId / 表Id",
  2731. "name": "tableId",
  2732. "in": "path"
  2733. }
  2734. ],
  2735. "responses": {
  2736. "200": {
  2737. "description": "{\"code\": 200, \"data\": [...]}",
  2738. "schema": {
  2739. "$ref": "#/definitions/response.Response"
  2740. }
  2741. }
  2742. }
  2743. }
  2744. },
  2745. "/api/sys/gen-db-columns": {
  2746. "get": {
  2747. "description": "数据库表列分页列表 / database table column page list",
  2748. "tags": [
  2749. "系统接口 / 生成工具"
  2750. ],
  2751. "summary": "分页列表数据 / page list data",
  2752. "parameters": [
  2753. {
  2754. "type": "string",
  2755. "description": "tableName / 数据表名称",
  2756. "name": "tableName",
  2757. "in": "query"
  2758. },
  2759. {
  2760. "type": "integer",
  2761. "description": "pageSize / 页条数",
  2762. "name": "pageSize",
  2763. "in": "query"
  2764. },
  2765. {
  2766. "type": "integer",
  2767. "description": "pageIndex / 页码",
  2768. "name": "pageIndex",
  2769. "in": "query"
  2770. }
  2771. ],
  2772. "responses": {
  2773. "200": {
  2774. "description": "{\"code\": 200, \"data\": [...]}",
  2775. "schema": {
  2776. "$ref": "#/definitions/response.Response"
  2777. }
  2778. }
  2779. }
  2780. }
  2781. },
  2782. "/api/sys/gen-db-table-tree": {
  2783. "get": {
  2784. "security": [
  2785. {
  2786. "Bearer": []
  2787. }
  2788. ],
  2789. "description": "获取JSON",
  2790. "tags": [
  2791. "系統接口 / 生成工具"
  2792. ],
  2793. "summary": "查询关系表下拉树",
  2794. "parameters": [
  2795. {
  2796. "type": "integer",
  2797. "description": "tableId",
  2798. "name": "tableId",
  2799. "in": "path",
  2800. "required": true
  2801. }
  2802. ],
  2803. "responses": {
  2804. "200": {
  2805. "description": "{\"code\": 200, \"data\": [...]}",
  2806. "schema": {
  2807. "$ref": "#/definitions/response.Response"
  2808. }
  2809. }
  2810. }
  2811. }
  2812. },
  2813. "/api/sys/gen-db-tables": {
  2814. "get": {
  2815. "description": "查询数据库表列表 / database table page list",
  2816. "tags": [
  2817. "系統接口 / 生成工具"
  2818. ],
  2819. "summary": "查询数据库表列表 / page list data",
  2820. "parameters": [
  2821. {
  2822. "type": "string",
  2823. "description": "tableName / 数据表名称",
  2824. "name": "tableName",
  2825. "in": "query"
  2826. },
  2827. {
  2828. "type": "integer",
  2829. "description": "pageSize / 页条数",
  2830. "name": "pageSize",
  2831. "in": "query"
  2832. },
  2833. {
  2834. "type": "integer",
  2835. "description": "pageIndex / 页码",
  2836. "name": "pageIndex",
  2837. "in": "query"
  2838. }
  2839. ],
  2840. "responses": {
  2841. "200": {
  2842. "description": "{\"code\": 200, \"data\": [...]}",
  2843. "schema": {
  2844. "$ref": "#/definitions/response.Response"
  2845. }
  2846. }
  2847. }
  2848. }
  2849. },
  2850. "/api/sys/gen-menu-api/{tableId}": {
  2851. "get": {
  2852. "description": "生成菜单API到DB",
  2853. "tags": [
  2854. "系統接口 / 生成工具 / 生成代码"
  2855. ],
  2856. "summary": "生成菜单及接口",
  2857. "parameters": [
  2858. {
  2859. "type": "string",
  2860. "description": "tableId / 表Id",
  2861. "name": "tableId",
  2862. "in": "path"
  2863. }
  2864. ],
  2865. "responses": {
  2866. "200": {
  2867. "description": "{\"code\": 200, \"data\": [...]}",
  2868. "schema": {
  2869. "$ref": "#/definitions/response.Response"
  2870. }
  2871. }
  2872. }
  2873. }
  2874. },
  2875. "/api/sys/gen-preview/{tableId}": {
  2876. "get": {
  2877. "description": "生成预览",
  2878. "tags": [
  2879. "系統接口 / 生成工具 / 生成代码"
  2880. ],
  2881. "summary": "生成预览",
  2882. "parameters": [
  2883. {
  2884. "type": "string",
  2885. "description": "tableId / 表Id",
  2886. "name": "tableId",
  2887. "in": "path"
  2888. }
  2889. ],
  2890. "responses": {
  2891. "200": {
  2892. "description": "{\"code\": 200, \"data\": [...]}",
  2893. "schema": {
  2894. "$ref": "#/definitions/response.Response"
  2895. }
  2896. }
  2897. }
  2898. }
  2899. },
  2900. "/api/sys/gen-table": {
  2901. "get": {
  2902. "description": "查询代码生成表列表",
  2903. "tags": [
  2904. "系統接口 / 生成工具"
  2905. ],
  2906. "summary": "查询代码生成表列表",
  2907. "parameters": [
  2908. {
  2909. "type": "string",
  2910. "description": "tableName / 数据表名称",
  2911. "name": "tableName",
  2912. "in": "query"
  2913. },
  2914. {
  2915. "type": "integer",
  2916. "description": "pageSize / 页条数",
  2917. "name": "pageSize",
  2918. "in": "query"
  2919. },
  2920. {
  2921. "type": "integer",
  2922. "description": "pageIndex / 页码",
  2923. "name": "pageIndex",
  2924. "in": "query"
  2925. }
  2926. ],
  2927. "responses": {
  2928. "200": {
  2929. "description": "{\"code\": 200, \"data\": [...]}",
  2930. "schema": {
  2931. "$ref": "#/definitions/response.Response"
  2932. }
  2933. }
  2934. }
  2935. },
  2936. "put": {
  2937. "security": [
  2938. {
  2939. "Bearer": []
  2940. }
  2941. ],
  2942. "description": "修改表结构",
  2943. "consumes": [
  2944. "application/json"
  2945. ],
  2946. "tags": [
  2947. "系統接口 / 生成工具"
  2948. ],
  2949. "summary": "修改表结构",
  2950. "parameters": [
  2951. {
  2952. "description": "body",
  2953. "name": "data",
  2954. "in": "body",
  2955. "required": true,
  2956. "schema": {
  2957. "$ref": "#/definitions/tools.SysTables"
  2958. }
  2959. }
  2960. ],
  2961. "responses": {
  2962. "200": {
  2963. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2964. "schema": {
  2965. "type": "string"
  2966. }
  2967. }
  2968. }
  2969. },
  2970. "post": {
  2971. "security": [
  2972. {
  2973. "Bearer": []
  2974. }
  2975. ],
  2976. "description": "导入表",
  2977. "consumes": [
  2978. "application/json"
  2979. ],
  2980. "tags": [
  2981. "系統接口 / 生成工具"
  2982. ],
  2983. "summary": "导入表",
  2984. "parameters": [
  2985. {
  2986. "type": "string",
  2987. "description": "tableName / 数据表名称",
  2988. "name": "tables",
  2989. "in": "query"
  2990. }
  2991. ],
  2992. "responses": {
  2993. "200": {
  2994. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2995. "schema": {
  2996. "type": "string"
  2997. }
  2998. }
  2999. }
  3000. }
  3001. },
  3002. "/api/sys/gen-table/name": {
  3003. "get": {
  3004. "security": [
  3005. {
  3006. "Bearer": []
  3007. }
  3008. ],
  3009. "description": "获取代码生成表详情(表名称)",
  3010. "tags": [
  3011. "系統接口 / 生成工具"
  3012. ],
  3013. "summary": "获取代码生成表详情(表名称)",
  3014. "parameters": [
  3015. {
  3016. "type": "integer",
  3017. "description": "tableId",
  3018. "name": "tableId",
  3019. "in": "path",
  3020. "required": true
  3021. }
  3022. ],
  3023. "responses": {
  3024. "200": {
  3025. "description": "{\"code\": 200, \"data\": [...]}",
  3026. "schema": {
  3027. "$ref": "#/definitions/response.Response"
  3028. }
  3029. }
  3030. }
  3031. }
  3032. },
  3033. "/api/sys/gen-table/{tableId}": {
  3034. "get": {
  3035. "security": [
  3036. {
  3037. "Bearer": []
  3038. }
  3039. ],
  3040. "description": "获取代码生成表详情",
  3041. "tags": [
  3042. "系統接口 / 生成工具"
  3043. ],
  3044. "summary": "获取代码生成表详情",
  3045. "parameters": [
  3046. {
  3047. "type": "integer",
  3048. "description": "tableId",
  3049. "name": "tableId",
  3050. "in": "path",
  3051. "required": true
  3052. }
  3053. ],
  3054. "responses": {
  3055. "200": {
  3056. "description": "{\"code\": 200, \"data\": [...]}",
  3057. "schema": {
  3058. "$ref": "#/definitions/response.Response"
  3059. }
  3060. }
  3061. }
  3062. },
  3063. "delete": {
  3064. "description": "删除表结构",
  3065. "tags": [
  3066. "系統接口 / 生成工具"
  3067. ],
  3068. "summary": "删除表结构",
  3069. "parameters": [
  3070. {
  3071. "type": "integer",
  3072. "description": "tableId",
  3073. "name": "tableId",
  3074. "in": "path",
  3075. "required": true
  3076. }
  3077. ],
  3078. "responses": {
  3079. "200": {
  3080. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  3081. "schema": {
  3082. "type": "string"
  3083. }
  3084. }
  3085. }
  3086. }
  3087. },
  3088. "/api/sys/get-info": {
  3089. "get": {
  3090. "security": [
  3091. {
  3092. "Bearer": []
  3093. }
  3094. ],
  3095. "description": "获取JSON",
  3096. "tags": [
  3097. "系統接口/个人中心"
  3098. ],
  3099. "summary": "获取个人信息",
  3100. "responses": {
  3101. "200": {
  3102. "description": "{\"code\": 200, \"data\": [...]}",
  3103. "schema": {
  3104. "$ref": "#/definitions/response.Response"
  3105. }
  3106. }
  3107. }
  3108. }
  3109. },
  3110. "/api/sys/get-router": {
  3111. "get": {
  3112. "security": [
  3113. {
  3114. "Bearer": []
  3115. }
  3116. ],
  3117. "description": "获取JSON",
  3118. "tags": [
  3119. "系統接口/菜单"
  3120. ],
  3121. "summary": "根据登录角色名称获取菜单列表数据(左菜单使用)",
  3122. "responses": {
  3123. "200": {
  3124. "description": "{\"code\": 200, \"data\": [...]}",
  3125. "schema": {
  3126. "$ref": "#/definitions/response.Response"
  3127. }
  3128. }
  3129. }
  3130. }
  3131. },
  3132. "/api/sys/org-tree/{id}": {
  3133. "get": {
  3134. "security": [
  3135. {
  3136. "Bearer": []
  3137. }
  3138. ],
  3139. "description": "左侧部门树",
  3140. "tags": [
  3141. "系統接口/部门"
  3142. ],
  3143. "summary": "部门树",
  3144. "parameters": [
  3145. {
  3146. "description": "body",
  3147. "name": "data",
  3148. "in": "body",
  3149. "required": true,
  3150. "schema": {
  3151. "$ref": "#/definitions/dto.SysOrgDeleteReq"
  3152. }
  3153. }
  3154. ],
  3155. "responses": {
  3156. "200": {
  3157. "description": "{\"code\": 200, \"data\": []}",
  3158. "schema": {
  3159. "type": "string"
  3160. }
  3161. }
  3162. }
  3163. }
  3164. },
  3165. "/api/sys/prem-menu-btn/{permission}": {
  3166. "get": {
  3167. "security": [
  3168. {
  3169. "Bearer": []
  3170. }
  3171. ],
  3172. "description": "根据权限名查询子按钮",
  3173. "consumes": [
  3174. "application/json"
  3175. ],
  3176. "tags": [
  3177. "系統接口/菜单"
  3178. ],
  3179. "summary": "根据权限名查询子按钮",
  3180. "parameters": [
  3181. {
  3182. "type": "integer",
  3183. "description": "permission",
  3184. "name": "permission",
  3185. "in": "path",
  3186. "required": true
  3187. }
  3188. ],
  3189. "responses": {
  3190. "200": {
  3191. "description": "{\"code\": 200, \"data\": [...]}",
  3192. "schema": {
  3193. "$ref": "#/definitions/response.Response"
  3194. }
  3195. }
  3196. }
  3197. }
  3198. },
  3199. "/api/sys/profile": {
  3200. "get": {
  3201. "security": [
  3202. {
  3203. "Bearer": []
  3204. }
  3205. ],
  3206. "description": "获取JSON",
  3207. "tags": [
  3208. "系統接口/个人中心"
  3209. ],
  3210. "summary": "获取个人中心用户",
  3211. "responses": {
  3212. "200": {
  3213. "description": "{\"code\": 200, \"data\": [...]}",
  3214. "schema": {
  3215. "$ref": "#/definitions/response.Response"
  3216. }
  3217. }
  3218. }
  3219. }
  3220. },
  3221. "/api/sys/pwd": {
  3222. "put": {
  3223. "security": [
  3224. {
  3225. "Bearer": []
  3226. }
  3227. ],
  3228. "description": "获取JSON",
  3229. "consumes": [
  3230. "application/json"
  3231. ],
  3232. "tags": [
  3233. "系統接口/个人中心"
  3234. ],
  3235. "summary": "修改密码",
  3236. "parameters": [
  3237. {
  3238. "description": "body",
  3239. "name": "data",
  3240. "in": "body",
  3241. "required": true,
  3242. "schema": {
  3243. "$ref": "#/definitions/dto.PassWord"
  3244. }
  3245. }
  3246. ],
  3247. "responses": {
  3248. "200": {
  3249. "description": "{\"code\": 200, \"data\": [...]}",
  3250. "schema": {
  3251. "$ref": "#/definitions/response.Response"
  3252. }
  3253. }
  3254. }
  3255. }
  3256. },
  3257. "/api/sys/role-menu-tree-select/{roleId}": {
  3258. "get": {
  3259. "security": [
  3260. {
  3261. "Bearer": []
  3262. }
  3263. ],
  3264. "description": "获取JSON",
  3265. "consumes": [
  3266. "application/json"
  3267. ],
  3268. "tags": [
  3269. "系統接口/菜单"
  3270. ],
  3271. "summary": "角色修改使用的菜单列表",
  3272. "parameters": [
  3273. {
  3274. "type": "integer",
  3275. "description": "roleId",
  3276. "name": "roleId",
  3277. "in": "path",
  3278. "required": true
  3279. }
  3280. ],
  3281. "responses": {
  3282. "200": {
  3283. "description": "{\"code\": 200, \"data\": [...]}",
  3284. "schema": {
  3285. "$ref": "#/definitions/response.Response"
  3286. }
  3287. }
  3288. }
  3289. }
  3290. },
  3291. "/api/sys/role-org-tree-select/{roleId}": {
  3292. "get": {
  3293. "security": [
  3294. {
  3295. "Bearer": []
  3296. }
  3297. ],
  3298. "description": "根据角色查询部门树",
  3299. "tags": [
  3300. "系統接口/部门"
  3301. ],
  3302. "summary": "部门下拉树",
  3303. "parameters": [
  3304. {
  3305. "description": "body",
  3306. "name": "data",
  3307. "in": "body",
  3308. "required": true,
  3309. "schema": {
  3310. "$ref": "#/definitions/dto.SysOrgDeleteReq"
  3311. }
  3312. }
  3313. ],
  3314. "responses": {
  3315. "200": {
  3316. "description": "{\"code\": 200, \"data\": []}",
  3317. "schema": {
  3318. "type": "string"
  3319. }
  3320. }
  3321. }
  3322. }
  3323. },
  3324. "/api/sys/server-monitor": {
  3325. "get": {
  3326. "security": [
  3327. {
  3328. "Bearer": []
  3329. }
  3330. ],
  3331. "description": "获取JSON",
  3332. "tags": [
  3333. "系統接口/系统服务监控"
  3334. ],
  3335. "summary": "获取系统服务系统信息",
  3336. "responses": {
  3337. "200": {
  3338. "description": "{\"code\": 200, \"data\": [...]}",
  3339. "schema": {
  3340. "$ref": "#/definitions/response.Response"
  3341. }
  3342. }
  3343. }
  3344. }
  3345. },
  3346. "/api/sys/set-config": {
  3347. "get": {
  3348. "security": [
  3349. {
  3350. "Bearer": []
  3351. }
  3352. ],
  3353. "description": "界面操作设置配置值的获取",
  3354. "consumes": [
  3355. "application/json"
  3356. ],
  3357. "tags": [
  3358. "系統接口/系统配置"
  3359. ],
  3360. "summary": "获取可配置的配置参数",
  3361. "responses": {
  3362. "200": {
  3363. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  3364. "schema": {
  3365. "allOf": [
  3366. {
  3367. "$ref": "#/definitions/response.Response"
  3368. },
  3369. {
  3370. "type": "object",
  3371. "properties": {
  3372. "data": {
  3373. "type": "object",
  3374. "additionalProperties": true
  3375. }
  3376. }
  3377. }
  3378. ]
  3379. }
  3380. }
  3381. }
  3382. },
  3383. "put": {
  3384. "security": [
  3385. {
  3386. "Bearer": []
  3387. }
  3388. ],
  3389. "description": "界面操作设置配置值",
  3390. "consumes": [
  3391. "application/json"
  3392. ],
  3393. "tags": [
  3394. "系統接口/系统配置"
  3395. ],
  3396. "summary": "修改可配置的配置参数",
  3397. "parameters": [
  3398. {
  3399. "description": "body",
  3400. "name": "data",
  3401. "in": "body",
  3402. "required": true,
  3403. "schema": {
  3404. "type": "array",
  3405. "items": {
  3406. "$ref": "#/definitions/dto.GetSetSysConfigReq"
  3407. }
  3408. }
  3409. }
  3410. ],
  3411. "responses": {
  3412. "200": {
  3413. "description": "{\"code\": 200, \"message\": \"修改成功\"}",
  3414. "schema": {
  3415. "$ref": "#/definitions/response.Response"
  3416. }
  3417. }
  3418. }
  3419. }
  3420. },
  3421. "/api/sys/upload-file": {
  3422. "post": {
  3423. "security": [
  3424. {
  3425. "Bearer": []
  3426. }
  3427. ],
  3428. "description": "获取JSON",
  3429. "consumes": [
  3430. "multipart/form-data"
  3431. ],
  3432. "tags": [
  3433. "系統接口/上传图片"
  3434. ],
  3435. "summary": "上传图片",
  3436. "parameters": [
  3437. {
  3438. "type": "string",
  3439. "description": "type",
  3440. "name": "type",
  3441. "in": "query",
  3442. "required": true
  3443. },
  3444. {
  3445. "type": "file",
  3446. "description": "file",
  3447. "name": "file",
  3448. "in": "formData",
  3449. "required": true
  3450. }
  3451. ],
  3452. "responses": {
  3453. "200": {
  3454. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  3455. "schema": {
  3456. "type": "string"
  3457. }
  3458. }
  3459. }
  3460. }
  3461. }
  3462. },
  3463. "definitions": {
  3464. "IotAdmin_app_system_models.SysApi": {
  3465. "type": "object",
  3466. "properties": {
  3467. "action": {
  3468. "type": "string"
  3469. },
  3470. "createBy": {
  3471. "type": "integer"
  3472. },
  3473. "createdAt": {
  3474. "type": "string"
  3475. },
  3476. "handle": {
  3477. "type": "string"
  3478. },
  3479. "id": {
  3480. "type": "integer"
  3481. },
  3482. "path": {
  3483. "type": "string"
  3484. },
  3485. "title": {
  3486. "type": "string"
  3487. },
  3488. "type": {
  3489. "type": "string"
  3490. },
  3491. "updateBy": {
  3492. "type": "integer"
  3493. },
  3494. "updatedAt": {
  3495. "type": "string"
  3496. }
  3497. }
  3498. },
  3499. "IotAdmin_app_system_models.SysOrg": {
  3500. "type": "object",
  3501. "properties": {
  3502. "children": {
  3503. "type": "array",
  3504. "items": {
  3505. "$ref": "#/definitions/IotAdmin_app_system_models.SysOrg"
  3506. }
  3507. },
  3508. "createBy": {
  3509. "type": "integer"
  3510. },
  3511. "createdAt": {
  3512. "type": "string"
  3513. },
  3514. "dataScope": {
  3515. "type": "string"
  3516. },
  3517. "email": {
  3518. "description": "邮箱",
  3519. "type": "string"
  3520. },
  3521. "leader": {
  3522. "description": "负责人",
  3523. "type": "string"
  3524. },
  3525. "orgId": {
  3526. "description": "部门编码",
  3527. "type": "integer"
  3528. },
  3529. "orgName": {
  3530. "description": "部门名称",
  3531. "type": "string"
  3532. },
  3533. "orgPath": {
  3534. "type": "string"
  3535. },
  3536. "params": {
  3537. "type": "string"
  3538. },
  3539. "parentId": {
  3540. "description": "上级部门",
  3541. "type": "integer"
  3542. },
  3543. "phone": {
  3544. "description": "手机",
  3545. "type": "string"
  3546. },
  3547. "sort": {
  3548. "description": "排序",
  3549. "type": "integer"
  3550. },
  3551. "status": {
  3552. "description": "状态",
  3553. "type": "integer"
  3554. },
  3555. "updateBy": {
  3556. "type": "integer"
  3557. },
  3558. "updatedAt": {
  3559. "type": "string"
  3560. }
  3561. }
  3562. },
  3563. "dto.GetSetSysConfigReq": {
  3564. "type": "object",
  3565. "properties": {
  3566. "configKey": {
  3567. "type": "string"
  3568. },
  3569. "configValue": {
  3570. "type": "string"
  3571. }
  3572. }
  3573. },
  3574. "dto.PassWord": {
  3575. "type": "object",
  3576. "properties": {
  3577. "newPassword": {
  3578. "type": "string"
  3579. },
  3580. "oldPassword": {
  3581. "type": "string"
  3582. }
  3583. }
  3584. },
  3585. "dto.ResetSysUserPwdReq": {
  3586. "type": "object",
  3587. "properties": {
  3588. "createBy": {
  3589. "type": "integer"
  3590. },
  3591. "password": {
  3592. "type": "string"
  3593. },
  3594. "updateBy": {
  3595. "type": "integer"
  3596. },
  3597. "userId": {
  3598. "description": "用户ID",
  3599. "type": "integer"
  3600. }
  3601. }
  3602. },
  3603. "dto.RoleDataScopeReq": {
  3604. "type": "object",
  3605. "required": [
  3606. "dataScope",
  3607. "roleId"
  3608. ],
  3609. "properties": {
  3610. "dataScope": {
  3611. "type": "string"
  3612. },
  3613. "orgIds": {
  3614. "type": "array",
  3615. "items": {
  3616. "type": "integer"
  3617. }
  3618. },
  3619. "roleId": {
  3620. "type": "integer"
  3621. }
  3622. }
  3623. },
  3624. "dto.SysApiDeleteReq": {
  3625. "type": "object",
  3626. "properties": {
  3627. "ids": {
  3628. "type": "array",
  3629. "items": {
  3630. "type": "integer"
  3631. }
  3632. }
  3633. }
  3634. },
  3635. "dto.SysApiUpdateReq": {
  3636. "type": "object",
  3637. "properties": {
  3638. "action": {
  3639. "type": "string"
  3640. },
  3641. "createBy": {
  3642. "type": "integer"
  3643. },
  3644. "handle": {
  3645. "type": "string"
  3646. },
  3647. "id": {
  3648. "description": "编码",
  3649. "type": "integer"
  3650. },
  3651. "path": {
  3652. "type": "string"
  3653. },
  3654. "title": {
  3655. "type": "string"
  3656. },
  3657. "type": {
  3658. "type": "string"
  3659. },
  3660. "updateBy": {
  3661. "type": "integer"
  3662. }
  3663. }
  3664. },
  3665. "dto.SysConfigByKeyReq": {
  3666. "type": "object",
  3667. "properties": {
  3668. "configKey": {
  3669. "type": "string"
  3670. }
  3671. }
  3672. },
  3673. "dto.SysConfigControl": {
  3674. "type": "object",
  3675. "properties": {
  3676. "configKey": {
  3677. "type": "string"
  3678. },
  3679. "configName": {
  3680. "type": "string"
  3681. },
  3682. "configType": {
  3683. "type": "string"
  3684. },
  3685. "configValue": {
  3686. "type": "string"
  3687. },
  3688. "createBy": {
  3689. "type": "integer"
  3690. },
  3691. "id": {
  3692. "description": "编码",
  3693. "type": "integer"
  3694. },
  3695. "isFrontend": {
  3696. "type": "string"
  3697. },
  3698. "remark": {
  3699. "type": "string"
  3700. },
  3701. "updateBy": {
  3702. "type": "integer"
  3703. }
  3704. }
  3705. },
  3706. "dto.SysDictDataDeleteReq": {
  3707. "type": "object",
  3708. "properties": {
  3709. "ids": {
  3710. "type": "array",
  3711. "items": {
  3712. "type": "integer"
  3713. }
  3714. }
  3715. }
  3716. },
  3717. "dto.SysDictDataGetAllResp": {
  3718. "type": "object",
  3719. "properties": {
  3720. "cssClass": {
  3721. "type": "string"
  3722. },
  3723. "label": {
  3724. "type": "string"
  3725. },
  3726. "listClass": {
  3727. "type": "string"
  3728. },
  3729. "value": {
  3730. "type": "string"
  3731. }
  3732. }
  3733. },
  3734. "dto.SysDictDataInsertReq": {
  3735. "type": "object",
  3736. "properties": {
  3737. "createBy": {
  3738. "type": "integer"
  3739. },
  3740. "cssClass": {
  3741. "type": "string"
  3742. },
  3743. "default": {
  3744. "type": "string"
  3745. },
  3746. "dictLabel": {
  3747. "type": "string"
  3748. },
  3749. "dictSort": {
  3750. "type": "integer"
  3751. },
  3752. "dictType": {
  3753. "type": "string"
  3754. },
  3755. "dictValue": {
  3756. "type": "string"
  3757. },
  3758. "isDefault": {
  3759. "type": "string"
  3760. },
  3761. "listClass": {
  3762. "type": "string"
  3763. },
  3764. "remark": {
  3765. "type": "string"
  3766. },
  3767. "status": {
  3768. "type": "integer"
  3769. },
  3770. "updateBy": {
  3771. "type": "integer"
  3772. }
  3773. }
  3774. },
  3775. "dto.SysDictDataUpdateReq": {
  3776. "type": "object",
  3777. "properties": {
  3778. "createBy": {
  3779. "type": "integer"
  3780. },
  3781. "cssClass": {
  3782. "type": "string"
  3783. },
  3784. "default": {
  3785. "type": "string"
  3786. },
  3787. "dictLabel": {
  3788. "type": "string"
  3789. },
  3790. "dictSort": {
  3791. "type": "integer"
  3792. },
  3793. "dictType": {
  3794. "type": "string"
  3795. },
  3796. "dictValue": {
  3797. "type": "string"
  3798. },
  3799. "id": {
  3800. "type": "integer"
  3801. },
  3802. "isDefault": {
  3803. "type": "string"
  3804. },
  3805. "listClass": {
  3806. "type": "string"
  3807. },
  3808. "remark": {
  3809. "type": "string"
  3810. },
  3811. "status": {
  3812. "type": "integer"
  3813. },
  3814. "updateBy": {
  3815. "type": "integer"
  3816. }
  3817. }
  3818. },
  3819. "dto.SysDictTypeDeleteReq": {
  3820. "type": "object",
  3821. "properties": {
  3822. "createBy": {
  3823. "type": "integer"
  3824. },
  3825. "ids": {
  3826. "type": "array",
  3827. "items": {
  3828. "type": "integer"
  3829. }
  3830. },
  3831. "updateBy": {
  3832. "type": "integer"
  3833. }
  3834. }
  3835. },
  3836. "dto.SysDictTypeInsertReq": {
  3837. "type": "object",
  3838. "properties": {
  3839. "createBy": {
  3840. "type": "integer"
  3841. },
  3842. "dictName": {
  3843. "type": "string"
  3844. },
  3845. "dictType": {
  3846. "type": "string"
  3847. },
  3848. "id": {
  3849. "type": "integer"
  3850. },
  3851. "remark": {
  3852. "type": "string"
  3853. },
  3854. "status": {
  3855. "type": "integer"
  3856. },
  3857. "updateBy": {
  3858. "type": "integer"
  3859. }
  3860. }
  3861. },
  3862. "dto.SysDictTypeUpdateReq": {
  3863. "type": "object",
  3864. "properties": {
  3865. "createBy": {
  3866. "type": "integer"
  3867. },
  3868. "dictName": {
  3869. "type": "string"
  3870. },
  3871. "dictType": {
  3872. "type": "string"
  3873. },
  3874. "id": {
  3875. "type": "integer"
  3876. },
  3877. "remark": {
  3878. "type": "string"
  3879. },
  3880. "status": {
  3881. "type": "integer"
  3882. },
  3883. "updateBy": {
  3884. "type": "integer"
  3885. }
  3886. }
  3887. },
  3888. "dto.SysJobDeleteReq": {
  3889. "type": "object",
  3890. "properties": {
  3891. "ids": {
  3892. "type": "array",
  3893. "items": {
  3894. "type": "integer"
  3895. }
  3896. }
  3897. }
  3898. },
  3899. "dto.SysJobInsertReq": {
  3900. "type": "object",
  3901. "properties": {
  3902. "args": {
  3903. "type": "string"
  3904. },
  3905. "concurrent": {
  3906. "type": "integer"
  3907. },
  3908. "createBy": {
  3909. "type": "integer"
  3910. },
  3911. "cronExpression": {
  3912. "type": "string"
  3913. },
  3914. "invokeTarget": {
  3915. "type": "string"
  3916. },
  3917. "jobGroup": {
  3918. "type": "string"
  3919. },
  3920. "jobName": {
  3921. "type": "string"
  3922. },
  3923. "jobType": {
  3924. "type": "integer"
  3925. },
  3926. "misfirePolicy": {
  3927. "type": "integer"
  3928. },
  3929. "status": {
  3930. "type": "integer"
  3931. },
  3932. "updateBy": {
  3933. "type": "integer"
  3934. }
  3935. }
  3936. },
  3937. "dto.SysJobUpdateReq": {
  3938. "type": "object",
  3939. "properties": {
  3940. "args": {
  3941. "type": "string"
  3942. },
  3943. "concurrent": {
  3944. "type": "integer"
  3945. },
  3946. "createBy": {
  3947. "type": "integer"
  3948. },
  3949. "cronExpression": {
  3950. "type": "string"
  3951. },
  3952. "invokeTarget": {
  3953. "type": "string"
  3954. },
  3955. "jobGroup": {
  3956. "type": "string"
  3957. },
  3958. "jobId": {
  3959. "description": "编码",
  3960. "type": "integer"
  3961. },
  3962. "jobName": {
  3963. "type": "string"
  3964. },
  3965. "jobType": {
  3966. "type": "integer"
  3967. },
  3968. "misfirePolicy": {
  3969. "type": "integer"
  3970. },
  3971. "status": {
  3972. "type": "integer"
  3973. },
  3974. "updateBy": {
  3975. "type": "integer"
  3976. }
  3977. }
  3978. },
  3979. "dto.SysLoginLogDeleteReq": {
  3980. "type": "object",
  3981. "properties": {
  3982. "ids": {
  3983. "type": "array",
  3984. "items": {
  3985. "type": "integer"
  3986. }
  3987. }
  3988. }
  3989. },
  3990. "dto.SysMenuDeleteReq": {
  3991. "type": "object",
  3992. "properties": {
  3993. "createBy": {
  3994. "type": "integer"
  3995. },
  3996. "ids": {
  3997. "type": "array",
  3998. "items": {
  3999. "type": "integer"
  4000. }
  4001. },
  4002. "updateBy": {
  4003. "type": "integer"
  4004. }
  4005. }
  4006. },
  4007. "dto.SysMenuInsertReq": {
  4008. "type": "object",
  4009. "properties": {
  4010. "action": {
  4011. "description": "请求方式",
  4012. "type": "string"
  4013. },
  4014. "apis": {
  4015. "type": "array",
  4016. "items": {
  4017. "type": "integer"
  4018. }
  4019. },
  4020. "btnClass": {
  4021. "description": "按钮样式",
  4022. "type": "string"
  4023. },
  4024. "btnScript": {
  4025. "description": "按钮脚本",
  4026. "type": "string"
  4027. },
  4028. "component": {
  4029. "description": "Breadcrumb string `form:\"breadcrumb\" comment:\"是否面包屑\"` //是否面包屑",
  4030. "type": "string"
  4031. },
  4032. "createBy": {
  4033. "type": "integer"
  4034. },
  4035. "icon": {
  4036. "description": "图标",
  4037. "type": "string"
  4038. },
  4039. "isFrame": {
  4040. "description": "是否frame",
  4041. "type": "string"
  4042. },
  4043. "isHide": {
  4044. "description": "是否显示",
  4045. "type": "string"
  4046. },
  4047. "menuId": {
  4048. "description": "编码",
  4049. "type": "integer"
  4050. },
  4051. "menuName": {
  4052. "description": "显示名称",
  4053. "type": "string"
  4054. },
  4055. "menuType": {
  4056. "description": "菜单类型",
  4057. "type": "string"
  4058. },
  4059. "noCache": {
  4060. "description": "是否缓存",
  4061. "type": "string"
  4062. },
  4063. "parentId": {
  4064. "description": "上级菜单",
  4065. "type": "integer"
  4066. },
  4067. "path": {
  4068. "description": "菜单name",
  4069. "type": "string"
  4070. },
  4071. "paths": {
  4072. "description": "Path string `form:\"path\" comment:\"路径\"` //路径",
  4073. "type": "string"
  4074. },
  4075. "permission": {
  4076. "description": "权限编码",
  4077. "type": "string"
  4078. },
  4079. "sort": {
  4080. "description": "排序",
  4081. "type": "integer"
  4082. },
  4083. "sysApi": {
  4084. "type": "array",
  4085. "items": {
  4086. "$ref": "#/definitions/IotAdmin_app_system_models.SysApi"
  4087. }
  4088. },
  4089. "updateBy": {
  4090. "type": "integer"
  4091. }
  4092. }
  4093. },
  4094. "dto.SysMenuUpdateReq": {
  4095. "type": "object",
  4096. "properties": {
  4097. "action": {
  4098. "description": "请求方式",
  4099. "type": "string"
  4100. },
  4101. "apis": {
  4102. "type": "array",
  4103. "items": {
  4104. "type": "integer"
  4105. }
  4106. },
  4107. "btnClass": {
  4108. "description": "按钮样式",
  4109. "type": "string"
  4110. },
  4111. "btnScript": {
  4112. "description": "按钮脚本",
  4113. "type": "string"
  4114. },
  4115. "component": {
  4116. "description": "Breadcrumb string `form:\"breadcrumb\" comment:\"是否面包屑\"` //是否面包屑",
  4117. "type": "string"
  4118. },
  4119. "createBy": {
  4120. "type": "integer"
  4121. },
  4122. "icon": {
  4123. "description": "图标",
  4124. "type": "string"
  4125. },
  4126. "isFrame": {
  4127. "description": "是否frame",
  4128. "type": "string"
  4129. },
  4130. "isHide": {
  4131. "description": "是否显示",
  4132. "type": "string"
  4133. },
  4134. "menuId": {
  4135. "description": "编码",
  4136. "type": "integer"
  4137. },
  4138. "menuType": {
  4139. "description": "菜单类型",
  4140. "type": "string"
  4141. },
  4142. "noCache": {
  4143. "description": "是否缓存",
  4144. "type": "string"
  4145. },
  4146. "parentId": {
  4147. "description": "上级菜单",
  4148. "type": "integer"
  4149. },
  4150. "path": {
  4151. "description": "菜单Path",
  4152. "type": "string"
  4153. },
  4154. "paths": {
  4155. "description": "id路径",
  4156. "type": "string"
  4157. },
  4158. "permission": {
  4159. "description": "权限编码",
  4160. "type": "string"
  4161. },
  4162. "sort": {
  4163. "description": "排序",
  4164. "type": "integer"
  4165. },
  4166. "sysApi": {
  4167. "type": "array",
  4168. "items": {
  4169. "$ref": "#/definitions/IotAdmin_app_system_models.SysApi"
  4170. }
  4171. },
  4172. "title": {
  4173. "description": "显示名称",
  4174. "type": "string"
  4175. },
  4176. "updateBy": {
  4177. "type": "integer"
  4178. }
  4179. }
  4180. },
  4181. "dto.SysOperaLogDeleteReq": {
  4182. "type": "object",
  4183. "properties": {
  4184. "ids": {
  4185. "type": "array",
  4186. "items": {
  4187. "type": "integer"
  4188. }
  4189. }
  4190. }
  4191. },
  4192. "dto.SysOrgDeleteReq": {
  4193. "type": "object",
  4194. "properties": {
  4195. "ids": {
  4196. "type": "array",
  4197. "items": {
  4198. "type": "integer"
  4199. }
  4200. }
  4201. }
  4202. },
  4203. "dto.SysOrgInsertReq": {
  4204. "type": "object",
  4205. "properties": {
  4206. "createBy": {
  4207. "type": "integer"
  4208. },
  4209. "email": {
  4210. "description": "邮箱",
  4211. "type": "string"
  4212. },
  4213. "leader": {
  4214. "description": "负责人",
  4215. "type": "string"
  4216. },
  4217. "orgId": {
  4218. "description": "编码",
  4219. "type": "integer"
  4220. },
  4221. "orgName": {
  4222. "description": "组织机构名称",
  4223. "type": "string"
  4224. },
  4225. "orgPath": {
  4226. "description": "路径",
  4227. "type": "string"
  4228. },
  4229. "parentId": {
  4230. "description": "上级组织机构",
  4231. "type": "integer"
  4232. },
  4233. "phone": {
  4234. "description": "手机",
  4235. "type": "string"
  4236. },
  4237. "sort": {
  4238. "description": "排序",
  4239. "type": "integer"
  4240. },
  4241. "status": {
  4242. "description": "状态",
  4243. "type": "integer"
  4244. },
  4245. "updateBy": {
  4246. "type": "integer"
  4247. }
  4248. }
  4249. },
  4250. "dto.SysOrgUpdateReq": {
  4251. "type": "object",
  4252. "properties": {
  4253. "createBy": {
  4254. "type": "integer"
  4255. },
  4256. "email": {
  4257. "description": "邮箱",
  4258. "type": "string"
  4259. },
  4260. "leader": {
  4261. "description": "负责人",
  4262. "type": "string"
  4263. },
  4264. "orgId": {
  4265. "description": "编码",
  4266. "type": "integer"
  4267. },
  4268. "orgName": {
  4269. "description": "组织机构名称",
  4270. "type": "string"
  4271. },
  4272. "orgPath": {
  4273. "description": "路径",
  4274. "type": "string"
  4275. },
  4276. "parentId": {
  4277. "description": "上级组织机构",
  4278. "type": "integer"
  4279. },
  4280. "phone": {
  4281. "description": "手机",
  4282. "type": "string"
  4283. },
  4284. "sort": {
  4285. "description": "排序",
  4286. "type": "integer"
  4287. },
  4288. "status": {
  4289. "description": "状态",
  4290. "type": "integer"
  4291. },
  4292. "updateBy": {
  4293. "type": "integer"
  4294. }
  4295. }
  4296. },
  4297. "dto.SysPostDeleteReq": {
  4298. "type": "object",
  4299. "properties": {
  4300. "createBy": {
  4301. "type": "integer"
  4302. },
  4303. "ids": {
  4304. "type": "array",
  4305. "items": {
  4306. "type": "integer"
  4307. }
  4308. },
  4309. "updateBy": {
  4310. "type": "integer"
  4311. }
  4312. }
  4313. },
  4314. "dto.SysPostInsertReq": {
  4315. "type": "object",
  4316. "properties": {
  4317. "createBy": {
  4318. "type": "integer"
  4319. },
  4320. "postCode": {
  4321. "type": "string"
  4322. },
  4323. "postId": {
  4324. "type": "integer"
  4325. },
  4326. "postName": {
  4327. "type": "string"
  4328. },
  4329. "remark": {
  4330. "type": "string"
  4331. },
  4332. "sort": {
  4333. "type": "integer"
  4334. },
  4335. "status": {
  4336. "type": "integer"
  4337. },
  4338. "updateBy": {
  4339. "type": "integer"
  4340. }
  4341. }
  4342. },
  4343. "dto.SysPostUpdateReq": {
  4344. "type": "object",
  4345. "properties": {
  4346. "createBy": {
  4347. "type": "integer"
  4348. },
  4349. "postCode": {
  4350. "type": "string"
  4351. },
  4352. "postId": {
  4353. "type": "integer"
  4354. },
  4355. "postName": {
  4356. "type": "string"
  4357. },
  4358. "remark": {
  4359. "type": "string"
  4360. },
  4361. "sort": {
  4362. "type": "integer"
  4363. },
  4364. "status": {
  4365. "type": "integer"
  4366. },
  4367. "updateBy": {
  4368. "type": "integer"
  4369. }
  4370. }
  4371. },
  4372. "dto.SysRoleDeleteReq": {
  4373. "type": "object",
  4374. "properties": {
  4375. "ids": {
  4376. "type": "array",
  4377. "items": {
  4378. "type": "integer"
  4379. }
  4380. }
  4381. }
  4382. },
  4383. "dto.SysRoleInsertReq": {
  4384. "type": "object",
  4385. "properties": {
  4386. "admin": {
  4387. "type": "boolean"
  4388. },
  4389. "createBy": {
  4390. "type": "integer"
  4391. },
  4392. "dataScope": {
  4393. "type": "string"
  4394. },
  4395. "flag": {
  4396. "description": "标记",
  4397. "type": "string"
  4398. },
  4399. "menuIds": {
  4400. "type": "array",
  4401. "items": {
  4402. "type": "integer"
  4403. }
  4404. },
  4405. "menus": {
  4406. "type": "array",
  4407. "items": {
  4408. "$ref": "#/definitions/models.SysMenu"
  4409. }
  4410. },
  4411. "orgIds": {
  4412. "type": "array",
  4413. "items": {
  4414. "type": "integer"
  4415. }
  4416. },
  4417. "orgs": {
  4418. "type": "array",
  4419. "items": {
  4420. "$ref": "#/definitions/IotAdmin_app_system_models.SysOrg"
  4421. }
  4422. },
  4423. "remark": {
  4424. "description": "备注",
  4425. "type": "string"
  4426. },
  4427. "roleId": {
  4428. "description": "角色编码",
  4429. "type": "integer"
  4430. },
  4431. "roleKey": {
  4432. "description": "角色代码",
  4433. "type": "string"
  4434. },
  4435. "roleName": {
  4436. "description": "角色名称",
  4437. "type": "string"
  4438. },
  4439. "roleSort": {
  4440. "description": "角色排序",
  4441. "type": "integer"
  4442. },
  4443. "status": {
  4444. "description": "状态 1禁用 2正常",
  4445. "type": "string"
  4446. },
  4447. "updateBy": {
  4448. "type": "integer"
  4449. }
  4450. }
  4451. },
  4452. "dto.SysRoleUpdateReq": {
  4453. "type": "object",
  4454. "properties": {
  4455. "admin": {
  4456. "type": "boolean"
  4457. },
  4458. "createBy": {
  4459. "type": "integer"
  4460. },
  4461. "dataScope": {
  4462. "type": "string"
  4463. },
  4464. "flag": {
  4465. "description": "标记",
  4466. "type": "string"
  4467. },
  4468. "menuIds": {
  4469. "type": "array",
  4470. "items": {
  4471. "type": "integer"
  4472. }
  4473. },
  4474. "menus": {
  4475. "type": "array",
  4476. "items": {
  4477. "$ref": "#/definitions/models.SysMenu"
  4478. }
  4479. },
  4480. "orgIds": {
  4481. "type": "array",
  4482. "items": {
  4483. "type": "integer"
  4484. }
  4485. },
  4486. "orgs": {
  4487. "type": "array",
  4488. "items": {
  4489. "$ref": "#/definitions/IotAdmin_app_system_models.SysOrg"
  4490. }
  4491. },
  4492. "remark": {
  4493. "description": "备注",
  4494. "type": "string"
  4495. },
  4496. "roleId": {
  4497. "description": "角色编码",
  4498. "type": "integer"
  4499. },
  4500. "roleKey": {
  4501. "description": "角色代码",
  4502. "type": "string"
  4503. },
  4504. "roleName": {
  4505. "description": "角色名称",
  4506. "type": "string"
  4507. },
  4508. "roleSort": {
  4509. "description": "角色排序",
  4510. "type": "integer"
  4511. },
  4512. "status": {
  4513. "description": "状态",
  4514. "type": "string"
  4515. },
  4516. "updateBy": {
  4517. "type": "integer"
  4518. }
  4519. }
  4520. },
  4521. "dto.SysUserInsertReq": {
  4522. "type": "object",
  4523. "properties": {
  4524. "avatar": {
  4525. "type": "string"
  4526. },
  4527. "createBy": {
  4528. "type": "integer"
  4529. },
  4530. "email": {
  4531. "type": "string"
  4532. },
  4533. "nickName": {
  4534. "type": "string"
  4535. },
  4536. "orgId": {
  4537. "type": "integer"
  4538. },
  4539. "password": {
  4540. "type": "string"
  4541. },
  4542. "phone": {
  4543. "type": "string"
  4544. },
  4545. "postId": {
  4546. "type": "integer"
  4547. },
  4548. "remark": {
  4549. "type": "string"
  4550. },
  4551. "roleId": {
  4552. "type": "integer"
  4553. },
  4554. "sex": {
  4555. "type": "string"
  4556. },
  4557. "status": {
  4558. "type": "string",
  4559. "default": "1"
  4560. },
  4561. "updateBy": {
  4562. "type": "integer"
  4563. },
  4564. "userId": {
  4565. "description": "用户ID",
  4566. "type": "integer"
  4567. },
  4568. "userName": {
  4569. "type": "string"
  4570. }
  4571. }
  4572. },
  4573. "dto.SysUserUpdateReq": {
  4574. "type": "object",
  4575. "properties": {
  4576. "avatar": {
  4577. "type": "string"
  4578. },
  4579. "createBy": {
  4580. "type": "integer"
  4581. },
  4582. "email": {
  4583. "type": "string"
  4584. },
  4585. "nickName": {
  4586. "type": "string"
  4587. },
  4588. "orgId": {
  4589. "type": "integer"
  4590. },
  4591. "phone": {
  4592. "type": "string"
  4593. },
  4594. "postId": {
  4595. "type": "integer"
  4596. },
  4597. "remark": {
  4598. "type": "string"
  4599. },
  4600. "roleId": {
  4601. "type": "integer"
  4602. },
  4603. "sex": {
  4604. "type": "string"
  4605. },
  4606. "status": {
  4607. "type": "string",
  4608. "default": "1"
  4609. },
  4610. "updateBy": {
  4611. "type": "integer"
  4612. },
  4613. "userId": {
  4614. "description": "用户ID",
  4615. "type": "integer"
  4616. },
  4617. "username": {
  4618. "type": "string"
  4619. }
  4620. }
  4621. },
  4622. "dto.UpdateStatusReq": {
  4623. "type": "object",
  4624. "properties": {
  4625. "createBy": {
  4626. "type": "integer"
  4627. },
  4628. "roleId": {
  4629. "description": "角色编码",
  4630. "type": "integer"
  4631. },
  4632. "status": {
  4633. "description": "状态",
  4634. "type": "string"
  4635. },
  4636. "updateBy": {
  4637. "type": "integer"
  4638. }
  4639. }
  4640. },
  4641. "dto.UpdateSysUserStatusReq": {
  4642. "type": "object",
  4643. "properties": {
  4644. "createBy": {
  4645. "type": "integer"
  4646. },
  4647. "status": {
  4648. "type": "string"
  4649. },
  4650. "updateBy": {
  4651. "type": "integer"
  4652. },
  4653. "userId": {
  4654. "description": "用户ID",
  4655. "type": "integer"
  4656. }
  4657. }
  4658. },
  4659. "handler.Login": {
  4660. "type": "object",
  4661. "required": [
  4662. "code",
  4663. "password",
  4664. "username",
  4665. "uuid"
  4666. ],
  4667. "properties": {
  4668. "code": {
  4669. "type": "string"
  4670. },
  4671. "password": {
  4672. "type": "string"
  4673. },
  4674. "username": {
  4675. "type": "string"
  4676. },
  4677. "uuid": {
  4678. "type": "string"
  4679. }
  4680. }
  4681. },
  4682. "models.SysConfig": {
  4683. "type": "object",
  4684. "properties": {
  4685. "configKey": {
  4686. "type": "string"
  4687. },
  4688. "configName": {
  4689. "type": "string"
  4690. },
  4691. "configType": {
  4692. "type": "string"
  4693. },
  4694. "configValue": {
  4695. "type": "string"
  4696. },
  4697. "createBy": {
  4698. "type": "integer"
  4699. },
  4700. "createdAt": {
  4701. "type": "string"
  4702. },
  4703. "id": {
  4704. "type": "integer"
  4705. },
  4706. "isFrontend": {
  4707. "type": "string"
  4708. },
  4709. "remark": {
  4710. "type": "string"
  4711. },
  4712. "updateBy": {
  4713. "type": "integer"
  4714. },
  4715. "updatedAt": {
  4716. "type": "string"
  4717. }
  4718. }
  4719. },
  4720. "models.SysJob": {
  4721. "type": "object",
  4722. "properties": {
  4723. "args": {
  4724. "type": "string"
  4725. },
  4726. "concurrent": {
  4727. "type": "integer"
  4728. },
  4729. "createBy": {
  4730. "type": "integer"
  4731. },
  4732. "createdAt": {
  4733. "type": "string"
  4734. },
  4735. "cronExpression": {
  4736. "type": "string"
  4737. },
  4738. "entryId": {
  4739. "type": "integer"
  4740. },
  4741. "invokeTarget": {
  4742. "type": "string"
  4743. },
  4744. "jobGroup": {
  4745. "type": "string"
  4746. },
  4747. "jobId": {
  4748. "type": "integer"
  4749. },
  4750. "jobName": {
  4751. "type": "string"
  4752. },
  4753. "jobType": {
  4754. "type": "integer"
  4755. },
  4756. "misfirePolicy": {
  4757. "type": "integer"
  4758. },
  4759. "status": {
  4760. "type": "integer"
  4761. },
  4762. "updateBy": {
  4763. "type": "integer"
  4764. },
  4765. "updatedAt": {
  4766. "type": "string"
  4767. }
  4768. }
  4769. },
  4770. "models.SysMenu": {
  4771. "type": "object",
  4772. "properties": {
  4773. "action": {
  4774. "type": "string"
  4775. },
  4776. "apis": {
  4777. "type": "array",
  4778. "items": {
  4779. "type": "integer"
  4780. }
  4781. },
  4782. "btnClass": {
  4783. "type": "string"
  4784. },
  4785. "btnScript": {
  4786. "type": "string"
  4787. },
  4788. "children": {
  4789. "type": "array",
  4790. "items": {
  4791. "$ref": "#/definitions/models.SysMenu"
  4792. }
  4793. },
  4794. "component": {
  4795. "description": "Breadcrumb string `json:\"breadcrumb\" gorm:\"size:255;\"`",
  4796. "type": "string"
  4797. },
  4798. "createBy": {
  4799. "type": "integer"
  4800. },
  4801. "createdAt": {
  4802. "type": "string"
  4803. },
  4804. "dataScope": {
  4805. "type": "string"
  4806. },
  4807. "icon": {
  4808. "type": "string"
  4809. },
  4810. "isFrame": {
  4811. "type": "boolean"
  4812. },
  4813. "isHide": {
  4814. "type": "boolean"
  4815. },
  4816. "is_select": {
  4817. "type": "boolean"
  4818. },
  4819. "menuId": {
  4820. "type": "integer"
  4821. },
  4822. "menuName": {
  4823. "type": "string"
  4824. },
  4825. "menuType": {
  4826. "type": "string"
  4827. },
  4828. "noCache": {
  4829. "type": "boolean"
  4830. },
  4831. "params": {
  4832. "type": "string"
  4833. },
  4834. "parentId": {
  4835. "type": "integer"
  4836. },
  4837. "path": {
  4838. "type": "string"
  4839. },
  4840. "paths": {
  4841. "type": "string"
  4842. },
  4843. "permission": {
  4844. "type": "string"
  4845. },
  4846. "roleId": {
  4847. "type": "integer"
  4848. },
  4849. "sort": {
  4850. "type": "integer"
  4851. },
  4852. "sysApi": {
  4853. "type": "array",
  4854. "items": {
  4855. "$ref": "#/definitions/IotAdmin_app_system_models.SysApi"
  4856. }
  4857. },
  4858. "updateBy": {
  4859. "type": "integer"
  4860. },
  4861. "updatedAt": {
  4862. "type": "string"
  4863. }
  4864. }
  4865. },
  4866. "response.Page": {
  4867. "type": "object",
  4868. "properties": {
  4869. "pageIndex": {
  4870. "type": "integer"
  4871. },
  4872. "pageSize": {
  4873. "type": "integer"
  4874. },
  4875. "total": {
  4876. "type": "integer"
  4877. }
  4878. }
  4879. },
  4880. "response.Response": {
  4881. "type": "object",
  4882. "properties": {
  4883. "code": {
  4884. "type": "integer"
  4885. },
  4886. "msg": {
  4887. "type": "string"
  4888. },
  4889. "requestId": {
  4890. "type": "string"
  4891. },
  4892. "status": {
  4893. "type": "string"
  4894. }
  4895. }
  4896. },
  4897. "tools.Params": {
  4898. "type": "object",
  4899. "properties": {
  4900. "treeCode": {
  4901. "type": "string"
  4902. },
  4903. "treeName": {
  4904. "type": "string"
  4905. },
  4906. "treeParentCode": {
  4907. "type": "string"
  4908. }
  4909. }
  4910. },
  4911. "tools.SysColumns": {
  4912. "type": "object",
  4913. "properties": {
  4914. "columnComment": {
  4915. "type": "string"
  4916. },
  4917. "columnId": {
  4918. "type": "integer"
  4919. },
  4920. "columnName": {
  4921. "type": "string"
  4922. },
  4923. "columnType": {
  4924. "type": "string"
  4925. },
  4926. "createBy": {
  4927. "type": "integer"
  4928. },
  4929. "createdAt": {
  4930. "type": "string"
  4931. },
  4932. "dictType": {
  4933. "type": "string"
  4934. },
  4935. "fkCol": {
  4936. "type": "array",
  4937. "items": {
  4938. "$ref": "#/definitions/tools.SysColumns"
  4939. }
  4940. },
  4941. "fkLabelId": {
  4942. "type": "string"
  4943. },
  4944. "fkLabelName": {
  4945. "type": "string"
  4946. },
  4947. "fkTableName": {
  4948. "type": "string"
  4949. },
  4950. "fkTableNameBusiness": {
  4951. "type": "string"
  4952. },
  4953. "fkTableNameClass": {
  4954. "type": "string"
  4955. },
  4956. "fkTableNamePackage": {
  4957. "type": "string"
  4958. },
  4959. "goField": {
  4960. "type": "string"
  4961. },
  4962. "goType": {
  4963. "type": "string"
  4964. },
  4965. "htmlType": {
  4966. "type": "string"
  4967. },
  4968. "isIncrement": {
  4969. "type": "string"
  4970. },
  4971. "isInsert": {
  4972. "type": "string"
  4973. },
  4974. "isList": {
  4975. "type": "string"
  4976. },
  4977. "isPk": {
  4978. "type": "string"
  4979. },
  4980. "isQuery": {
  4981. "type": "string"
  4982. },
  4983. "isRequired": {
  4984. "type": "string"
  4985. },
  4986. "isSort": {
  4987. "type": "string"
  4988. },
  4989. "jsonField": {
  4990. "type": "string"
  4991. },
  4992. "pk": {
  4993. "type": "boolean"
  4994. },
  4995. "queryType": {
  4996. "type": "string"
  4997. },
  4998. "remark": {
  4999. "type": "string"
  5000. },
  5001. "required": {
  5002. "type": "boolean"
  5003. },
  5004. "sort": {
  5005. "type": "integer"
  5006. },
  5007. "tableId": {
  5008. "type": "integer"
  5009. },
  5010. "updateBy": {
  5011. "type": "integer"
  5012. },
  5013. "updatedAt": {
  5014. "type": "string"
  5015. }
  5016. }
  5017. },
  5018. "tools.SysTables": {
  5019. "type": "object",
  5020. "properties": {
  5021. "businessName": {
  5022. "type": "string"
  5023. },
  5024. "className": {
  5025. "description": "类名",
  5026. "type": "string"
  5027. },
  5028. "columns": {
  5029. "type": "array",
  5030. "items": {
  5031. "$ref": "#/definitions/tools.SysColumns"
  5032. }
  5033. },
  5034. "createBy": {
  5035. "type": "integer"
  5036. },
  5037. "createdAt": {
  5038. "type": "string"
  5039. },
  5040. "crud": {
  5041. "type": "boolean"
  5042. },
  5043. "dataScope": {
  5044. "type": "string"
  5045. },
  5046. "functionAuthor": {
  5047. "description": "功能作者",
  5048. "type": "string"
  5049. },
  5050. "functionName": {
  5051. "description": "功能名称",
  5052. "type": "string"
  5053. },
  5054. "isActions": {
  5055. "type": "integer"
  5056. },
  5057. "isAuth": {
  5058. "type": "integer"
  5059. },
  5060. "isDataScope": {
  5061. "type": "integer"
  5062. },
  5063. "moduleFrontName": {
  5064. "description": "前端文件名",
  5065. "type": "string"
  5066. },
  5067. "moduleName": {
  5068. "description": "go文件名",
  5069. "type": "string"
  5070. },
  5071. "options": {
  5072. "type": "string"
  5073. },
  5074. "packageName": {
  5075. "description": "包名",
  5076. "type": "string"
  5077. },
  5078. "params": {
  5079. "$ref": "#/definitions/tools.Params"
  5080. },
  5081. "pkColumn": {
  5082. "type": "string"
  5083. },
  5084. "pkGoField": {
  5085. "type": "string"
  5086. },
  5087. "pkJsonField": {
  5088. "type": "string"
  5089. },
  5090. "remark": {
  5091. "type": "string"
  5092. },
  5093. "tableComment": {
  5094. "description": "表备注",
  5095. "type": "string"
  5096. },
  5097. "tableId": {
  5098. "description": "表编码",
  5099. "type": "integer"
  5100. },
  5101. "tableName": {
  5102. "description": "表名称",
  5103. "type": "string"
  5104. },
  5105. "tplCategory": {
  5106. "type": "string"
  5107. },
  5108. "tree": {
  5109. "type": "boolean"
  5110. },
  5111. "treeCode": {
  5112. "type": "string"
  5113. },
  5114. "treeName": {
  5115. "type": "string"
  5116. },
  5117. "treeParentCode": {
  5118. "type": "string"
  5119. },
  5120. "updateBy": {
  5121. "type": "integer"
  5122. },
  5123. "updatedAt": {
  5124. "type": "string"
  5125. }
  5126. }
  5127. }
  5128. }
  5129. }