swagger.json 237 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "使用gin+vue进行极速开发的全栈开发基础平台",
  5. "title": "Gin-Vue-Admin Swagger API接口文档",
  6. "contact": {},
  7. "version": "v2.6.3"
  8. },
  9. "paths": {
  10. "/api/createApi": {
  11. "post": {
  12. "security": [
  13. {
  14. "ApiKeyAuth": []
  15. }
  16. ],
  17. "consumes": [
  18. "application/json"
  19. ],
  20. "produces": [
  21. "application/json"
  22. ],
  23. "tags": [
  24. "SysApi"
  25. ],
  26. "summary": "创建基础api",
  27. "parameters": [
  28. {
  29. "description": "api路径, api中文描述, api组, 方法",
  30. "name": "data",
  31. "in": "body",
  32. "required": true,
  33. "schema": {
  34. "$ref": "#/definitions/system.SysApi"
  35. }
  36. }
  37. ],
  38. "responses": {
  39. "200": {
  40. "description": "创建基础api",
  41. "schema": {
  42. "allOf": [
  43. {
  44. "$ref": "#/definitions/response.Response"
  45. },
  46. {
  47. "type": "object",
  48. "properties": {
  49. "msg": {
  50. "type": "string"
  51. }
  52. }
  53. }
  54. ]
  55. }
  56. }
  57. }
  58. }
  59. },
  60. "/api/deleteApi": {
  61. "post": {
  62. "security": [
  63. {
  64. "ApiKeyAuth": []
  65. }
  66. ],
  67. "consumes": [
  68. "application/json"
  69. ],
  70. "produces": [
  71. "application/json"
  72. ],
  73. "tags": [
  74. "SysApi"
  75. ],
  76. "summary": "删除api",
  77. "parameters": [
  78. {
  79. "description": "ID",
  80. "name": "data",
  81. "in": "body",
  82. "required": true,
  83. "schema": {
  84. "$ref": "#/definitions/system.SysApi"
  85. }
  86. }
  87. ],
  88. "responses": {
  89. "200": {
  90. "description": "删除api",
  91. "schema": {
  92. "allOf": [
  93. {
  94. "$ref": "#/definitions/response.Response"
  95. },
  96. {
  97. "type": "object",
  98. "properties": {
  99. "msg": {
  100. "type": "string"
  101. }
  102. }
  103. }
  104. ]
  105. }
  106. }
  107. }
  108. }
  109. },
  110. "/api/deleteApisByIds": {
  111. "delete": {
  112. "security": [
  113. {
  114. "ApiKeyAuth": []
  115. }
  116. ],
  117. "consumes": [
  118. "application/json"
  119. ],
  120. "produces": [
  121. "application/json"
  122. ],
  123. "tags": [
  124. "SysApi"
  125. ],
  126. "summary": "删除选中Api",
  127. "parameters": [
  128. {
  129. "description": "ID",
  130. "name": "data",
  131. "in": "body",
  132. "required": true,
  133. "schema": {
  134. "$ref": "#/definitions/request.IdsReq"
  135. }
  136. }
  137. ],
  138. "responses": {
  139. "200": {
  140. "description": "删除选中Api",
  141. "schema": {
  142. "allOf": [
  143. {
  144. "$ref": "#/definitions/response.Response"
  145. },
  146. {
  147. "type": "object",
  148. "properties": {
  149. "msg": {
  150. "type": "string"
  151. }
  152. }
  153. }
  154. ]
  155. }
  156. }
  157. }
  158. }
  159. },
  160. "/api/freshCasbin": {
  161. "get": {
  162. "consumes": [
  163. "application/json"
  164. ],
  165. "produces": [
  166. "application/json"
  167. ],
  168. "tags": [
  169. "SysApi"
  170. ],
  171. "summary": "刷新casbin缓存",
  172. "responses": {
  173. "200": {
  174. "description": "刷新成功",
  175. "schema": {
  176. "allOf": [
  177. {
  178. "$ref": "#/definitions/response.Response"
  179. },
  180. {
  181. "type": "object",
  182. "properties": {
  183. "msg": {
  184. "type": "string"
  185. }
  186. }
  187. }
  188. ]
  189. }
  190. }
  191. }
  192. }
  193. },
  194. "/api/getAllApis": {
  195. "post": {
  196. "security": [
  197. {
  198. "ApiKeyAuth": []
  199. }
  200. ],
  201. "consumes": [
  202. "application/json"
  203. ],
  204. "produces": [
  205. "application/json"
  206. ],
  207. "tags": [
  208. "SysApi"
  209. ],
  210. "summary": "获取所有的Api 不分页",
  211. "responses": {
  212. "200": {
  213. "description": "获取所有的Api 不分页,返回包括api列表",
  214. "schema": {
  215. "allOf": [
  216. {
  217. "$ref": "#/definitions/response.Response"
  218. },
  219. {
  220. "type": "object",
  221. "properties": {
  222. "data": {
  223. "$ref": "#/definitions/response.SysAPIListResponse"
  224. },
  225. "msg": {
  226. "type": "string"
  227. }
  228. }
  229. }
  230. ]
  231. }
  232. }
  233. }
  234. }
  235. },
  236. "/api/getApiById": {
  237. "post": {
  238. "security": [
  239. {
  240. "ApiKeyAuth": []
  241. }
  242. ],
  243. "consumes": [
  244. "application/json"
  245. ],
  246. "produces": [
  247. "application/json"
  248. ],
  249. "tags": [
  250. "SysApi"
  251. ],
  252. "summary": "根据id获取api",
  253. "parameters": [
  254. {
  255. "description": "根据id获取api",
  256. "name": "data",
  257. "in": "body",
  258. "required": true,
  259. "schema": {
  260. "$ref": "#/definitions/request.GetById"
  261. }
  262. }
  263. ],
  264. "responses": {
  265. "200": {
  266. "description": "根据id获取api,返回包括api详情",
  267. "schema": {
  268. "allOf": [
  269. {
  270. "$ref": "#/definitions/response.Response"
  271. },
  272. {
  273. "type": "object",
  274. "properties": {
  275. "data": {
  276. "$ref": "#/definitions/response.SysAPIResponse"
  277. }
  278. }
  279. }
  280. ]
  281. }
  282. }
  283. }
  284. }
  285. },
  286. "/api/getApiList": {
  287. "post": {
  288. "security": [
  289. {
  290. "ApiKeyAuth": []
  291. }
  292. ],
  293. "consumes": [
  294. "application/json"
  295. ],
  296. "produces": [
  297. "application/json"
  298. ],
  299. "tags": [
  300. "SysApi"
  301. ],
  302. "summary": "分页获取API列表",
  303. "parameters": [
  304. {
  305. "description": "分页获取API列表",
  306. "name": "data",
  307. "in": "body",
  308. "required": true,
  309. "schema": {
  310. "$ref": "#/definitions/request.SearchApiParams"
  311. }
  312. }
  313. ],
  314. "responses": {
  315. "200": {
  316. "description": "分页获取API列表,返回包括列表,总数,页码,每页数量",
  317. "schema": {
  318. "allOf": [
  319. {
  320. "$ref": "#/definitions/response.Response"
  321. },
  322. {
  323. "type": "object",
  324. "properties": {
  325. "data": {
  326. "$ref": "#/definitions/response.PageResult"
  327. },
  328. "msg": {
  329. "type": "string"
  330. }
  331. }
  332. }
  333. ]
  334. }
  335. }
  336. }
  337. }
  338. },
  339. "/api/updateApi": {
  340. "post": {
  341. "security": [
  342. {
  343. "ApiKeyAuth": []
  344. }
  345. ],
  346. "consumes": [
  347. "application/json"
  348. ],
  349. "produces": [
  350. "application/json"
  351. ],
  352. "tags": [
  353. "SysApi"
  354. ],
  355. "summary": "修改基础api",
  356. "parameters": [
  357. {
  358. "description": "api路径, api中文描述, api组, 方法",
  359. "name": "data",
  360. "in": "body",
  361. "required": true,
  362. "schema": {
  363. "$ref": "#/definitions/system.SysApi"
  364. }
  365. }
  366. ],
  367. "responses": {
  368. "200": {
  369. "description": "修改基础api",
  370. "schema": {
  371. "allOf": [
  372. {
  373. "$ref": "#/definitions/response.Response"
  374. },
  375. {
  376. "type": "object",
  377. "properties": {
  378. "msg": {
  379. "type": "string"
  380. }
  381. }
  382. }
  383. ]
  384. }
  385. }
  386. }
  387. }
  388. },
  389. "/authority/copyAuthority": {
  390. "post": {
  391. "security": [
  392. {
  393. "ApiKeyAuth": []
  394. }
  395. ],
  396. "consumes": [
  397. "application/json"
  398. ],
  399. "produces": [
  400. "application/json"
  401. ],
  402. "tags": [
  403. "Authority"
  404. ],
  405. "summary": "拷贝角色",
  406. "parameters": [
  407. {
  408. "description": "旧角色id, 新权限id, 新权限名, 新父角色id",
  409. "name": "data",
  410. "in": "body",
  411. "required": true,
  412. "schema": {
  413. "$ref": "#/definitions/response.SysAuthorityCopyResponse"
  414. }
  415. }
  416. ],
  417. "responses": {
  418. "200": {
  419. "description": "拷贝角色,返回包括系统角色详情",
  420. "schema": {
  421. "allOf": [
  422. {
  423. "$ref": "#/definitions/response.Response"
  424. },
  425. {
  426. "type": "object",
  427. "properties": {
  428. "data": {
  429. "$ref": "#/definitions/response.SysAuthorityResponse"
  430. },
  431. "msg": {
  432. "type": "string"
  433. }
  434. }
  435. }
  436. ]
  437. }
  438. }
  439. }
  440. }
  441. },
  442. "/authority/createAuthority": {
  443. "post": {
  444. "security": [
  445. {
  446. "ApiKeyAuth": []
  447. }
  448. ],
  449. "consumes": [
  450. "application/json"
  451. ],
  452. "produces": [
  453. "application/json"
  454. ],
  455. "tags": [
  456. "Authority"
  457. ],
  458. "summary": "创建角色",
  459. "parameters": [
  460. {
  461. "description": "权限id, 权限名, 父角色id",
  462. "name": "data",
  463. "in": "body",
  464. "required": true,
  465. "schema": {
  466. "$ref": "#/definitions/system.SysAuthority"
  467. }
  468. }
  469. ],
  470. "responses": {
  471. "200": {
  472. "description": "创建角色,返回包括系统角色详情",
  473. "schema": {
  474. "allOf": [
  475. {
  476. "$ref": "#/definitions/response.Response"
  477. },
  478. {
  479. "type": "object",
  480. "properties": {
  481. "data": {
  482. "$ref": "#/definitions/response.SysAuthorityResponse"
  483. },
  484. "msg": {
  485. "type": "string"
  486. }
  487. }
  488. }
  489. ]
  490. }
  491. }
  492. }
  493. }
  494. },
  495. "/authority/deleteAuthority": {
  496. "post": {
  497. "security": [
  498. {
  499. "ApiKeyAuth": []
  500. }
  501. ],
  502. "consumes": [
  503. "application/json"
  504. ],
  505. "produces": [
  506. "application/json"
  507. ],
  508. "tags": [
  509. "Authority"
  510. ],
  511. "summary": "删除角色",
  512. "parameters": [
  513. {
  514. "description": "删除角色",
  515. "name": "data",
  516. "in": "body",
  517. "required": true,
  518. "schema": {
  519. "$ref": "#/definitions/system.SysAuthority"
  520. }
  521. }
  522. ],
  523. "responses": {
  524. "200": {
  525. "description": "删除角色",
  526. "schema": {
  527. "allOf": [
  528. {
  529. "$ref": "#/definitions/response.Response"
  530. },
  531. {
  532. "type": "object",
  533. "properties": {
  534. "msg": {
  535. "type": "string"
  536. }
  537. }
  538. }
  539. ]
  540. }
  541. }
  542. }
  543. }
  544. },
  545. "/authority/getAuthorityList": {
  546. "post": {
  547. "security": [
  548. {
  549. "ApiKeyAuth": []
  550. }
  551. ],
  552. "consumes": [
  553. "application/json"
  554. ],
  555. "produces": [
  556. "application/json"
  557. ],
  558. "tags": [
  559. "Authority"
  560. ],
  561. "summary": "分页获取角色列表",
  562. "parameters": [
  563. {
  564. "description": "页码, 每页大小",
  565. "name": "data",
  566. "in": "body",
  567. "required": true,
  568. "schema": {
  569. "$ref": "#/definitions/request.PageInfo"
  570. }
  571. }
  572. ],
  573. "responses": {
  574. "200": {
  575. "description": "分页获取角色列表,返回包括列表,总数,页码,每页数量",
  576. "schema": {
  577. "allOf": [
  578. {
  579. "$ref": "#/definitions/response.Response"
  580. },
  581. {
  582. "type": "object",
  583. "properties": {
  584. "data": {
  585. "$ref": "#/definitions/response.PageResult"
  586. },
  587. "msg": {
  588. "type": "string"
  589. }
  590. }
  591. }
  592. ]
  593. }
  594. }
  595. }
  596. }
  597. },
  598. "/authority/setDataAuthority": {
  599. "post": {
  600. "security": [
  601. {
  602. "ApiKeyAuth": []
  603. }
  604. ],
  605. "consumes": [
  606. "application/json"
  607. ],
  608. "produces": [
  609. "application/json"
  610. ],
  611. "tags": [
  612. "Authority"
  613. ],
  614. "summary": "设置角色资源权限",
  615. "parameters": [
  616. {
  617. "description": "设置角色资源权限",
  618. "name": "data",
  619. "in": "body",
  620. "required": true,
  621. "schema": {
  622. "$ref": "#/definitions/system.SysAuthority"
  623. }
  624. }
  625. ],
  626. "responses": {
  627. "200": {
  628. "description": "设置角色资源权限",
  629. "schema": {
  630. "allOf": [
  631. {
  632. "$ref": "#/definitions/response.Response"
  633. },
  634. {
  635. "type": "object",
  636. "properties": {
  637. "msg": {
  638. "type": "string"
  639. }
  640. }
  641. }
  642. ]
  643. }
  644. }
  645. }
  646. }
  647. },
  648. "/authority/updateAuthority": {
  649. "post": {
  650. "security": [
  651. {
  652. "ApiKeyAuth": []
  653. }
  654. ],
  655. "consumes": [
  656. "application/json"
  657. ],
  658. "produces": [
  659. "application/json"
  660. ],
  661. "tags": [
  662. "Authority"
  663. ],
  664. "summary": "更新角色信息",
  665. "parameters": [
  666. {
  667. "description": "权限id, 权限名, 父角色id",
  668. "name": "data",
  669. "in": "body",
  670. "required": true,
  671. "schema": {
  672. "$ref": "#/definitions/system.SysAuthority"
  673. }
  674. }
  675. ],
  676. "responses": {
  677. "200": {
  678. "description": "更新角色信息,返回包括系统角色详情",
  679. "schema": {
  680. "allOf": [
  681. {
  682. "$ref": "#/definitions/response.Response"
  683. },
  684. {
  685. "type": "object",
  686. "properties": {
  687. "data": {
  688. "$ref": "#/definitions/response.SysAuthorityResponse"
  689. },
  690. "msg": {
  691. "type": "string"
  692. }
  693. }
  694. }
  695. ]
  696. }
  697. }
  698. }
  699. }
  700. },
  701. "/authorityBtn/canRemoveAuthorityBtn": {
  702. "post": {
  703. "security": [
  704. {
  705. "ApiKeyAuth": []
  706. }
  707. ],
  708. "consumes": [
  709. "application/json"
  710. ],
  711. "produces": [
  712. "application/json"
  713. ],
  714. "tags": [
  715. "AuthorityBtn"
  716. ],
  717. "summary": "设置权限按钮",
  718. "responses": {
  719. "200": {
  720. "description": "删除成功",
  721. "schema": {
  722. "allOf": [
  723. {
  724. "$ref": "#/definitions/response.Response"
  725. },
  726. {
  727. "type": "object",
  728. "properties": {
  729. "msg": {
  730. "type": "string"
  731. }
  732. }
  733. }
  734. ]
  735. }
  736. }
  737. }
  738. }
  739. },
  740. "/authorityBtn/getAuthorityBtn": {
  741. "post": {
  742. "security": [
  743. {
  744. "ApiKeyAuth": []
  745. }
  746. ],
  747. "consumes": [
  748. "application/json"
  749. ],
  750. "produces": [
  751. "application/json"
  752. ],
  753. "tags": [
  754. "AuthorityBtn"
  755. ],
  756. "summary": "获取权限按钮",
  757. "parameters": [
  758. {
  759. "description": "菜单id, 角色id, 选中的按钮id",
  760. "name": "data",
  761. "in": "body",
  762. "required": true,
  763. "schema": {
  764. "$ref": "#/definitions/request.SysAuthorityBtnReq"
  765. }
  766. }
  767. ],
  768. "responses": {
  769. "200": {
  770. "description": "返回列表成功",
  771. "schema": {
  772. "allOf": [
  773. {
  774. "$ref": "#/definitions/response.Response"
  775. },
  776. {
  777. "type": "object",
  778. "properties": {
  779. "data": {
  780. "$ref": "#/definitions/response.SysAuthorityBtnRes"
  781. },
  782. "msg": {
  783. "type": "string"
  784. }
  785. }
  786. }
  787. ]
  788. }
  789. }
  790. }
  791. }
  792. },
  793. "/authorityBtn/setAuthorityBtn": {
  794. "post": {
  795. "security": [
  796. {
  797. "ApiKeyAuth": []
  798. }
  799. ],
  800. "consumes": [
  801. "application/json"
  802. ],
  803. "produces": [
  804. "application/json"
  805. ],
  806. "tags": [
  807. "AuthorityBtn"
  808. ],
  809. "summary": "设置权限按钮",
  810. "parameters": [
  811. {
  812. "description": "菜单id, 角色id, 选中的按钮id",
  813. "name": "data",
  814. "in": "body",
  815. "required": true,
  816. "schema": {
  817. "$ref": "#/definitions/request.SysAuthorityBtnReq"
  818. }
  819. }
  820. ],
  821. "responses": {
  822. "200": {
  823. "description": "返回列表成功",
  824. "schema": {
  825. "allOf": [
  826. {
  827. "$ref": "#/definitions/response.Response"
  828. },
  829. {
  830. "type": "object",
  831. "properties": {
  832. "msg": {
  833. "type": "string"
  834. }
  835. }
  836. }
  837. ]
  838. }
  839. }
  840. }
  841. }
  842. },
  843. "/autoCode/createPackage": {
  844. "post": {
  845. "security": [
  846. {
  847. "ApiKeyAuth": []
  848. }
  849. ],
  850. "consumes": [
  851. "application/json"
  852. ],
  853. "produces": [
  854. "application/json"
  855. ],
  856. "tags": [
  857. "AutoCode"
  858. ],
  859. "summary": "创建package",
  860. "parameters": [
  861. {
  862. "description": "创建package",
  863. "name": "data",
  864. "in": "body",
  865. "required": true,
  866. "schema": {
  867. "$ref": "#/definitions/system.SysAutoCode"
  868. }
  869. }
  870. ],
  871. "responses": {
  872. "200": {
  873. "description": "创建package成功",
  874. "schema": {
  875. "allOf": [
  876. {
  877. "$ref": "#/definitions/response.Response"
  878. },
  879. {
  880. "type": "object",
  881. "properties": {
  882. "data": {
  883. "type": "object",
  884. "additionalProperties": true
  885. },
  886. "msg": {
  887. "type": "string"
  888. }
  889. }
  890. }
  891. ]
  892. }
  893. }
  894. }
  895. }
  896. },
  897. "/autoCode/createPlug": {
  898. "post": {
  899. "security": [
  900. {
  901. "ApiKeyAuth": []
  902. }
  903. ],
  904. "consumes": [
  905. "application/json"
  906. ],
  907. "produces": [
  908. "application/json"
  909. ],
  910. "tags": [
  911. "AutoCode"
  912. ],
  913. "summary": "创建插件模板",
  914. "parameters": [
  915. {
  916. "description": "创建插件模板",
  917. "name": "data",
  918. "in": "body",
  919. "required": true,
  920. "schema": {
  921. "$ref": "#/definitions/system.SysAutoCode"
  922. }
  923. }
  924. ],
  925. "responses": {
  926. "200": {
  927. "description": "创建插件模板成功",
  928. "schema": {
  929. "allOf": [
  930. {
  931. "$ref": "#/definitions/response.Response"
  932. },
  933. {
  934. "type": "object",
  935. "properties": {
  936. "data": {
  937. "type": "object",
  938. "additionalProperties": true
  939. },
  940. "msg": {
  941. "type": "string"
  942. }
  943. }
  944. }
  945. ]
  946. }
  947. }
  948. }
  949. }
  950. },
  951. "/autoCode/createTemp": {
  952. "post": {
  953. "security": [
  954. {
  955. "ApiKeyAuth": []
  956. }
  957. ],
  958. "consumes": [
  959. "application/json"
  960. ],
  961. "produces": [
  962. "application/json"
  963. ],
  964. "tags": [
  965. "AutoCode"
  966. ],
  967. "summary": "自动代码模板",
  968. "parameters": [
  969. {
  970. "description": "创建自动代码",
  971. "name": "data",
  972. "in": "body",
  973. "required": true,
  974. "schema": {
  975. "$ref": "#/definitions/system.AutoCodeStruct"
  976. }
  977. }
  978. ],
  979. "responses": {
  980. "200": {
  981. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  982. "schema": {
  983. "type": "string"
  984. }
  985. }
  986. }
  987. }
  988. },
  989. "/autoCode/delPackage": {
  990. "post": {
  991. "security": [
  992. {
  993. "ApiKeyAuth": []
  994. }
  995. ],
  996. "consumes": [
  997. "application/json"
  998. ],
  999. "produces": [
  1000. "application/json"
  1001. ],
  1002. "tags": [
  1003. "AutoCode"
  1004. ],
  1005. "summary": "删除package",
  1006. "parameters": [
  1007. {
  1008. "description": "创建package",
  1009. "name": "data",
  1010. "in": "body",
  1011. "required": true,
  1012. "schema": {
  1013. "$ref": "#/definitions/system.SysAutoCode"
  1014. }
  1015. }
  1016. ],
  1017. "responses": {
  1018. "200": {
  1019. "description": "删除package成功",
  1020. "schema": {
  1021. "allOf": [
  1022. {
  1023. "$ref": "#/definitions/response.Response"
  1024. },
  1025. {
  1026. "type": "object",
  1027. "properties": {
  1028. "data": {
  1029. "type": "object",
  1030. "additionalProperties": true
  1031. },
  1032. "msg": {
  1033. "type": "string"
  1034. }
  1035. }
  1036. }
  1037. ]
  1038. }
  1039. }
  1040. }
  1041. }
  1042. },
  1043. "/autoCode/delSysHistory": {
  1044. "post": {
  1045. "security": [
  1046. {
  1047. "ApiKeyAuth": []
  1048. }
  1049. ],
  1050. "consumes": [
  1051. "application/json"
  1052. ],
  1053. "produces": [
  1054. "application/json"
  1055. ],
  1056. "tags": [
  1057. "AutoCode"
  1058. ],
  1059. "summary": "删除回滚记录",
  1060. "parameters": [
  1061. {
  1062. "description": "请求参数",
  1063. "name": "data",
  1064. "in": "body",
  1065. "required": true,
  1066. "schema": {
  1067. "$ref": "#/definitions/request.GetById"
  1068. }
  1069. }
  1070. ],
  1071. "responses": {
  1072. "200": {
  1073. "description": "删除回滚记录",
  1074. "schema": {
  1075. "allOf": [
  1076. {
  1077. "$ref": "#/definitions/response.Response"
  1078. },
  1079. {
  1080. "type": "object",
  1081. "properties": {
  1082. "msg": {
  1083. "type": "string"
  1084. }
  1085. }
  1086. }
  1087. ]
  1088. }
  1089. }
  1090. }
  1091. }
  1092. },
  1093. "/autoCode/getColumn": {
  1094. "get": {
  1095. "security": [
  1096. {
  1097. "ApiKeyAuth": []
  1098. }
  1099. ],
  1100. "consumes": [
  1101. "application/json"
  1102. ],
  1103. "produces": [
  1104. "application/json"
  1105. ],
  1106. "tags": [
  1107. "AutoCode"
  1108. ],
  1109. "summary": "获取当前表所有字段",
  1110. "responses": {
  1111. "200": {
  1112. "description": "获取当前表所有字段",
  1113. "schema": {
  1114. "allOf": [
  1115. {
  1116. "$ref": "#/definitions/response.Response"
  1117. },
  1118. {
  1119. "type": "object",
  1120. "properties": {
  1121. "data": {
  1122. "type": "object",
  1123. "additionalProperties": true
  1124. },
  1125. "msg": {
  1126. "type": "string"
  1127. }
  1128. }
  1129. }
  1130. ]
  1131. }
  1132. }
  1133. }
  1134. }
  1135. },
  1136. "/autoCode/getDatabase": {
  1137. "get": {
  1138. "security": [
  1139. {
  1140. "ApiKeyAuth": []
  1141. }
  1142. ],
  1143. "consumes": [
  1144. "application/json"
  1145. ],
  1146. "produces": [
  1147. "application/json"
  1148. ],
  1149. "tags": [
  1150. "AutoCode"
  1151. ],
  1152. "summary": "获取当前所有数据库",
  1153. "responses": {
  1154. "200": {
  1155. "description": "获取当前所有数据库",
  1156. "schema": {
  1157. "allOf": [
  1158. {
  1159. "$ref": "#/definitions/response.Response"
  1160. },
  1161. {
  1162. "type": "object",
  1163. "properties": {
  1164. "data": {
  1165. "type": "object",
  1166. "additionalProperties": true
  1167. },
  1168. "msg": {
  1169. "type": "string"
  1170. }
  1171. }
  1172. }
  1173. ]
  1174. }
  1175. }
  1176. }
  1177. }
  1178. },
  1179. "/autoCode/getMeta": {
  1180. "post": {
  1181. "security": [
  1182. {
  1183. "ApiKeyAuth": []
  1184. }
  1185. ],
  1186. "consumes": [
  1187. "application/json"
  1188. ],
  1189. "produces": [
  1190. "application/json"
  1191. ],
  1192. "tags": [
  1193. "AutoCode"
  1194. ],
  1195. "summary": "获取meta信息",
  1196. "parameters": [
  1197. {
  1198. "description": "请求参数",
  1199. "name": "data",
  1200. "in": "body",
  1201. "required": true,
  1202. "schema": {
  1203. "$ref": "#/definitions/request.GetById"
  1204. }
  1205. }
  1206. ],
  1207. "responses": {
  1208. "200": {
  1209. "description": "获取meta信息",
  1210. "schema": {
  1211. "allOf": [
  1212. {
  1213. "$ref": "#/definitions/response.Response"
  1214. },
  1215. {
  1216. "type": "object",
  1217. "properties": {
  1218. "data": {
  1219. "type": "object",
  1220. "additionalProperties": true
  1221. },
  1222. "msg": {
  1223. "type": "string"
  1224. }
  1225. }
  1226. }
  1227. ]
  1228. }
  1229. }
  1230. }
  1231. }
  1232. },
  1233. "/autoCode/getPackage": {
  1234. "post": {
  1235. "security": [
  1236. {
  1237. "ApiKeyAuth": []
  1238. }
  1239. ],
  1240. "consumes": [
  1241. "application/json"
  1242. ],
  1243. "produces": [
  1244. "application/json"
  1245. ],
  1246. "tags": [
  1247. "AutoCode"
  1248. ],
  1249. "summary": "获取package",
  1250. "responses": {
  1251. "200": {
  1252. "description": "创建package成功",
  1253. "schema": {
  1254. "allOf": [
  1255. {
  1256. "$ref": "#/definitions/response.Response"
  1257. },
  1258. {
  1259. "type": "object",
  1260. "properties": {
  1261. "data": {
  1262. "type": "object",
  1263. "additionalProperties": true
  1264. },
  1265. "msg": {
  1266. "type": "string"
  1267. }
  1268. }
  1269. }
  1270. ]
  1271. }
  1272. }
  1273. }
  1274. }
  1275. },
  1276. "/autoCode/getSysHistory": {
  1277. "post": {
  1278. "security": [
  1279. {
  1280. "ApiKeyAuth": []
  1281. }
  1282. ],
  1283. "consumes": [
  1284. "application/json"
  1285. ],
  1286. "produces": [
  1287. "application/json"
  1288. ],
  1289. "tags": [
  1290. "AutoCode"
  1291. ],
  1292. "summary": "查询回滚记录",
  1293. "parameters": [
  1294. {
  1295. "description": "请求参数",
  1296. "name": "data",
  1297. "in": "body",
  1298. "required": true,
  1299. "schema": {
  1300. "$ref": "#/definitions/request.SysAutoHistory"
  1301. }
  1302. }
  1303. ],
  1304. "responses": {
  1305. "200": {
  1306. "description": "查询回滚记录,返回包括列表,总数,页码,每页数量",
  1307. "schema": {
  1308. "allOf": [
  1309. {
  1310. "$ref": "#/definitions/response.Response"
  1311. },
  1312. {
  1313. "type": "object",
  1314. "properties": {
  1315. "data": {
  1316. "$ref": "#/definitions/response.PageResult"
  1317. },
  1318. "msg": {
  1319. "type": "string"
  1320. }
  1321. }
  1322. }
  1323. ]
  1324. }
  1325. }
  1326. }
  1327. }
  1328. },
  1329. "/autoCode/getTables": {
  1330. "get": {
  1331. "security": [
  1332. {
  1333. "ApiKeyAuth": []
  1334. }
  1335. ],
  1336. "consumes": [
  1337. "application/json"
  1338. ],
  1339. "produces": [
  1340. "application/json"
  1341. ],
  1342. "tags": [
  1343. "AutoCode"
  1344. ],
  1345. "summary": "获取当前数据库所有表",
  1346. "responses": {
  1347. "200": {
  1348. "description": "获取当前数据库所有表",
  1349. "schema": {
  1350. "allOf": [
  1351. {
  1352. "$ref": "#/definitions/response.Response"
  1353. },
  1354. {
  1355. "type": "object",
  1356. "properties": {
  1357. "data": {
  1358. "type": "object",
  1359. "additionalProperties": true
  1360. },
  1361. "msg": {
  1362. "type": "string"
  1363. }
  1364. }
  1365. }
  1366. ]
  1367. }
  1368. }
  1369. }
  1370. }
  1371. },
  1372. "/autoCode/installPlugin": {
  1373. "post": {
  1374. "security": [
  1375. {
  1376. "ApiKeyAuth": []
  1377. }
  1378. ],
  1379. "consumes": [
  1380. "multipart/form-data"
  1381. ],
  1382. "produces": [
  1383. "application/json"
  1384. ],
  1385. "tags": [
  1386. "AutoCode"
  1387. ],
  1388. "summary": "安装插件",
  1389. "parameters": [
  1390. {
  1391. "type": "file",
  1392. "description": "this is a test file",
  1393. "name": "plug",
  1394. "in": "formData",
  1395. "required": true
  1396. }
  1397. ],
  1398. "responses": {
  1399. "200": {
  1400. "description": "安装插件成功",
  1401. "schema": {
  1402. "allOf": [
  1403. {
  1404. "$ref": "#/definitions/response.Response"
  1405. },
  1406. {
  1407. "type": "object",
  1408. "properties": {
  1409. "data": {
  1410. "type": "array",
  1411. "items": {
  1412. "type": "object"
  1413. }
  1414. },
  1415. "msg": {
  1416. "type": "string"
  1417. }
  1418. }
  1419. }
  1420. ]
  1421. }
  1422. }
  1423. }
  1424. }
  1425. },
  1426. "/autoCode/preview": {
  1427. "post": {
  1428. "security": [
  1429. {
  1430. "ApiKeyAuth": []
  1431. }
  1432. ],
  1433. "consumes": [
  1434. "application/json"
  1435. ],
  1436. "produces": [
  1437. "application/json"
  1438. ],
  1439. "tags": [
  1440. "AutoCode"
  1441. ],
  1442. "summary": "预览创建后的代码",
  1443. "parameters": [
  1444. {
  1445. "description": "预览创建代码",
  1446. "name": "data",
  1447. "in": "body",
  1448. "required": true,
  1449. "schema": {
  1450. "$ref": "#/definitions/system.AutoCodeStruct"
  1451. }
  1452. }
  1453. ],
  1454. "responses": {
  1455. "200": {
  1456. "description": "预览创建后的代码",
  1457. "schema": {
  1458. "allOf": [
  1459. {
  1460. "$ref": "#/definitions/response.Response"
  1461. },
  1462. {
  1463. "type": "object",
  1464. "properties": {
  1465. "data": {
  1466. "type": "object",
  1467. "additionalProperties": true
  1468. },
  1469. "msg": {
  1470. "type": "string"
  1471. }
  1472. }
  1473. }
  1474. ]
  1475. }
  1476. }
  1477. }
  1478. }
  1479. },
  1480. "/autoCode/pubPlug": {
  1481. "get": {
  1482. "security": [
  1483. {
  1484. "ApiKeyAuth": []
  1485. }
  1486. ],
  1487. "consumes": [
  1488. "application/json"
  1489. ],
  1490. "produces": [
  1491. "application/json"
  1492. ],
  1493. "tags": [
  1494. "AutoCode"
  1495. ],
  1496. "summary": "打包插件",
  1497. "parameters": [
  1498. {
  1499. "description": "打包插件",
  1500. "name": "data",
  1501. "in": "body",
  1502. "required": true,
  1503. "schema": {
  1504. "$ref": "#/definitions/system.SysAutoCode"
  1505. }
  1506. }
  1507. ],
  1508. "responses": {
  1509. "200": {
  1510. "description": "打包插件成功",
  1511. "schema": {
  1512. "allOf": [
  1513. {
  1514. "$ref": "#/definitions/response.Response"
  1515. },
  1516. {
  1517. "type": "object",
  1518. "properties": {
  1519. "data": {
  1520. "type": "object",
  1521. "additionalProperties": true
  1522. },
  1523. "msg": {
  1524. "type": "string"
  1525. }
  1526. }
  1527. }
  1528. ]
  1529. }
  1530. }
  1531. }
  1532. }
  1533. },
  1534. "/autoCode/rollback": {
  1535. "post": {
  1536. "security": [
  1537. {
  1538. "ApiKeyAuth": []
  1539. }
  1540. ],
  1541. "consumes": [
  1542. "application/json"
  1543. ],
  1544. "produces": [
  1545. "application/json"
  1546. ],
  1547. "tags": [
  1548. "AutoCode"
  1549. ],
  1550. "summary": "回滚自动生成代码",
  1551. "parameters": [
  1552. {
  1553. "description": "请求参数",
  1554. "name": "data",
  1555. "in": "body",
  1556. "required": true,
  1557. "schema": {
  1558. "$ref": "#/definitions/request.RollBack"
  1559. }
  1560. }
  1561. ],
  1562. "responses": {
  1563. "200": {
  1564. "description": "回滚自动生成代码",
  1565. "schema": {
  1566. "allOf": [
  1567. {
  1568. "$ref": "#/definitions/response.Response"
  1569. },
  1570. {
  1571. "type": "object",
  1572. "properties": {
  1573. "msg": {
  1574. "type": "string"
  1575. }
  1576. }
  1577. }
  1578. ]
  1579. }
  1580. }
  1581. }
  1582. }
  1583. },
  1584. "/base/captcha": {
  1585. "post": {
  1586. "security": [
  1587. {
  1588. "ApiKeyAuth": []
  1589. }
  1590. ],
  1591. "consumes": [
  1592. "application/json"
  1593. ],
  1594. "produces": [
  1595. "application/json"
  1596. ],
  1597. "tags": [
  1598. "Base"
  1599. ],
  1600. "summary": "生成验证码",
  1601. "responses": {
  1602. "200": {
  1603. "description": "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码",
  1604. "schema": {
  1605. "allOf": [
  1606. {
  1607. "$ref": "#/definitions/response.Response"
  1608. },
  1609. {
  1610. "type": "object",
  1611. "properties": {
  1612. "data": {
  1613. "$ref": "#/definitions/response.SysCaptchaResponse"
  1614. },
  1615. "msg": {
  1616. "type": "string"
  1617. }
  1618. }
  1619. }
  1620. ]
  1621. }
  1622. }
  1623. }
  1624. }
  1625. },
  1626. "/base/login": {
  1627. "post": {
  1628. "produces": [
  1629. "application/json"
  1630. ],
  1631. "tags": [
  1632. "Base"
  1633. ],
  1634. "summary": "用户登录",
  1635. "parameters": [
  1636. {
  1637. "description": "用户名, 密码, 验证码",
  1638. "name": "data",
  1639. "in": "body",
  1640. "required": true,
  1641. "schema": {
  1642. "$ref": "#/definitions/request.Login"
  1643. }
  1644. }
  1645. ],
  1646. "responses": {
  1647. "200": {
  1648. "description": "返回包括用户信息,token,过期时间",
  1649. "schema": {
  1650. "allOf": [
  1651. {
  1652. "$ref": "#/definitions/response.Response"
  1653. },
  1654. {
  1655. "type": "object",
  1656. "properties": {
  1657. "data": {
  1658. "$ref": "#/definitions/response.LoginResponse"
  1659. },
  1660. "msg": {
  1661. "type": "string"
  1662. }
  1663. }
  1664. }
  1665. ]
  1666. }
  1667. }
  1668. }
  1669. }
  1670. },
  1671. "/casbin/UpdateCasbin": {
  1672. "post": {
  1673. "security": [
  1674. {
  1675. "ApiKeyAuth": []
  1676. }
  1677. ],
  1678. "consumes": [
  1679. "application/json"
  1680. ],
  1681. "produces": [
  1682. "application/json"
  1683. ],
  1684. "tags": [
  1685. "Casbin"
  1686. ],
  1687. "summary": "更新角色api权限",
  1688. "parameters": [
  1689. {
  1690. "description": "权限id, 权限模型列表",
  1691. "name": "data",
  1692. "in": "body",
  1693. "required": true,
  1694. "schema": {
  1695. "$ref": "#/definitions/request.CasbinInReceive"
  1696. }
  1697. }
  1698. ],
  1699. "responses": {
  1700. "200": {
  1701. "description": "更新角色api权限",
  1702. "schema": {
  1703. "allOf": [
  1704. {
  1705. "$ref": "#/definitions/response.Response"
  1706. },
  1707. {
  1708. "type": "object",
  1709. "properties": {
  1710. "msg": {
  1711. "type": "string"
  1712. }
  1713. }
  1714. }
  1715. ]
  1716. }
  1717. }
  1718. }
  1719. }
  1720. },
  1721. "/casbin/getPolicyPathByAuthorityId": {
  1722. "post": {
  1723. "security": [
  1724. {
  1725. "ApiKeyAuth": []
  1726. }
  1727. ],
  1728. "consumes": [
  1729. "application/json"
  1730. ],
  1731. "produces": [
  1732. "application/json"
  1733. ],
  1734. "tags": [
  1735. "Casbin"
  1736. ],
  1737. "summary": "获取权限列表",
  1738. "parameters": [
  1739. {
  1740. "description": "权限id, 权限模型列表",
  1741. "name": "data",
  1742. "in": "body",
  1743. "required": true,
  1744. "schema": {
  1745. "$ref": "#/definitions/request.CasbinInReceive"
  1746. }
  1747. }
  1748. ],
  1749. "responses": {
  1750. "200": {
  1751. "description": "获取权限列表,返回包括casbin详情列表",
  1752. "schema": {
  1753. "allOf": [
  1754. {
  1755. "$ref": "#/definitions/response.Response"
  1756. },
  1757. {
  1758. "type": "object",
  1759. "properties": {
  1760. "data": {
  1761. "$ref": "#/definitions/response.PolicyPathResponse"
  1762. },
  1763. "msg": {
  1764. "type": "string"
  1765. }
  1766. }
  1767. }
  1768. ]
  1769. }
  1770. }
  1771. }
  1772. }
  1773. },
  1774. "/customer/customer": {
  1775. "get": {
  1776. "security": [
  1777. {
  1778. "ApiKeyAuth": []
  1779. }
  1780. ],
  1781. "consumes": [
  1782. "application/json"
  1783. ],
  1784. "produces": [
  1785. "application/json"
  1786. ],
  1787. "tags": [
  1788. "ExaCustomer"
  1789. ],
  1790. "summary": "获取单一客户信息",
  1791. "parameters": [
  1792. {
  1793. "type": "integer",
  1794. "description": "主键ID",
  1795. "name": "ID",
  1796. "in": "query"
  1797. },
  1798. {
  1799. "type": "string",
  1800. "description": "创建时间",
  1801. "name": "createdAt",
  1802. "in": "query"
  1803. },
  1804. {
  1805. "type": "string",
  1806. "description": "客户名",
  1807. "name": "customerName",
  1808. "in": "query"
  1809. },
  1810. {
  1811. "type": "string",
  1812. "description": "客户手机号",
  1813. "name": "customerPhoneData",
  1814. "in": "query"
  1815. },
  1816. {
  1817. "type": "integer",
  1818. "description": "管理角色ID",
  1819. "name": "sysUserAuthorityID",
  1820. "in": "query"
  1821. },
  1822. {
  1823. "type": "integer",
  1824. "description": "管理ID",
  1825. "name": "sysUserId",
  1826. "in": "query"
  1827. },
  1828. {
  1829. "type": "string",
  1830. "description": "更新时间",
  1831. "name": "updatedAt",
  1832. "in": "query"
  1833. }
  1834. ],
  1835. "responses": {
  1836. "200": {
  1837. "description": "获取单一客户信息,返回包括客户详情",
  1838. "schema": {
  1839. "allOf": [
  1840. {
  1841. "$ref": "#/definitions/response.Response"
  1842. },
  1843. {
  1844. "type": "object",
  1845. "properties": {
  1846. "data": {
  1847. "$ref": "#/definitions/response.ExaCustomerResponse"
  1848. },
  1849. "msg": {
  1850. "type": "string"
  1851. }
  1852. }
  1853. }
  1854. ]
  1855. }
  1856. }
  1857. }
  1858. },
  1859. "put": {
  1860. "security": [
  1861. {
  1862. "ApiKeyAuth": []
  1863. }
  1864. ],
  1865. "consumes": [
  1866. "application/json"
  1867. ],
  1868. "produces": [
  1869. "application/json"
  1870. ],
  1871. "tags": [
  1872. "ExaCustomer"
  1873. ],
  1874. "summary": "更新客户信息",
  1875. "parameters": [
  1876. {
  1877. "description": "客户ID, 客户信息",
  1878. "name": "data",
  1879. "in": "body",
  1880. "required": true,
  1881. "schema": {
  1882. "$ref": "#/definitions/example.ExaCustomer"
  1883. }
  1884. }
  1885. ],
  1886. "responses": {
  1887. "200": {
  1888. "description": "更新客户信息",
  1889. "schema": {
  1890. "allOf": [
  1891. {
  1892. "$ref": "#/definitions/response.Response"
  1893. },
  1894. {
  1895. "type": "object",
  1896. "properties": {
  1897. "msg": {
  1898. "type": "string"
  1899. }
  1900. }
  1901. }
  1902. ]
  1903. }
  1904. }
  1905. }
  1906. },
  1907. "post": {
  1908. "security": [
  1909. {
  1910. "ApiKeyAuth": []
  1911. }
  1912. ],
  1913. "consumes": [
  1914. "application/json"
  1915. ],
  1916. "produces": [
  1917. "application/json"
  1918. ],
  1919. "tags": [
  1920. "ExaCustomer"
  1921. ],
  1922. "summary": "创建客户",
  1923. "parameters": [
  1924. {
  1925. "description": "客户用户名, 客户手机号码",
  1926. "name": "data",
  1927. "in": "body",
  1928. "required": true,
  1929. "schema": {
  1930. "$ref": "#/definitions/example.ExaCustomer"
  1931. }
  1932. }
  1933. ],
  1934. "responses": {
  1935. "200": {
  1936. "description": "创建客户",
  1937. "schema": {
  1938. "allOf": [
  1939. {
  1940. "$ref": "#/definitions/response.Response"
  1941. },
  1942. {
  1943. "type": "object",
  1944. "properties": {
  1945. "msg": {
  1946. "type": "string"
  1947. }
  1948. }
  1949. }
  1950. ]
  1951. }
  1952. }
  1953. }
  1954. },
  1955. "delete": {
  1956. "security": [
  1957. {
  1958. "ApiKeyAuth": []
  1959. }
  1960. ],
  1961. "consumes": [
  1962. "application/json"
  1963. ],
  1964. "produces": [
  1965. "application/json"
  1966. ],
  1967. "tags": [
  1968. "ExaCustomer"
  1969. ],
  1970. "summary": "删除客户",
  1971. "parameters": [
  1972. {
  1973. "description": "客户ID",
  1974. "name": "data",
  1975. "in": "body",
  1976. "required": true,
  1977. "schema": {
  1978. "$ref": "#/definitions/example.ExaCustomer"
  1979. }
  1980. }
  1981. ],
  1982. "responses": {
  1983. "200": {
  1984. "description": "删除客户",
  1985. "schema": {
  1986. "allOf": [
  1987. {
  1988. "$ref": "#/definitions/response.Response"
  1989. },
  1990. {
  1991. "type": "object",
  1992. "properties": {
  1993. "msg": {
  1994. "type": "string"
  1995. }
  1996. }
  1997. }
  1998. ]
  1999. }
  2000. }
  2001. }
  2002. }
  2003. },
  2004. "/customer/customerList": {
  2005. "get": {
  2006. "security": [
  2007. {
  2008. "ApiKeyAuth": []
  2009. }
  2010. ],
  2011. "consumes": [
  2012. "application/json"
  2013. ],
  2014. "produces": [
  2015. "application/json"
  2016. ],
  2017. "tags": [
  2018. "ExaCustomer"
  2019. ],
  2020. "summary": "分页获取权限客户列表",
  2021. "parameters": [
  2022. {
  2023. "type": "string",
  2024. "description": "关键字",
  2025. "name": "keyword",
  2026. "in": "query"
  2027. },
  2028. {
  2029. "type": "integer",
  2030. "description": "页码",
  2031. "name": "page",
  2032. "in": "query"
  2033. },
  2034. {
  2035. "type": "integer",
  2036. "description": "每页大小",
  2037. "name": "pageSize",
  2038. "in": "query"
  2039. }
  2040. ],
  2041. "responses": {
  2042. "200": {
  2043. "description": "分页获取权限客户列表,返回包括列表,总数,页码,每页数量",
  2044. "schema": {
  2045. "allOf": [
  2046. {
  2047. "$ref": "#/definitions/response.Response"
  2048. },
  2049. {
  2050. "type": "object",
  2051. "properties": {
  2052. "data": {
  2053. "$ref": "#/definitions/response.PageResult"
  2054. },
  2055. "msg": {
  2056. "type": "string"
  2057. }
  2058. }
  2059. }
  2060. ]
  2061. }
  2062. }
  2063. }
  2064. }
  2065. },
  2066. "/email/emailTest": {
  2067. "post": {
  2068. "security": [
  2069. {
  2070. "ApiKeyAuth": []
  2071. }
  2072. ],
  2073. "produces": [
  2074. "application/json"
  2075. ],
  2076. "tags": [
  2077. "System"
  2078. ],
  2079. "summary": "发送测试邮件",
  2080. "responses": {
  2081. "200": {
  2082. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  2083. "schema": {
  2084. "type": "string"
  2085. }
  2086. }
  2087. }
  2088. }
  2089. },
  2090. "/email/sendEmail": {
  2091. "post": {
  2092. "security": [
  2093. {
  2094. "ApiKeyAuth": []
  2095. }
  2096. ],
  2097. "produces": [
  2098. "application/json"
  2099. ],
  2100. "tags": [
  2101. "System"
  2102. ],
  2103. "summary": "发送邮件",
  2104. "parameters": [
  2105. {
  2106. "description": "发送邮件必须的参数",
  2107. "name": "data",
  2108. "in": "body",
  2109. "required": true,
  2110. "schema": {
  2111. "$ref": "#/definitions/response.Email"
  2112. }
  2113. }
  2114. ],
  2115. "responses": {
  2116. "200": {
  2117. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  2118. "schema": {
  2119. "type": "string"
  2120. }
  2121. }
  2122. }
  2123. }
  2124. },
  2125. "/fileUploadAndDownload/breakpointContinue": {
  2126. "post": {
  2127. "security": [
  2128. {
  2129. "ApiKeyAuth": []
  2130. }
  2131. ],
  2132. "consumes": [
  2133. "multipart/form-data"
  2134. ],
  2135. "produces": [
  2136. "application/json"
  2137. ],
  2138. "tags": [
  2139. "ExaFileUploadAndDownload"
  2140. ],
  2141. "summary": "断点续传到服务器",
  2142. "parameters": [
  2143. {
  2144. "type": "file",
  2145. "description": "an example for breakpoint resume, 断点续传示例",
  2146. "name": "file",
  2147. "in": "formData",
  2148. "required": true
  2149. }
  2150. ],
  2151. "responses": {
  2152. "200": {
  2153. "description": "断点续传到服务器",
  2154. "schema": {
  2155. "allOf": [
  2156. {
  2157. "$ref": "#/definitions/response.Response"
  2158. },
  2159. {
  2160. "type": "object",
  2161. "properties": {
  2162. "msg": {
  2163. "type": "string"
  2164. }
  2165. }
  2166. }
  2167. ]
  2168. }
  2169. }
  2170. }
  2171. }
  2172. },
  2173. "/fileUploadAndDownload/deleteFile": {
  2174. "post": {
  2175. "security": [
  2176. {
  2177. "ApiKeyAuth": []
  2178. }
  2179. ],
  2180. "produces": [
  2181. "application/json"
  2182. ],
  2183. "tags": [
  2184. "ExaFileUploadAndDownload"
  2185. ],
  2186. "summary": "删除文件",
  2187. "parameters": [
  2188. {
  2189. "description": "传入文件里面id即可",
  2190. "name": "data",
  2191. "in": "body",
  2192. "required": true,
  2193. "schema": {
  2194. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  2195. }
  2196. }
  2197. ],
  2198. "responses": {
  2199. "200": {
  2200. "description": "删除文件",
  2201. "schema": {
  2202. "allOf": [
  2203. {
  2204. "$ref": "#/definitions/response.Response"
  2205. },
  2206. {
  2207. "type": "object",
  2208. "properties": {
  2209. "msg": {
  2210. "type": "string"
  2211. }
  2212. }
  2213. }
  2214. ]
  2215. }
  2216. }
  2217. }
  2218. }
  2219. },
  2220. "/fileUploadAndDownload/findFile": {
  2221. "post": {
  2222. "security": [
  2223. {
  2224. "ApiKeyAuth": []
  2225. }
  2226. ],
  2227. "consumes": [
  2228. "multipart/form-data"
  2229. ],
  2230. "produces": [
  2231. "application/json"
  2232. ],
  2233. "tags": [
  2234. "ExaFileUploadAndDownload"
  2235. ],
  2236. "summary": "创建文件",
  2237. "parameters": [
  2238. {
  2239. "type": "file",
  2240. "description": "上传文件完成",
  2241. "name": "file",
  2242. "in": "formData",
  2243. "required": true
  2244. }
  2245. ],
  2246. "responses": {
  2247. "200": {
  2248. "description": "创建文件,返回包括文件路径",
  2249. "schema": {
  2250. "allOf": [
  2251. {
  2252. "$ref": "#/definitions/response.Response"
  2253. },
  2254. {
  2255. "type": "object",
  2256. "properties": {
  2257. "data": {
  2258. "$ref": "#/definitions/response.FilePathResponse"
  2259. },
  2260. "msg": {
  2261. "type": "string"
  2262. }
  2263. }
  2264. }
  2265. ]
  2266. }
  2267. }
  2268. }
  2269. }
  2270. },
  2271. "/fileUploadAndDownload/getFileList": {
  2272. "post": {
  2273. "security": [
  2274. {
  2275. "ApiKeyAuth": []
  2276. }
  2277. ],
  2278. "consumes": [
  2279. "application/json"
  2280. ],
  2281. "produces": [
  2282. "application/json"
  2283. ],
  2284. "tags": [
  2285. "ExaFileUploadAndDownload"
  2286. ],
  2287. "summary": "分页文件列表",
  2288. "parameters": [
  2289. {
  2290. "description": "页码, 每页大小",
  2291. "name": "data",
  2292. "in": "body",
  2293. "required": true,
  2294. "schema": {
  2295. "$ref": "#/definitions/request.PageInfo"
  2296. }
  2297. }
  2298. ],
  2299. "responses": {
  2300. "200": {
  2301. "description": "分页文件列表,返回包括列表,总数,页码,每页数量",
  2302. "schema": {
  2303. "allOf": [
  2304. {
  2305. "$ref": "#/definitions/response.Response"
  2306. },
  2307. {
  2308. "type": "object",
  2309. "properties": {
  2310. "data": {
  2311. "$ref": "#/definitions/response.PageResult"
  2312. },
  2313. "msg": {
  2314. "type": "string"
  2315. }
  2316. }
  2317. }
  2318. ]
  2319. }
  2320. }
  2321. }
  2322. }
  2323. },
  2324. "/fileUploadAndDownload/removeChunk": {
  2325. "post": {
  2326. "security": [
  2327. {
  2328. "ApiKeyAuth": []
  2329. }
  2330. ],
  2331. "consumes": [
  2332. "multipart/form-data"
  2333. ],
  2334. "produces": [
  2335. "application/json"
  2336. ],
  2337. "tags": [
  2338. "ExaFileUploadAndDownload"
  2339. ],
  2340. "summary": "删除切片",
  2341. "parameters": [
  2342. {
  2343. "type": "file",
  2344. "description": "删除缓存切片",
  2345. "name": "file",
  2346. "in": "formData",
  2347. "required": true
  2348. }
  2349. ],
  2350. "responses": {
  2351. "200": {
  2352. "description": "删除切片",
  2353. "schema": {
  2354. "allOf": [
  2355. {
  2356. "$ref": "#/definitions/response.Response"
  2357. },
  2358. {
  2359. "type": "object",
  2360. "properties": {
  2361. "msg": {
  2362. "type": "string"
  2363. }
  2364. }
  2365. }
  2366. ]
  2367. }
  2368. }
  2369. }
  2370. }
  2371. },
  2372. "/fileUploadAndDownload/upload": {
  2373. "post": {
  2374. "security": [
  2375. {
  2376. "ApiKeyAuth": []
  2377. }
  2378. ],
  2379. "consumes": [
  2380. "multipart/form-data"
  2381. ],
  2382. "produces": [
  2383. "application/json"
  2384. ],
  2385. "tags": [
  2386. "ExaFileUploadAndDownload"
  2387. ],
  2388. "summary": "上传文件示例",
  2389. "parameters": [
  2390. {
  2391. "type": "file",
  2392. "description": "上传文件示例",
  2393. "name": "file",
  2394. "in": "formData",
  2395. "required": true
  2396. }
  2397. ],
  2398. "responses": {
  2399. "200": {
  2400. "description": "上传文件示例,返回包括文件详情",
  2401. "schema": {
  2402. "allOf": [
  2403. {
  2404. "$ref": "#/definitions/response.Response"
  2405. },
  2406. {
  2407. "type": "object",
  2408. "properties": {
  2409. "data": {
  2410. "$ref": "#/definitions/response.ExaFileResponse"
  2411. },
  2412. "msg": {
  2413. "type": "string"
  2414. }
  2415. }
  2416. }
  2417. ]
  2418. }
  2419. }
  2420. }
  2421. }
  2422. },
  2423. "/init/checkdb": {
  2424. "post": {
  2425. "produces": [
  2426. "application/json"
  2427. ],
  2428. "tags": [
  2429. "CheckDB"
  2430. ],
  2431. "summary": "初始化用户数据库",
  2432. "responses": {
  2433. "200": {
  2434. "description": "初始化用户数据库",
  2435. "schema": {
  2436. "allOf": [
  2437. {
  2438. "$ref": "#/definitions/response.Response"
  2439. },
  2440. {
  2441. "type": "object",
  2442. "properties": {
  2443. "data": {
  2444. "type": "object",
  2445. "additionalProperties": true
  2446. },
  2447. "msg": {
  2448. "type": "string"
  2449. }
  2450. }
  2451. }
  2452. ]
  2453. }
  2454. }
  2455. }
  2456. }
  2457. },
  2458. "/init/initdb": {
  2459. "post": {
  2460. "produces": [
  2461. "application/json"
  2462. ],
  2463. "tags": [
  2464. "InitDB"
  2465. ],
  2466. "summary": "初始化用户数据库",
  2467. "parameters": [
  2468. {
  2469. "description": "初始化数据库参数",
  2470. "name": "data",
  2471. "in": "body",
  2472. "required": true,
  2473. "schema": {
  2474. "$ref": "#/definitions/request.InitDB"
  2475. }
  2476. }
  2477. ],
  2478. "responses": {
  2479. "200": {
  2480. "description": "初始化用户数据库",
  2481. "schema": {
  2482. "allOf": [
  2483. {
  2484. "$ref": "#/definitions/response.Response"
  2485. },
  2486. {
  2487. "type": "object",
  2488. "properties": {
  2489. "data": {
  2490. "type": "string"
  2491. }
  2492. }
  2493. }
  2494. ]
  2495. }
  2496. }
  2497. }
  2498. }
  2499. },
  2500. "/jwt/jsonInBlacklist": {
  2501. "post": {
  2502. "security": [
  2503. {
  2504. "ApiKeyAuth": []
  2505. }
  2506. ],
  2507. "consumes": [
  2508. "application/json"
  2509. ],
  2510. "produces": [
  2511. "application/json"
  2512. ],
  2513. "tags": [
  2514. "Jwt"
  2515. ],
  2516. "summary": "jwt加入黑名单",
  2517. "responses": {
  2518. "200": {
  2519. "description": "jwt加入黑名单",
  2520. "schema": {
  2521. "allOf": [
  2522. {
  2523. "$ref": "#/definitions/response.Response"
  2524. },
  2525. {
  2526. "type": "object",
  2527. "properties": {
  2528. "msg": {
  2529. "type": "string"
  2530. }
  2531. }
  2532. }
  2533. ]
  2534. }
  2535. }
  2536. }
  2537. }
  2538. },
  2539. "/menu/addBaseMenu": {
  2540. "post": {
  2541. "security": [
  2542. {
  2543. "ApiKeyAuth": []
  2544. }
  2545. ],
  2546. "consumes": [
  2547. "application/json"
  2548. ],
  2549. "produces": [
  2550. "application/json"
  2551. ],
  2552. "tags": [
  2553. "Menu"
  2554. ],
  2555. "summary": "新增菜单",
  2556. "parameters": [
  2557. {
  2558. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  2559. "name": "data",
  2560. "in": "body",
  2561. "required": true,
  2562. "schema": {
  2563. "$ref": "#/definitions/system.SysBaseMenu"
  2564. }
  2565. }
  2566. ],
  2567. "responses": {
  2568. "200": {
  2569. "description": "新增菜单",
  2570. "schema": {
  2571. "allOf": [
  2572. {
  2573. "$ref": "#/definitions/response.Response"
  2574. },
  2575. {
  2576. "type": "object",
  2577. "properties": {
  2578. "msg": {
  2579. "type": "string"
  2580. }
  2581. }
  2582. }
  2583. ]
  2584. }
  2585. }
  2586. }
  2587. }
  2588. },
  2589. "/menu/addMenuAuthority": {
  2590. "post": {
  2591. "security": [
  2592. {
  2593. "ApiKeyAuth": []
  2594. }
  2595. ],
  2596. "consumes": [
  2597. "application/json"
  2598. ],
  2599. "produces": [
  2600. "application/json"
  2601. ],
  2602. "tags": [
  2603. "AuthorityMenu"
  2604. ],
  2605. "summary": "增加menu和角色关联关系",
  2606. "parameters": [
  2607. {
  2608. "description": "角色ID",
  2609. "name": "data",
  2610. "in": "body",
  2611. "required": true,
  2612. "schema": {
  2613. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  2614. }
  2615. }
  2616. ],
  2617. "responses": {
  2618. "200": {
  2619. "description": "增加menu和角色关联关系",
  2620. "schema": {
  2621. "allOf": [
  2622. {
  2623. "$ref": "#/definitions/response.Response"
  2624. },
  2625. {
  2626. "type": "object",
  2627. "properties": {
  2628. "msg": {
  2629. "type": "string"
  2630. }
  2631. }
  2632. }
  2633. ]
  2634. }
  2635. }
  2636. }
  2637. }
  2638. },
  2639. "/menu/deleteBaseMenu": {
  2640. "post": {
  2641. "security": [
  2642. {
  2643. "ApiKeyAuth": []
  2644. }
  2645. ],
  2646. "consumes": [
  2647. "application/json"
  2648. ],
  2649. "produces": [
  2650. "application/json"
  2651. ],
  2652. "tags": [
  2653. "Menu"
  2654. ],
  2655. "summary": "删除菜单",
  2656. "parameters": [
  2657. {
  2658. "description": "菜单id",
  2659. "name": "data",
  2660. "in": "body",
  2661. "required": true,
  2662. "schema": {
  2663. "$ref": "#/definitions/request.GetById"
  2664. }
  2665. }
  2666. ],
  2667. "responses": {
  2668. "200": {
  2669. "description": "删除菜单",
  2670. "schema": {
  2671. "allOf": [
  2672. {
  2673. "$ref": "#/definitions/response.Response"
  2674. },
  2675. {
  2676. "type": "object",
  2677. "properties": {
  2678. "msg": {
  2679. "type": "string"
  2680. }
  2681. }
  2682. }
  2683. ]
  2684. }
  2685. }
  2686. }
  2687. }
  2688. },
  2689. "/menu/getBaseMenuById": {
  2690. "post": {
  2691. "security": [
  2692. {
  2693. "ApiKeyAuth": []
  2694. }
  2695. ],
  2696. "consumes": [
  2697. "application/json"
  2698. ],
  2699. "produces": [
  2700. "application/json"
  2701. ],
  2702. "tags": [
  2703. "Menu"
  2704. ],
  2705. "summary": "根据id获取菜单",
  2706. "parameters": [
  2707. {
  2708. "description": "菜单id",
  2709. "name": "data",
  2710. "in": "body",
  2711. "required": true,
  2712. "schema": {
  2713. "$ref": "#/definitions/request.GetById"
  2714. }
  2715. }
  2716. ],
  2717. "responses": {
  2718. "200": {
  2719. "description": "根据id获取菜单,返回包括系统菜单列表",
  2720. "schema": {
  2721. "allOf": [
  2722. {
  2723. "$ref": "#/definitions/response.Response"
  2724. },
  2725. {
  2726. "type": "object",
  2727. "properties": {
  2728. "data": {
  2729. "$ref": "#/definitions/response.SysBaseMenuResponse"
  2730. },
  2731. "msg": {
  2732. "type": "string"
  2733. }
  2734. }
  2735. }
  2736. ]
  2737. }
  2738. }
  2739. }
  2740. }
  2741. },
  2742. "/menu/getBaseMenuTree": {
  2743. "post": {
  2744. "security": [
  2745. {
  2746. "ApiKeyAuth": []
  2747. }
  2748. ],
  2749. "produces": [
  2750. "application/json"
  2751. ],
  2752. "tags": [
  2753. "AuthorityMenu"
  2754. ],
  2755. "summary": "获取用户动态路由",
  2756. "parameters": [
  2757. {
  2758. "description": "空",
  2759. "name": "data",
  2760. "in": "body",
  2761. "required": true,
  2762. "schema": {
  2763. "$ref": "#/definitions/request.Empty"
  2764. }
  2765. }
  2766. ],
  2767. "responses": {
  2768. "200": {
  2769. "description": "获取用户动态路由,返回包括系统菜单列表",
  2770. "schema": {
  2771. "allOf": [
  2772. {
  2773. "$ref": "#/definitions/response.Response"
  2774. },
  2775. {
  2776. "type": "object",
  2777. "properties": {
  2778. "data": {
  2779. "$ref": "#/definitions/response.SysBaseMenusResponse"
  2780. },
  2781. "msg": {
  2782. "type": "string"
  2783. }
  2784. }
  2785. }
  2786. ]
  2787. }
  2788. }
  2789. }
  2790. }
  2791. },
  2792. "/menu/getMenu": {
  2793. "post": {
  2794. "security": [
  2795. {
  2796. "ApiKeyAuth": []
  2797. }
  2798. ],
  2799. "produces": [
  2800. "application/json"
  2801. ],
  2802. "tags": [
  2803. "AuthorityMenu"
  2804. ],
  2805. "summary": "获取用户动态路由",
  2806. "parameters": [
  2807. {
  2808. "description": "空",
  2809. "name": "data",
  2810. "in": "body",
  2811. "required": true,
  2812. "schema": {
  2813. "$ref": "#/definitions/request.Empty"
  2814. }
  2815. }
  2816. ],
  2817. "responses": {
  2818. "200": {
  2819. "description": "获取用户动态路由,返回包括系统菜单详情列表",
  2820. "schema": {
  2821. "allOf": [
  2822. {
  2823. "$ref": "#/definitions/response.Response"
  2824. },
  2825. {
  2826. "type": "object",
  2827. "properties": {
  2828. "data": {
  2829. "$ref": "#/definitions/response.SysMenusResponse"
  2830. },
  2831. "msg": {
  2832. "type": "string"
  2833. }
  2834. }
  2835. }
  2836. ]
  2837. }
  2838. }
  2839. }
  2840. }
  2841. },
  2842. "/menu/getMenuAuthority": {
  2843. "post": {
  2844. "security": [
  2845. {
  2846. "ApiKeyAuth": []
  2847. }
  2848. ],
  2849. "consumes": [
  2850. "application/json"
  2851. ],
  2852. "produces": [
  2853. "application/json"
  2854. ],
  2855. "tags": [
  2856. "AuthorityMenu"
  2857. ],
  2858. "summary": "获取指定角色menu",
  2859. "parameters": [
  2860. {
  2861. "description": "角色ID",
  2862. "name": "data",
  2863. "in": "body",
  2864. "required": true,
  2865. "schema": {
  2866. "$ref": "#/definitions/request.GetAuthorityId"
  2867. }
  2868. }
  2869. ],
  2870. "responses": {
  2871. "200": {
  2872. "description": "获取指定角色menu",
  2873. "schema": {
  2874. "allOf": [
  2875. {
  2876. "$ref": "#/definitions/response.Response"
  2877. },
  2878. {
  2879. "type": "object",
  2880. "properties": {
  2881. "data": {
  2882. "type": "object",
  2883. "additionalProperties": true
  2884. },
  2885. "msg": {
  2886. "type": "string"
  2887. }
  2888. }
  2889. }
  2890. ]
  2891. }
  2892. }
  2893. }
  2894. }
  2895. },
  2896. "/menu/getMenuList": {
  2897. "post": {
  2898. "security": [
  2899. {
  2900. "ApiKeyAuth": []
  2901. }
  2902. ],
  2903. "consumes": [
  2904. "application/json"
  2905. ],
  2906. "produces": [
  2907. "application/json"
  2908. ],
  2909. "tags": [
  2910. "Menu"
  2911. ],
  2912. "summary": "分页获取基础menu列表",
  2913. "parameters": [
  2914. {
  2915. "description": "页码, 每页大小",
  2916. "name": "data",
  2917. "in": "body",
  2918. "required": true,
  2919. "schema": {
  2920. "$ref": "#/definitions/request.PageInfo"
  2921. }
  2922. }
  2923. ],
  2924. "responses": {
  2925. "200": {
  2926. "description": "分页获取基础menu列表,返回包括列表,总数,页码,每页数量",
  2927. "schema": {
  2928. "allOf": [
  2929. {
  2930. "$ref": "#/definitions/response.Response"
  2931. },
  2932. {
  2933. "type": "object",
  2934. "properties": {
  2935. "data": {
  2936. "$ref": "#/definitions/response.PageResult"
  2937. },
  2938. "msg": {
  2939. "type": "string"
  2940. }
  2941. }
  2942. }
  2943. ]
  2944. }
  2945. }
  2946. }
  2947. }
  2948. },
  2949. "/menu/updateBaseMenu": {
  2950. "post": {
  2951. "security": [
  2952. {
  2953. "ApiKeyAuth": []
  2954. }
  2955. ],
  2956. "consumes": [
  2957. "application/json"
  2958. ],
  2959. "produces": [
  2960. "application/json"
  2961. ],
  2962. "tags": [
  2963. "Menu"
  2964. ],
  2965. "summary": "更新菜单",
  2966. "parameters": [
  2967. {
  2968. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  2969. "name": "data",
  2970. "in": "body",
  2971. "required": true,
  2972. "schema": {
  2973. "$ref": "#/definitions/system.SysBaseMenu"
  2974. }
  2975. }
  2976. ],
  2977. "responses": {
  2978. "200": {
  2979. "description": "更新菜单",
  2980. "schema": {
  2981. "allOf": [
  2982. {
  2983. "$ref": "#/definitions/response.Response"
  2984. },
  2985. {
  2986. "type": "object",
  2987. "properties": {
  2988. "msg": {
  2989. "type": "string"
  2990. }
  2991. }
  2992. }
  2993. ]
  2994. }
  2995. }
  2996. }
  2997. }
  2998. },
  2999. "/sysDictionary/createSysDictionary": {
  3000. "post": {
  3001. "security": [
  3002. {
  3003. "ApiKeyAuth": []
  3004. }
  3005. ],
  3006. "consumes": [
  3007. "application/json"
  3008. ],
  3009. "produces": [
  3010. "application/json"
  3011. ],
  3012. "tags": [
  3013. "SysDictionary"
  3014. ],
  3015. "summary": "创建SysDictionary",
  3016. "parameters": [
  3017. {
  3018. "description": "SysDictionary模型",
  3019. "name": "data",
  3020. "in": "body",
  3021. "required": true,
  3022. "schema": {
  3023. "$ref": "#/definitions/system.SysDictionary"
  3024. }
  3025. }
  3026. ],
  3027. "responses": {
  3028. "200": {
  3029. "description": "创建SysDictionary",
  3030. "schema": {
  3031. "allOf": [
  3032. {
  3033. "$ref": "#/definitions/response.Response"
  3034. },
  3035. {
  3036. "type": "object",
  3037. "properties": {
  3038. "msg": {
  3039. "type": "string"
  3040. }
  3041. }
  3042. }
  3043. ]
  3044. }
  3045. }
  3046. }
  3047. }
  3048. },
  3049. "/sysDictionary/deleteSysDictionary": {
  3050. "delete": {
  3051. "security": [
  3052. {
  3053. "ApiKeyAuth": []
  3054. }
  3055. ],
  3056. "consumes": [
  3057. "application/json"
  3058. ],
  3059. "produces": [
  3060. "application/json"
  3061. ],
  3062. "tags": [
  3063. "SysDictionary"
  3064. ],
  3065. "summary": "删除SysDictionary",
  3066. "parameters": [
  3067. {
  3068. "description": "SysDictionary模型",
  3069. "name": "data",
  3070. "in": "body",
  3071. "required": true,
  3072. "schema": {
  3073. "$ref": "#/definitions/system.SysDictionary"
  3074. }
  3075. }
  3076. ],
  3077. "responses": {
  3078. "200": {
  3079. "description": "删除SysDictionary",
  3080. "schema": {
  3081. "allOf": [
  3082. {
  3083. "$ref": "#/definitions/response.Response"
  3084. },
  3085. {
  3086. "type": "object",
  3087. "properties": {
  3088. "msg": {
  3089. "type": "string"
  3090. }
  3091. }
  3092. }
  3093. ]
  3094. }
  3095. }
  3096. }
  3097. }
  3098. },
  3099. "/sysDictionary/findSysDictionary": {
  3100. "get": {
  3101. "security": [
  3102. {
  3103. "ApiKeyAuth": []
  3104. }
  3105. ],
  3106. "consumes": [
  3107. "application/json"
  3108. ],
  3109. "produces": [
  3110. "application/json"
  3111. ],
  3112. "tags": [
  3113. "SysDictionary"
  3114. ],
  3115. "summary": "用id查询SysDictionary",
  3116. "parameters": [
  3117. {
  3118. "type": "integer",
  3119. "description": "主键ID",
  3120. "name": "ID",
  3121. "in": "query"
  3122. },
  3123. {
  3124. "type": "string",
  3125. "description": "创建时间",
  3126. "name": "createdAt",
  3127. "in": "query"
  3128. },
  3129. {
  3130. "type": "string",
  3131. "description": "描述",
  3132. "name": "desc",
  3133. "in": "query"
  3134. },
  3135. {
  3136. "type": "string",
  3137. "description": "字典名(中)",
  3138. "name": "name",
  3139. "in": "query"
  3140. },
  3141. {
  3142. "type": "boolean",
  3143. "description": "状态",
  3144. "name": "status",
  3145. "in": "query"
  3146. },
  3147. {
  3148. "type": "string",
  3149. "description": "字典名(英)",
  3150. "name": "type",
  3151. "in": "query"
  3152. },
  3153. {
  3154. "type": "string",
  3155. "description": "更新时间",
  3156. "name": "updatedAt",
  3157. "in": "query"
  3158. }
  3159. ],
  3160. "responses": {
  3161. "200": {
  3162. "description": "用id查询SysDictionary",
  3163. "schema": {
  3164. "allOf": [
  3165. {
  3166. "$ref": "#/definitions/response.Response"
  3167. },
  3168. {
  3169. "type": "object",
  3170. "properties": {
  3171. "data": {
  3172. "type": "object",
  3173. "additionalProperties": true
  3174. },
  3175. "msg": {
  3176. "type": "string"
  3177. }
  3178. }
  3179. }
  3180. ]
  3181. }
  3182. }
  3183. }
  3184. }
  3185. },
  3186. "/sysDictionary/getSysDictionaryList": {
  3187. "get": {
  3188. "security": [
  3189. {
  3190. "ApiKeyAuth": []
  3191. }
  3192. ],
  3193. "consumes": [
  3194. "application/json"
  3195. ],
  3196. "produces": [
  3197. "application/json"
  3198. ],
  3199. "tags": [
  3200. "SysDictionary"
  3201. ],
  3202. "summary": "分页获取SysDictionary列表",
  3203. "responses": {
  3204. "200": {
  3205. "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量",
  3206. "schema": {
  3207. "allOf": [
  3208. {
  3209. "$ref": "#/definitions/response.Response"
  3210. },
  3211. {
  3212. "type": "object",
  3213. "properties": {
  3214. "data": {
  3215. "$ref": "#/definitions/response.PageResult"
  3216. },
  3217. "msg": {
  3218. "type": "string"
  3219. }
  3220. }
  3221. }
  3222. ]
  3223. }
  3224. }
  3225. }
  3226. }
  3227. },
  3228. "/sysDictionary/updateSysDictionary": {
  3229. "put": {
  3230. "security": [
  3231. {
  3232. "ApiKeyAuth": []
  3233. }
  3234. ],
  3235. "consumes": [
  3236. "application/json"
  3237. ],
  3238. "produces": [
  3239. "application/json"
  3240. ],
  3241. "tags": [
  3242. "SysDictionary"
  3243. ],
  3244. "summary": "更新SysDictionary",
  3245. "parameters": [
  3246. {
  3247. "description": "SysDictionary模型",
  3248. "name": "data",
  3249. "in": "body",
  3250. "required": true,
  3251. "schema": {
  3252. "$ref": "#/definitions/system.SysDictionary"
  3253. }
  3254. }
  3255. ],
  3256. "responses": {
  3257. "200": {
  3258. "description": "更新SysDictionary",
  3259. "schema": {
  3260. "allOf": [
  3261. {
  3262. "$ref": "#/definitions/response.Response"
  3263. },
  3264. {
  3265. "type": "object",
  3266. "properties": {
  3267. "msg": {
  3268. "type": "string"
  3269. }
  3270. }
  3271. }
  3272. ]
  3273. }
  3274. }
  3275. }
  3276. }
  3277. },
  3278. "/sysDictionaryDetail/createSysDictionaryDetail": {
  3279. "post": {
  3280. "security": [
  3281. {
  3282. "ApiKeyAuth": []
  3283. }
  3284. ],
  3285. "consumes": [
  3286. "application/json"
  3287. ],
  3288. "produces": [
  3289. "application/json"
  3290. ],
  3291. "tags": [
  3292. "SysDictionaryDetail"
  3293. ],
  3294. "summary": "创建SysDictionaryDetail",
  3295. "parameters": [
  3296. {
  3297. "description": "SysDictionaryDetail模型",
  3298. "name": "data",
  3299. "in": "body",
  3300. "required": true,
  3301. "schema": {
  3302. "$ref": "#/definitions/system.SysDictionaryDetail"
  3303. }
  3304. }
  3305. ],
  3306. "responses": {
  3307. "200": {
  3308. "description": "创建SysDictionaryDetail",
  3309. "schema": {
  3310. "allOf": [
  3311. {
  3312. "$ref": "#/definitions/response.Response"
  3313. },
  3314. {
  3315. "type": "object",
  3316. "properties": {
  3317. "msg": {
  3318. "type": "string"
  3319. }
  3320. }
  3321. }
  3322. ]
  3323. }
  3324. }
  3325. }
  3326. }
  3327. },
  3328. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  3329. "delete": {
  3330. "security": [
  3331. {
  3332. "ApiKeyAuth": []
  3333. }
  3334. ],
  3335. "consumes": [
  3336. "application/json"
  3337. ],
  3338. "produces": [
  3339. "application/json"
  3340. ],
  3341. "tags": [
  3342. "SysDictionaryDetail"
  3343. ],
  3344. "summary": "删除SysDictionaryDetail",
  3345. "parameters": [
  3346. {
  3347. "description": "SysDictionaryDetail模型",
  3348. "name": "data",
  3349. "in": "body",
  3350. "required": true,
  3351. "schema": {
  3352. "$ref": "#/definitions/system.SysDictionaryDetail"
  3353. }
  3354. }
  3355. ],
  3356. "responses": {
  3357. "200": {
  3358. "description": "删除SysDictionaryDetail",
  3359. "schema": {
  3360. "allOf": [
  3361. {
  3362. "$ref": "#/definitions/response.Response"
  3363. },
  3364. {
  3365. "type": "object",
  3366. "properties": {
  3367. "msg": {
  3368. "type": "string"
  3369. }
  3370. }
  3371. }
  3372. ]
  3373. }
  3374. }
  3375. }
  3376. }
  3377. },
  3378. "/sysDictionaryDetail/findSysDictionaryDetail": {
  3379. "get": {
  3380. "security": [
  3381. {
  3382. "ApiKeyAuth": []
  3383. }
  3384. ],
  3385. "consumes": [
  3386. "application/json"
  3387. ],
  3388. "produces": [
  3389. "application/json"
  3390. ],
  3391. "tags": [
  3392. "SysDictionaryDetail"
  3393. ],
  3394. "summary": "用id查询SysDictionaryDetail",
  3395. "parameters": [
  3396. {
  3397. "type": "integer",
  3398. "description": "主键ID",
  3399. "name": "ID",
  3400. "in": "query"
  3401. },
  3402. {
  3403. "type": "string",
  3404. "description": "创建时间",
  3405. "name": "createdAt",
  3406. "in": "query"
  3407. },
  3408. {
  3409. "type": "string",
  3410. "description": "扩展值",
  3411. "name": "extend",
  3412. "in": "query"
  3413. },
  3414. {
  3415. "type": "string",
  3416. "description": "展示值",
  3417. "name": "label",
  3418. "in": "query"
  3419. },
  3420. {
  3421. "type": "integer",
  3422. "description": "排序标记",
  3423. "name": "sort",
  3424. "in": "query"
  3425. },
  3426. {
  3427. "type": "boolean",
  3428. "description": "启用状态",
  3429. "name": "status",
  3430. "in": "query"
  3431. },
  3432. {
  3433. "type": "integer",
  3434. "description": "关联标记",
  3435. "name": "sysDictionaryID",
  3436. "in": "query"
  3437. },
  3438. {
  3439. "type": "string",
  3440. "description": "更新时间",
  3441. "name": "updatedAt",
  3442. "in": "query"
  3443. },
  3444. {
  3445. "type": "integer",
  3446. "description": "字典值",
  3447. "name": "value",
  3448. "in": "query"
  3449. }
  3450. ],
  3451. "responses": {
  3452. "200": {
  3453. "description": "用id查询SysDictionaryDetail",
  3454. "schema": {
  3455. "allOf": [
  3456. {
  3457. "$ref": "#/definitions/response.Response"
  3458. },
  3459. {
  3460. "type": "object",
  3461. "properties": {
  3462. "data": {
  3463. "type": "object",
  3464. "additionalProperties": true
  3465. },
  3466. "msg": {
  3467. "type": "string"
  3468. }
  3469. }
  3470. }
  3471. ]
  3472. }
  3473. }
  3474. }
  3475. }
  3476. },
  3477. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  3478. "get": {
  3479. "security": [
  3480. {
  3481. "ApiKeyAuth": []
  3482. }
  3483. ],
  3484. "consumes": [
  3485. "application/json"
  3486. ],
  3487. "produces": [
  3488. "application/json"
  3489. ],
  3490. "tags": [
  3491. "SysDictionaryDetail"
  3492. ],
  3493. "summary": "分页获取SysDictionaryDetail列表",
  3494. "parameters": [
  3495. {
  3496. "type": "integer",
  3497. "description": "主键ID",
  3498. "name": "ID",
  3499. "in": "query"
  3500. },
  3501. {
  3502. "type": "string",
  3503. "description": "创建时间",
  3504. "name": "createdAt",
  3505. "in": "query"
  3506. },
  3507. {
  3508. "type": "string",
  3509. "description": "扩展值",
  3510. "name": "extend",
  3511. "in": "query"
  3512. },
  3513. {
  3514. "type": "string",
  3515. "description": "关键字",
  3516. "name": "keyword",
  3517. "in": "query"
  3518. },
  3519. {
  3520. "type": "string",
  3521. "description": "展示值",
  3522. "name": "label",
  3523. "in": "query"
  3524. },
  3525. {
  3526. "type": "integer",
  3527. "description": "页码",
  3528. "name": "page",
  3529. "in": "query"
  3530. },
  3531. {
  3532. "type": "integer",
  3533. "description": "每页大小",
  3534. "name": "pageSize",
  3535. "in": "query"
  3536. },
  3537. {
  3538. "type": "integer",
  3539. "description": "排序标记",
  3540. "name": "sort",
  3541. "in": "query"
  3542. },
  3543. {
  3544. "type": "boolean",
  3545. "description": "启用状态",
  3546. "name": "status",
  3547. "in": "query"
  3548. },
  3549. {
  3550. "type": "integer",
  3551. "description": "关联标记",
  3552. "name": "sysDictionaryID",
  3553. "in": "query"
  3554. },
  3555. {
  3556. "type": "string",
  3557. "description": "更新时间",
  3558. "name": "updatedAt",
  3559. "in": "query"
  3560. },
  3561. {
  3562. "type": "integer",
  3563. "description": "字典值",
  3564. "name": "value",
  3565. "in": "query"
  3566. }
  3567. ],
  3568. "responses": {
  3569. "200": {
  3570. "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量",
  3571. "schema": {
  3572. "allOf": [
  3573. {
  3574. "$ref": "#/definitions/response.Response"
  3575. },
  3576. {
  3577. "type": "object",
  3578. "properties": {
  3579. "data": {
  3580. "$ref": "#/definitions/response.PageResult"
  3581. },
  3582. "msg": {
  3583. "type": "string"
  3584. }
  3585. }
  3586. }
  3587. ]
  3588. }
  3589. }
  3590. }
  3591. }
  3592. },
  3593. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  3594. "put": {
  3595. "security": [
  3596. {
  3597. "ApiKeyAuth": []
  3598. }
  3599. ],
  3600. "consumes": [
  3601. "application/json"
  3602. ],
  3603. "produces": [
  3604. "application/json"
  3605. ],
  3606. "tags": [
  3607. "SysDictionaryDetail"
  3608. ],
  3609. "summary": "更新SysDictionaryDetail",
  3610. "parameters": [
  3611. {
  3612. "description": "更新SysDictionaryDetail",
  3613. "name": "data",
  3614. "in": "body",
  3615. "required": true,
  3616. "schema": {
  3617. "$ref": "#/definitions/system.SysDictionaryDetail"
  3618. }
  3619. }
  3620. ],
  3621. "responses": {
  3622. "200": {
  3623. "description": "更新SysDictionaryDetail",
  3624. "schema": {
  3625. "allOf": [
  3626. {
  3627. "$ref": "#/definitions/response.Response"
  3628. },
  3629. {
  3630. "type": "object",
  3631. "properties": {
  3632. "msg": {
  3633. "type": "string"
  3634. }
  3635. }
  3636. }
  3637. ]
  3638. }
  3639. }
  3640. }
  3641. }
  3642. },
  3643. "/sysOperationRecord/createSysOperationRecord": {
  3644. "post": {
  3645. "security": [
  3646. {
  3647. "ApiKeyAuth": []
  3648. }
  3649. ],
  3650. "consumes": [
  3651. "application/json"
  3652. ],
  3653. "produces": [
  3654. "application/json"
  3655. ],
  3656. "tags": [
  3657. "SysOperationRecord"
  3658. ],
  3659. "summary": "创建SysOperationRecord",
  3660. "parameters": [
  3661. {
  3662. "description": "创建SysOperationRecord",
  3663. "name": "data",
  3664. "in": "body",
  3665. "required": true,
  3666. "schema": {
  3667. "$ref": "#/definitions/system.SysOperationRecord"
  3668. }
  3669. }
  3670. ],
  3671. "responses": {
  3672. "200": {
  3673. "description": "创建SysOperationRecord",
  3674. "schema": {
  3675. "allOf": [
  3676. {
  3677. "$ref": "#/definitions/response.Response"
  3678. },
  3679. {
  3680. "type": "object",
  3681. "properties": {
  3682. "msg": {
  3683. "type": "string"
  3684. }
  3685. }
  3686. }
  3687. ]
  3688. }
  3689. }
  3690. }
  3691. }
  3692. },
  3693. "/sysOperationRecord/deleteSysOperationRecord": {
  3694. "delete": {
  3695. "security": [
  3696. {
  3697. "ApiKeyAuth": []
  3698. }
  3699. ],
  3700. "consumes": [
  3701. "application/json"
  3702. ],
  3703. "produces": [
  3704. "application/json"
  3705. ],
  3706. "tags": [
  3707. "SysOperationRecord"
  3708. ],
  3709. "summary": "删除SysOperationRecord",
  3710. "parameters": [
  3711. {
  3712. "description": "SysOperationRecord模型",
  3713. "name": "data",
  3714. "in": "body",
  3715. "required": true,
  3716. "schema": {
  3717. "$ref": "#/definitions/system.SysOperationRecord"
  3718. }
  3719. }
  3720. ],
  3721. "responses": {
  3722. "200": {
  3723. "description": "删除SysOperationRecord",
  3724. "schema": {
  3725. "allOf": [
  3726. {
  3727. "$ref": "#/definitions/response.Response"
  3728. },
  3729. {
  3730. "type": "object",
  3731. "properties": {
  3732. "msg": {
  3733. "type": "string"
  3734. }
  3735. }
  3736. }
  3737. ]
  3738. }
  3739. }
  3740. }
  3741. }
  3742. },
  3743. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  3744. "delete": {
  3745. "security": [
  3746. {
  3747. "ApiKeyAuth": []
  3748. }
  3749. ],
  3750. "consumes": [
  3751. "application/json"
  3752. ],
  3753. "produces": [
  3754. "application/json"
  3755. ],
  3756. "tags": [
  3757. "SysOperationRecord"
  3758. ],
  3759. "summary": "批量删除SysOperationRecord",
  3760. "parameters": [
  3761. {
  3762. "description": "批量删除SysOperationRecord",
  3763. "name": "data",
  3764. "in": "body",
  3765. "required": true,
  3766. "schema": {
  3767. "$ref": "#/definitions/request.IdsReq"
  3768. }
  3769. }
  3770. ],
  3771. "responses": {
  3772. "200": {
  3773. "description": "批量删除SysOperationRecord",
  3774. "schema": {
  3775. "allOf": [
  3776. {
  3777. "$ref": "#/definitions/response.Response"
  3778. },
  3779. {
  3780. "type": "object",
  3781. "properties": {
  3782. "msg": {
  3783. "type": "string"
  3784. }
  3785. }
  3786. }
  3787. ]
  3788. }
  3789. }
  3790. }
  3791. }
  3792. },
  3793. "/sysOperationRecord/findSysOperationRecord": {
  3794. "get": {
  3795. "security": [
  3796. {
  3797. "ApiKeyAuth": []
  3798. }
  3799. ],
  3800. "consumes": [
  3801. "application/json"
  3802. ],
  3803. "produces": [
  3804. "application/json"
  3805. ],
  3806. "tags": [
  3807. "SysOperationRecord"
  3808. ],
  3809. "summary": "用id查询SysOperationRecord",
  3810. "parameters": [
  3811. {
  3812. "type": "integer",
  3813. "description": "主键ID",
  3814. "name": "ID",
  3815. "in": "query"
  3816. },
  3817. {
  3818. "type": "string",
  3819. "description": "代理",
  3820. "name": "agent",
  3821. "in": "query"
  3822. },
  3823. {
  3824. "type": "string",
  3825. "description": "请求Body",
  3826. "name": "body",
  3827. "in": "query"
  3828. },
  3829. {
  3830. "type": "string",
  3831. "description": "创建时间",
  3832. "name": "createdAt",
  3833. "in": "query"
  3834. },
  3835. {
  3836. "type": "string",
  3837. "description": "错误信息",
  3838. "name": "error_message",
  3839. "in": "query"
  3840. },
  3841. {
  3842. "type": "string",
  3843. "description": "请求ip",
  3844. "name": "ip",
  3845. "in": "query"
  3846. },
  3847. {
  3848. "type": "string",
  3849. "description": "延迟",
  3850. "name": "latency",
  3851. "in": "query"
  3852. },
  3853. {
  3854. "type": "string",
  3855. "description": "请求方法",
  3856. "name": "method",
  3857. "in": "query"
  3858. },
  3859. {
  3860. "type": "string",
  3861. "description": "请求路径",
  3862. "name": "path",
  3863. "in": "query"
  3864. },
  3865. {
  3866. "type": "string",
  3867. "description": "响应Body",
  3868. "name": "resp",
  3869. "in": "query"
  3870. },
  3871. {
  3872. "type": "integer",
  3873. "description": "请求状态",
  3874. "name": "status",
  3875. "in": "query"
  3876. },
  3877. {
  3878. "type": "string",
  3879. "description": "更新时间",
  3880. "name": "updatedAt",
  3881. "in": "query"
  3882. },
  3883. {
  3884. "type": "integer",
  3885. "description": "用户id",
  3886. "name": "user_id",
  3887. "in": "query"
  3888. }
  3889. ],
  3890. "responses": {
  3891. "200": {
  3892. "description": "用id查询SysOperationRecord",
  3893. "schema": {
  3894. "allOf": [
  3895. {
  3896. "$ref": "#/definitions/response.Response"
  3897. },
  3898. {
  3899. "type": "object",
  3900. "properties": {
  3901. "data": {
  3902. "type": "object",
  3903. "additionalProperties": true
  3904. },
  3905. "msg": {
  3906. "type": "string"
  3907. }
  3908. }
  3909. }
  3910. ]
  3911. }
  3912. }
  3913. }
  3914. }
  3915. },
  3916. "/sysOperationRecord/getSysOperationRecordList": {
  3917. "get": {
  3918. "security": [
  3919. {
  3920. "ApiKeyAuth": []
  3921. }
  3922. ],
  3923. "consumes": [
  3924. "application/json"
  3925. ],
  3926. "produces": [
  3927. "application/json"
  3928. ],
  3929. "tags": [
  3930. "SysOperationRecord"
  3931. ],
  3932. "summary": "分页获取SysOperationRecord列表",
  3933. "parameters": [
  3934. {
  3935. "type": "integer",
  3936. "description": "主键ID",
  3937. "name": "ID",
  3938. "in": "query"
  3939. },
  3940. {
  3941. "type": "string",
  3942. "description": "代理",
  3943. "name": "agent",
  3944. "in": "query"
  3945. },
  3946. {
  3947. "type": "string",
  3948. "description": "请求Body",
  3949. "name": "body",
  3950. "in": "query"
  3951. },
  3952. {
  3953. "type": "string",
  3954. "description": "创建时间",
  3955. "name": "createdAt",
  3956. "in": "query"
  3957. },
  3958. {
  3959. "type": "string",
  3960. "description": "错误信息",
  3961. "name": "error_message",
  3962. "in": "query"
  3963. },
  3964. {
  3965. "type": "string",
  3966. "description": "请求ip",
  3967. "name": "ip",
  3968. "in": "query"
  3969. },
  3970. {
  3971. "type": "string",
  3972. "description": "关键字",
  3973. "name": "keyword",
  3974. "in": "query"
  3975. },
  3976. {
  3977. "type": "string",
  3978. "description": "延迟",
  3979. "name": "latency",
  3980. "in": "query"
  3981. },
  3982. {
  3983. "type": "string",
  3984. "description": "请求方法",
  3985. "name": "method",
  3986. "in": "query"
  3987. },
  3988. {
  3989. "type": "integer",
  3990. "description": "页码",
  3991. "name": "page",
  3992. "in": "query"
  3993. },
  3994. {
  3995. "type": "integer",
  3996. "description": "每页大小",
  3997. "name": "pageSize",
  3998. "in": "query"
  3999. },
  4000. {
  4001. "type": "string",
  4002. "description": "请求路径",
  4003. "name": "path",
  4004. "in": "query"
  4005. },
  4006. {
  4007. "type": "string",
  4008. "description": "响应Body",
  4009. "name": "resp",
  4010. "in": "query"
  4011. },
  4012. {
  4013. "type": "integer",
  4014. "description": "请求状态",
  4015. "name": "status",
  4016. "in": "query"
  4017. },
  4018. {
  4019. "type": "string",
  4020. "description": "更新时间",
  4021. "name": "updatedAt",
  4022. "in": "query"
  4023. },
  4024. {
  4025. "type": "integer",
  4026. "description": "用户id",
  4027. "name": "user_id",
  4028. "in": "query"
  4029. }
  4030. ],
  4031. "responses": {
  4032. "200": {
  4033. "description": "分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量",
  4034. "schema": {
  4035. "allOf": [
  4036. {
  4037. "$ref": "#/definitions/response.Response"
  4038. },
  4039. {
  4040. "type": "object",
  4041. "properties": {
  4042. "data": {
  4043. "$ref": "#/definitions/response.PageResult"
  4044. },
  4045. "msg": {
  4046. "type": "string"
  4047. }
  4048. }
  4049. }
  4050. ]
  4051. }
  4052. }
  4053. }
  4054. }
  4055. },
  4056. "/system/getServerInfo": {
  4057. "post": {
  4058. "security": [
  4059. {
  4060. "ApiKeyAuth": []
  4061. }
  4062. ],
  4063. "produces": [
  4064. "application/json"
  4065. ],
  4066. "tags": [
  4067. "System"
  4068. ],
  4069. "summary": "获取服务器信息",
  4070. "responses": {
  4071. "200": {
  4072. "description": "获取服务器信息",
  4073. "schema": {
  4074. "allOf": [
  4075. {
  4076. "$ref": "#/definitions/response.Response"
  4077. },
  4078. {
  4079. "type": "object",
  4080. "properties": {
  4081. "data": {
  4082. "type": "object",
  4083. "additionalProperties": true
  4084. },
  4085. "msg": {
  4086. "type": "string"
  4087. }
  4088. }
  4089. }
  4090. ]
  4091. }
  4092. }
  4093. }
  4094. }
  4095. },
  4096. "/system/getSystemConfig": {
  4097. "post": {
  4098. "security": [
  4099. {
  4100. "ApiKeyAuth": []
  4101. }
  4102. ],
  4103. "produces": [
  4104. "application/json"
  4105. ],
  4106. "tags": [
  4107. "System"
  4108. ],
  4109. "summary": "获取配置文件内容",
  4110. "responses": {
  4111. "200": {
  4112. "description": "获取配置文件内容,返回包括系统配置",
  4113. "schema": {
  4114. "allOf": [
  4115. {
  4116. "$ref": "#/definitions/response.Response"
  4117. },
  4118. {
  4119. "type": "object",
  4120. "properties": {
  4121. "data": {
  4122. "$ref": "#/definitions/response.SysConfigResponse"
  4123. },
  4124. "msg": {
  4125. "type": "string"
  4126. }
  4127. }
  4128. }
  4129. ]
  4130. }
  4131. }
  4132. }
  4133. }
  4134. },
  4135. "/system/reloadSystem": {
  4136. "post": {
  4137. "security": [
  4138. {
  4139. "ApiKeyAuth": []
  4140. }
  4141. ],
  4142. "produces": [
  4143. "application/json"
  4144. ],
  4145. "tags": [
  4146. "System"
  4147. ],
  4148. "summary": "重启系统",
  4149. "responses": {
  4150. "200": {
  4151. "description": "重启系统",
  4152. "schema": {
  4153. "allOf": [
  4154. {
  4155. "$ref": "#/definitions/response.Response"
  4156. },
  4157. {
  4158. "type": "object",
  4159. "properties": {
  4160. "msg": {
  4161. "type": "string"
  4162. }
  4163. }
  4164. }
  4165. ]
  4166. }
  4167. }
  4168. }
  4169. }
  4170. },
  4171. "/system/setSystemConfig": {
  4172. "post": {
  4173. "security": [
  4174. {
  4175. "ApiKeyAuth": []
  4176. }
  4177. ],
  4178. "produces": [
  4179. "application/json"
  4180. ],
  4181. "tags": [
  4182. "System"
  4183. ],
  4184. "summary": "设置配置文件内容",
  4185. "parameters": [
  4186. {
  4187. "description": "设置配置文件内容",
  4188. "name": "data",
  4189. "in": "body",
  4190. "required": true,
  4191. "schema": {
  4192. "$ref": "#/definitions/system.System"
  4193. }
  4194. }
  4195. ],
  4196. "responses": {
  4197. "200": {
  4198. "description": "设置配置文件内容",
  4199. "schema": {
  4200. "allOf": [
  4201. {
  4202. "$ref": "#/definitions/response.Response"
  4203. },
  4204. {
  4205. "type": "object",
  4206. "properties": {
  4207. "data": {
  4208. "type": "string"
  4209. }
  4210. }
  4211. }
  4212. ]
  4213. }
  4214. }
  4215. }
  4216. }
  4217. },
  4218. "/user/SetSelfInfo": {
  4219. "put": {
  4220. "security": [
  4221. {
  4222. "ApiKeyAuth": []
  4223. }
  4224. ],
  4225. "consumes": [
  4226. "application/json"
  4227. ],
  4228. "produces": [
  4229. "application/json"
  4230. ],
  4231. "tags": [
  4232. "SysUser"
  4233. ],
  4234. "summary": "设置用户信息",
  4235. "parameters": [
  4236. {
  4237. "description": "ID, 用户名, 昵称, 头像链接",
  4238. "name": "data",
  4239. "in": "body",
  4240. "required": true,
  4241. "schema": {
  4242. "$ref": "#/definitions/system.SysUser"
  4243. }
  4244. }
  4245. ],
  4246. "responses": {
  4247. "200": {
  4248. "description": "设置用户信息",
  4249. "schema": {
  4250. "allOf": [
  4251. {
  4252. "$ref": "#/definitions/response.Response"
  4253. },
  4254. {
  4255. "type": "object",
  4256. "properties": {
  4257. "data": {
  4258. "type": "object",
  4259. "additionalProperties": true
  4260. },
  4261. "msg": {
  4262. "type": "string"
  4263. }
  4264. }
  4265. }
  4266. ]
  4267. }
  4268. }
  4269. }
  4270. }
  4271. },
  4272. "/user/admin_register": {
  4273. "post": {
  4274. "produces": [
  4275. "application/json"
  4276. ],
  4277. "tags": [
  4278. "SysUser"
  4279. ],
  4280. "summary": "用户注册账号",
  4281. "parameters": [
  4282. {
  4283. "description": "用户名, 昵称, 密码, 角色ID",
  4284. "name": "data",
  4285. "in": "body",
  4286. "required": true,
  4287. "schema": {
  4288. "$ref": "#/definitions/request.Register"
  4289. }
  4290. }
  4291. ],
  4292. "responses": {
  4293. "200": {
  4294. "description": "用户注册账号,返回包括用户信息",
  4295. "schema": {
  4296. "allOf": [
  4297. {
  4298. "$ref": "#/definitions/response.Response"
  4299. },
  4300. {
  4301. "type": "object",
  4302. "properties": {
  4303. "data": {
  4304. "$ref": "#/definitions/response.SysUserResponse"
  4305. },
  4306. "msg": {
  4307. "type": "string"
  4308. }
  4309. }
  4310. }
  4311. ]
  4312. }
  4313. }
  4314. }
  4315. }
  4316. },
  4317. "/user/changePassword": {
  4318. "post": {
  4319. "security": [
  4320. {
  4321. "ApiKeyAuth": []
  4322. }
  4323. ],
  4324. "produces": [
  4325. "application/json"
  4326. ],
  4327. "tags": [
  4328. "SysUser"
  4329. ],
  4330. "summary": "用户修改密码",
  4331. "parameters": [
  4332. {
  4333. "description": "用户名, 原密码, 新密码",
  4334. "name": "data",
  4335. "in": "body",
  4336. "required": true,
  4337. "schema": {
  4338. "$ref": "#/definitions/request.ChangePasswordReq"
  4339. }
  4340. }
  4341. ],
  4342. "responses": {
  4343. "200": {
  4344. "description": "用户修改密码",
  4345. "schema": {
  4346. "allOf": [
  4347. {
  4348. "$ref": "#/definitions/response.Response"
  4349. },
  4350. {
  4351. "type": "object",
  4352. "properties": {
  4353. "msg": {
  4354. "type": "string"
  4355. }
  4356. }
  4357. }
  4358. ]
  4359. }
  4360. }
  4361. }
  4362. }
  4363. },
  4364. "/user/deleteUser": {
  4365. "delete": {
  4366. "security": [
  4367. {
  4368. "ApiKeyAuth": []
  4369. }
  4370. ],
  4371. "consumes": [
  4372. "application/json"
  4373. ],
  4374. "produces": [
  4375. "application/json"
  4376. ],
  4377. "tags": [
  4378. "SysUser"
  4379. ],
  4380. "summary": "删除用户",
  4381. "parameters": [
  4382. {
  4383. "description": "用户ID",
  4384. "name": "data",
  4385. "in": "body",
  4386. "required": true,
  4387. "schema": {
  4388. "$ref": "#/definitions/request.GetById"
  4389. }
  4390. }
  4391. ],
  4392. "responses": {
  4393. "200": {
  4394. "description": "删除用户",
  4395. "schema": {
  4396. "allOf": [
  4397. {
  4398. "$ref": "#/definitions/response.Response"
  4399. },
  4400. {
  4401. "type": "object",
  4402. "properties": {
  4403. "msg": {
  4404. "type": "string"
  4405. }
  4406. }
  4407. }
  4408. ]
  4409. }
  4410. }
  4411. }
  4412. }
  4413. },
  4414. "/user/getUserInfo": {
  4415. "get": {
  4416. "security": [
  4417. {
  4418. "ApiKeyAuth": []
  4419. }
  4420. ],
  4421. "consumes": [
  4422. "application/json"
  4423. ],
  4424. "produces": [
  4425. "application/json"
  4426. ],
  4427. "tags": [
  4428. "SysUser"
  4429. ],
  4430. "summary": "获取用户信息",
  4431. "responses": {
  4432. "200": {
  4433. "description": "获取用户信息",
  4434. "schema": {
  4435. "allOf": [
  4436. {
  4437. "$ref": "#/definitions/response.Response"
  4438. },
  4439. {
  4440. "type": "object",
  4441. "properties": {
  4442. "data": {
  4443. "type": "object",
  4444. "additionalProperties": true
  4445. },
  4446. "msg": {
  4447. "type": "string"
  4448. }
  4449. }
  4450. }
  4451. ]
  4452. }
  4453. }
  4454. }
  4455. }
  4456. },
  4457. "/user/getUserList": {
  4458. "post": {
  4459. "security": [
  4460. {
  4461. "ApiKeyAuth": []
  4462. }
  4463. ],
  4464. "consumes": [
  4465. "application/json"
  4466. ],
  4467. "produces": [
  4468. "application/json"
  4469. ],
  4470. "tags": [
  4471. "SysUser"
  4472. ],
  4473. "summary": "分页获取用户列表",
  4474. "parameters": [
  4475. {
  4476. "description": "页码, 每页大小",
  4477. "name": "data",
  4478. "in": "body",
  4479. "required": true,
  4480. "schema": {
  4481. "$ref": "#/definitions/request.PageInfo"
  4482. }
  4483. }
  4484. ],
  4485. "responses": {
  4486. "200": {
  4487. "description": "分页获取用户列表,返回包括列表,总数,页码,每页数量",
  4488. "schema": {
  4489. "allOf": [
  4490. {
  4491. "$ref": "#/definitions/response.Response"
  4492. },
  4493. {
  4494. "type": "object",
  4495. "properties": {
  4496. "data": {
  4497. "$ref": "#/definitions/response.PageResult"
  4498. },
  4499. "msg": {
  4500. "type": "string"
  4501. }
  4502. }
  4503. }
  4504. ]
  4505. }
  4506. }
  4507. }
  4508. }
  4509. },
  4510. "/user/resetPassword": {
  4511. "post": {
  4512. "security": [
  4513. {
  4514. "ApiKeyAuth": []
  4515. }
  4516. ],
  4517. "produces": [
  4518. "application/json"
  4519. ],
  4520. "tags": [
  4521. "SysUser"
  4522. ],
  4523. "summary": "重置用户密码",
  4524. "parameters": [
  4525. {
  4526. "description": "ID",
  4527. "name": "data",
  4528. "in": "body",
  4529. "required": true,
  4530. "schema": {
  4531. "$ref": "#/definitions/system.SysUser"
  4532. }
  4533. }
  4534. ],
  4535. "responses": {
  4536. "200": {
  4537. "description": "重置用户密码",
  4538. "schema": {
  4539. "allOf": [
  4540. {
  4541. "$ref": "#/definitions/response.Response"
  4542. },
  4543. {
  4544. "type": "object",
  4545. "properties": {
  4546. "msg": {
  4547. "type": "string"
  4548. }
  4549. }
  4550. }
  4551. ]
  4552. }
  4553. }
  4554. }
  4555. }
  4556. },
  4557. "/user/setUserAuthorities": {
  4558. "post": {
  4559. "security": [
  4560. {
  4561. "ApiKeyAuth": []
  4562. }
  4563. ],
  4564. "consumes": [
  4565. "application/json"
  4566. ],
  4567. "produces": [
  4568. "application/json"
  4569. ],
  4570. "tags": [
  4571. "SysUser"
  4572. ],
  4573. "summary": "设置用户权限",
  4574. "parameters": [
  4575. {
  4576. "description": "用户UUID, 角色ID",
  4577. "name": "data",
  4578. "in": "body",
  4579. "required": true,
  4580. "schema": {
  4581. "$ref": "#/definitions/request.SetUserAuthorities"
  4582. }
  4583. }
  4584. ],
  4585. "responses": {
  4586. "200": {
  4587. "description": "设置用户权限",
  4588. "schema": {
  4589. "allOf": [
  4590. {
  4591. "$ref": "#/definitions/response.Response"
  4592. },
  4593. {
  4594. "type": "object",
  4595. "properties": {
  4596. "msg": {
  4597. "type": "string"
  4598. }
  4599. }
  4600. }
  4601. ]
  4602. }
  4603. }
  4604. }
  4605. }
  4606. },
  4607. "/user/setUserAuthority": {
  4608. "post": {
  4609. "security": [
  4610. {
  4611. "ApiKeyAuth": []
  4612. }
  4613. ],
  4614. "consumes": [
  4615. "application/json"
  4616. ],
  4617. "produces": [
  4618. "application/json"
  4619. ],
  4620. "tags": [
  4621. "SysUser"
  4622. ],
  4623. "summary": "更改用户权限",
  4624. "parameters": [
  4625. {
  4626. "description": "用户UUID, 角色ID",
  4627. "name": "data",
  4628. "in": "body",
  4629. "required": true,
  4630. "schema": {
  4631. "$ref": "#/definitions/request.SetUserAuth"
  4632. }
  4633. }
  4634. ],
  4635. "responses": {
  4636. "200": {
  4637. "description": "设置用户权限",
  4638. "schema": {
  4639. "allOf": [
  4640. {
  4641. "$ref": "#/definitions/response.Response"
  4642. },
  4643. {
  4644. "type": "object",
  4645. "properties": {
  4646. "msg": {
  4647. "type": "string"
  4648. }
  4649. }
  4650. }
  4651. ]
  4652. }
  4653. }
  4654. }
  4655. }
  4656. },
  4657. "/user/setUserInfo": {
  4658. "put": {
  4659. "security": [
  4660. {
  4661. "ApiKeyAuth": []
  4662. }
  4663. ],
  4664. "consumes": [
  4665. "application/json"
  4666. ],
  4667. "produces": [
  4668. "application/json"
  4669. ],
  4670. "tags": [
  4671. "SysUser"
  4672. ],
  4673. "summary": "设置用户信息",
  4674. "parameters": [
  4675. {
  4676. "description": "ID, 用户名, 昵称, 头像链接",
  4677. "name": "data",
  4678. "in": "body",
  4679. "required": true,
  4680. "schema": {
  4681. "$ref": "#/definitions/system.SysUser"
  4682. }
  4683. }
  4684. ],
  4685. "responses": {
  4686. "200": {
  4687. "description": "设置用户信息",
  4688. "schema": {
  4689. "allOf": [
  4690. {
  4691. "$ref": "#/definitions/response.Response"
  4692. },
  4693. {
  4694. "type": "object",
  4695. "properties": {
  4696. "data": {
  4697. "type": "object",
  4698. "additionalProperties": true
  4699. },
  4700. "msg": {
  4701. "type": "string"
  4702. }
  4703. }
  4704. }
  4705. ]
  4706. }
  4707. }
  4708. }
  4709. }
  4710. }
  4711. },
  4712. "definitions": {
  4713. "config.AliyunOSS": {
  4714. "type": "object",
  4715. "properties": {
  4716. "access-key-id": {
  4717. "type": "string"
  4718. },
  4719. "access-key-secret": {
  4720. "type": "string"
  4721. },
  4722. "base-path": {
  4723. "type": "string"
  4724. },
  4725. "bucket-name": {
  4726. "type": "string"
  4727. },
  4728. "bucket-url": {
  4729. "type": "string"
  4730. },
  4731. "endpoint": {
  4732. "type": "string"
  4733. }
  4734. }
  4735. },
  4736. "config.Autocode": {
  4737. "type": "object",
  4738. "properties": {
  4739. "root": {
  4740. "type": "string"
  4741. },
  4742. "server": {
  4743. "type": "string"
  4744. },
  4745. "server-api": {
  4746. "type": "string"
  4747. },
  4748. "server-initialize": {
  4749. "type": "string"
  4750. },
  4751. "server-model": {
  4752. "type": "string"
  4753. },
  4754. "server-plug": {
  4755. "type": "string"
  4756. },
  4757. "server-request": {
  4758. "type": "string"
  4759. },
  4760. "server-router": {
  4761. "type": "string"
  4762. },
  4763. "server-service": {
  4764. "type": "string"
  4765. },
  4766. "transfer-restart": {
  4767. "type": "boolean"
  4768. },
  4769. "web": {
  4770. "type": "string"
  4771. },
  4772. "web-api": {
  4773. "type": "string"
  4774. },
  4775. "web-form": {
  4776. "type": "string"
  4777. },
  4778. "web-table": {
  4779. "type": "string"
  4780. }
  4781. }
  4782. },
  4783. "config.AwsS3": {
  4784. "type": "object",
  4785. "properties": {
  4786. "base-url": {
  4787. "type": "string"
  4788. },
  4789. "bucket": {
  4790. "type": "string"
  4791. },
  4792. "disable-ssl": {
  4793. "type": "boolean"
  4794. },
  4795. "endpoint": {
  4796. "type": "string"
  4797. },
  4798. "path-prefix": {
  4799. "type": "string"
  4800. },
  4801. "region": {
  4802. "type": "string"
  4803. },
  4804. "s3-force-path-style": {
  4805. "type": "boolean"
  4806. },
  4807. "secret-id": {
  4808. "type": "string"
  4809. },
  4810. "secret-key": {
  4811. "type": "string"
  4812. }
  4813. }
  4814. },
  4815. "config.CORS": {
  4816. "type": "object",
  4817. "properties": {
  4818. "mode": {
  4819. "type": "string"
  4820. },
  4821. "whitelist": {
  4822. "type": "array",
  4823. "items": {
  4824. "$ref": "#/definitions/config.CORSWhitelist"
  4825. }
  4826. }
  4827. }
  4828. },
  4829. "config.CORSWhitelist": {
  4830. "type": "object",
  4831. "properties": {
  4832. "allow-credentials": {
  4833. "type": "boolean"
  4834. },
  4835. "allow-headers": {
  4836. "type": "string"
  4837. },
  4838. "allow-methods": {
  4839. "type": "string"
  4840. },
  4841. "allow-origin": {
  4842. "type": "string"
  4843. },
  4844. "expose-headers": {
  4845. "type": "string"
  4846. }
  4847. }
  4848. },
  4849. "config.Captcha": {
  4850. "type": "object",
  4851. "properties": {
  4852. "img-height": {
  4853. "description": "验证码高度",
  4854. "type": "integer"
  4855. },
  4856. "img-width": {
  4857. "description": "验证码宽度",
  4858. "type": "integer"
  4859. },
  4860. "key-long": {
  4861. "description": "验证码长度",
  4862. "type": "integer"
  4863. },
  4864. "open-captcha": {
  4865. "description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码",
  4866. "type": "integer"
  4867. },
  4868. "open-captcha-timeout": {
  4869. "description": "防爆破验证码超时时间,单位:s(秒)",
  4870. "type": "integer"
  4871. }
  4872. }
  4873. },
  4874. "config.Excel": {
  4875. "type": "object",
  4876. "properties": {
  4877. "dir": {
  4878. "type": "string"
  4879. }
  4880. }
  4881. },
  4882. "config.HuaWeiObs": {
  4883. "type": "object",
  4884. "properties": {
  4885. "access-key": {
  4886. "type": "string"
  4887. },
  4888. "bucket": {
  4889. "type": "string"
  4890. },
  4891. "endpoint": {
  4892. "type": "string"
  4893. },
  4894. "path": {
  4895. "type": "string"
  4896. },
  4897. "secret-key": {
  4898. "type": "string"
  4899. }
  4900. }
  4901. },
  4902. "config.JWT": {
  4903. "type": "object",
  4904. "properties": {
  4905. "buffer-time": {
  4906. "description": "缓冲时间",
  4907. "type": "string"
  4908. },
  4909. "expires-time": {
  4910. "description": "过期时间",
  4911. "type": "string"
  4912. },
  4913. "issuer": {
  4914. "description": "签发者",
  4915. "type": "string"
  4916. },
  4917. "signing-key": {
  4918. "description": "jwt签名",
  4919. "type": "string"
  4920. }
  4921. }
  4922. },
  4923. "config.Local": {
  4924. "type": "object",
  4925. "properties": {
  4926. "path": {
  4927. "description": "本地文件访问路径",
  4928. "type": "string"
  4929. },
  4930. "store-path": {
  4931. "description": "本地文件存储路径",
  4932. "type": "string"
  4933. }
  4934. }
  4935. },
  4936. "config.Mongo": {
  4937. "type": "object",
  4938. "properties": {
  4939. "coll": {
  4940. "description": "collection name",
  4941. "type": "string"
  4942. },
  4943. "connect-timeout-ms": {
  4944. "description": "连接超时时间",
  4945. "type": "integer"
  4946. },
  4947. "database": {
  4948. "description": "database name",
  4949. "type": "string"
  4950. },
  4951. "hosts": {
  4952. "description": "主机列表",
  4953. "type": "array",
  4954. "items": {
  4955. "$ref": "#/definitions/config.MongoHost"
  4956. }
  4957. },
  4958. "is-zap": {
  4959. "description": "是否开启zap日志",
  4960. "type": "boolean"
  4961. },
  4962. "max-pool-size": {
  4963. "description": "最大连接池",
  4964. "type": "integer"
  4965. },
  4966. "min-pool-size": {
  4967. "description": "最小连接池",
  4968. "type": "integer"
  4969. },
  4970. "options": {
  4971. "description": "mongodb options",
  4972. "type": "string"
  4973. },
  4974. "password": {
  4975. "description": "密码",
  4976. "type": "string"
  4977. },
  4978. "socket-timeout-ms": {
  4979. "description": "socket超时时间",
  4980. "type": "integer"
  4981. },
  4982. "username": {
  4983. "description": "用户名",
  4984. "type": "string"
  4985. }
  4986. }
  4987. },
  4988. "config.MongoHost": {
  4989. "type": "object",
  4990. "properties": {
  4991. "host": {
  4992. "description": "ip地址",
  4993. "type": "string"
  4994. },
  4995. "port": {
  4996. "description": "端口",
  4997. "type": "string"
  4998. }
  4999. }
  5000. },
  5001. "config.Mssql": {
  5002. "type": "object",
  5003. "properties": {
  5004. "config": {
  5005. "description": "高级配置",
  5006. "type": "string"
  5007. },
  5008. "db-name": {
  5009. "description": "数据库名",
  5010. "type": "string"
  5011. },
  5012. "engine": {
  5013. "description": "数据库引擎,默认InnoDB",
  5014. "type": "string",
  5015. "default": "InnoDB"
  5016. },
  5017. "log-mode": {
  5018. "description": "是否开启Gorm全局日志",
  5019. "type": "string"
  5020. },
  5021. "log-zap": {
  5022. "description": "是否通过zap写入日志文件",
  5023. "type": "boolean"
  5024. },
  5025. "max-idle-conns": {
  5026. "description": "空闲中的最大连接数",
  5027. "type": "integer"
  5028. },
  5029. "max-open-conns": {
  5030. "description": "打开到数据库的最大连接数",
  5031. "type": "integer"
  5032. },
  5033. "password": {
  5034. "description": "数据库密码",
  5035. "type": "string"
  5036. },
  5037. "path": {
  5038. "type": "string"
  5039. },
  5040. "port": {
  5041. "type": "string"
  5042. },
  5043. "prefix": {
  5044. "type": "string"
  5045. },
  5046. "singular": {
  5047. "description": "是否开启全局禁用复数,true表示开启",
  5048. "type": "boolean"
  5049. },
  5050. "username": {
  5051. "description": "数据库密码",
  5052. "type": "string"
  5053. }
  5054. }
  5055. },
  5056. "config.Mysql": {
  5057. "type": "object",
  5058. "properties": {
  5059. "config": {
  5060. "description": "高级配置",
  5061. "type": "string"
  5062. },
  5063. "db-name": {
  5064. "description": "数据库名",
  5065. "type": "string"
  5066. },
  5067. "engine": {
  5068. "description": "数据库引擎,默认InnoDB",
  5069. "type": "string",
  5070. "default": "InnoDB"
  5071. },
  5072. "log-mode": {
  5073. "description": "是否开启Gorm全局日志",
  5074. "type": "string"
  5075. },
  5076. "log-zap": {
  5077. "description": "是否通过zap写入日志文件",
  5078. "type": "boolean"
  5079. },
  5080. "max-idle-conns": {
  5081. "description": "空闲中的最大连接数",
  5082. "type": "integer"
  5083. },
  5084. "max-open-conns": {
  5085. "description": "打开到数据库的最大连接数",
  5086. "type": "integer"
  5087. },
  5088. "password": {
  5089. "description": "数据库密码",
  5090. "type": "string"
  5091. },
  5092. "path": {
  5093. "type": "string"
  5094. },
  5095. "port": {
  5096. "type": "string"
  5097. },
  5098. "prefix": {
  5099. "type": "string"
  5100. },
  5101. "singular": {
  5102. "description": "是否开启全局禁用复数,true表示开启",
  5103. "type": "boolean"
  5104. },
  5105. "username": {
  5106. "description": "数据库密码",
  5107. "type": "string"
  5108. }
  5109. }
  5110. },
  5111. "config.Oracle": {
  5112. "type": "object",
  5113. "properties": {
  5114. "config": {
  5115. "description": "高级配置",
  5116. "type": "string"
  5117. },
  5118. "db-name": {
  5119. "description": "数据库名",
  5120. "type": "string"
  5121. },
  5122. "engine": {
  5123. "description": "数据库引擎,默认InnoDB",
  5124. "type": "string",
  5125. "default": "InnoDB"
  5126. },
  5127. "log-mode": {
  5128. "description": "是否开启Gorm全局日志",
  5129. "type": "string"
  5130. },
  5131. "log-zap": {
  5132. "description": "是否通过zap写入日志文件",
  5133. "type": "boolean"
  5134. },
  5135. "max-idle-conns": {
  5136. "description": "空闲中的最大连接数",
  5137. "type": "integer"
  5138. },
  5139. "max-open-conns": {
  5140. "description": "打开到数据库的最大连接数",
  5141. "type": "integer"
  5142. },
  5143. "password": {
  5144. "description": "数据库密码",
  5145. "type": "string"
  5146. },
  5147. "path": {
  5148. "type": "string"
  5149. },
  5150. "port": {
  5151. "type": "string"
  5152. },
  5153. "prefix": {
  5154. "type": "string"
  5155. },
  5156. "singular": {
  5157. "description": "是否开启全局禁用复数,true表示开启",
  5158. "type": "boolean"
  5159. },
  5160. "username": {
  5161. "description": "数据库密码",
  5162. "type": "string"
  5163. }
  5164. }
  5165. },
  5166. "config.Pgsql": {
  5167. "type": "object",
  5168. "properties": {
  5169. "config": {
  5170. "description": "高级配置",
  5171. "type": "string"
  5172. },
  5173. "db-name": {
  5174. "description": "数据库名",
  5175. "type": "string"
  5176. },
  5177. "engine": {
  5178. "description": "数据库引擎,默认InnoDB",
  5179. "type": "string",
  5180. "default": "InnoDB"
  5181. },
  5182. "log-mode": {
  5183. "description": "是否开启Gorm全局日志",
  5184. "type": "string"
  5185. },
  5186. "log-zap": {
  5187. "description": "是否通过zap写入日志文件",
  5188. "type": "boolean"
  5189. },
  5190. "max-idle-conns": {
  5191. "description": "空闲中的最大连接数",
  5192. "type": "integer"
  5193. },
  5194. "max-open-conns": {
  5195. "description": "打开到数据库的最大连接数",
  5196. "type": "integer"
  5197. },
  5198. "password": {
  5199. "description": "数据库密码",
  5200. "type": "string"
  5201. },
  5202. "path": {
  5203. "type": "string"
  5204. },
  5205. "port": {
  5206. "type": "string"
  5207. },
  5208. "prefix": {
  5209. "type": "string"
  5210. },
  5211. "singular": {
  5212. "description": "是否开启全局禁用复数,true表示开启",
  5213. "type": "boolean"
  5214. },
  5215. "username": {
  5216. "description": "数据库密码",
  5217. "type": "string"
  5218. }
  5219. }
  5220. },
  5221. "config.Qiniu": {
  5222. "type": "object",
  5223. "properties": {
  5224. "access-key": {
  5225. "description": "秘钥AK",
  5226. "type": "string"
  5227. },
  5228. "bucket": {
  5229. "description": "空间名称",
  5230. "type": "string"
  5231. },
  5232. "img-path": {
  5233. "description": "CDN加速域名",
  5234. "type": "string"
  5235. },
  5236. "secret-key": {
  5237. "description": "秘钥SK",
  5238. "type": "string"
  5239. },
  5240. "use-cdn-domains": {
  5241. "description": "上传是否使用CDN上传加速",
  5242. "type": "boolean"
  5243. },
  5244. "use-https": {
  5245. "description": "是否使用https",
  5246. "type": "boolean"
  5247. },
  5248. "zone": {
  5249. "description": "存储区域",
  5250. "type": "string"
  5251. }
  5252. }
  5253. },
  5254. "config.Redis": {
  5255. "type": "object",
  5256. "properties": {
  5257. "addr": {
  5258. "description": "服务器地址:端口",
  5259. "type": "string"
  5260. },
  5261. "db": {
  5262. "description": "redis的哪个数据库",
  5263. "type": "integer"
  5264. },
  5265. "password": {
  5266. "description": "密码",
  5267. "type": "string"
  5268. }
  5269. }
  5270. },
  5271. "config.Server": {
  5272. "type": "object",
  5273. "properties": {
  5274. "aliyun-oss": {
  5275. "$ref": "#/definitions/config.AliyunOSS"
  5276. },
  5277. "autocode": {
  5278. "description": "auto",
  5279. "allOf": [
  5280. {
  5281. "$ref": "#/definitions/config.Autocode"
  5282. }
  5283. ]
  5284. },
  5285. "aws-s3": {
  5286. "$ref": "#/definitions/config.AwsS3"
  5287. },
  5288. "captcha": {
  5289. "$ref": "#/definitions/config.Captcha"
  5290. },
  5291. "cors": {
  5292. "description": "跨域配置",
  5293. "allOf": [
  5294. {
  5295. "$ref": "#/definitions/config.CORS"
  5296. }
  5297. ]
  5298. },
  5299. "db-list": {
  5300. "type": "array",
  5301. "items": {
  5302. "$ref": "#/definitions/config.SpecializedDB"
  5303. }
  5304. },
  5305. "email": {
  5306. "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email"
  5307. },
  5308. "excel": {
  5309. "$ref": "#/definitions/config.Excel"
  5310. },
  5311. "hua-wei-obs": {
  5312. "$ref": "#/definitions/config.HuaWeiObs"
  5313. },
  5314. "jwt": {
  5315. "$ref": "#/definitions/config.JWT"
  5316. },
  5317. "local": {
  5318. "description": "oss",
  5319. "allOf": [
  5320. {
  5321. "$ref": "#/definitions/config.Local"
  5322. }
  5323. ]
  5324. },
  5325. "mongo": {
  5326. "$ref": "#/definitions/config.Mongo"
  5327. },
  5328. "mssql": {
  5329. "$ref": "#/definitions/config.Mssql"
  5330. },
  5331. "mysql": {
  5332. "description": "gorm",
  5333. "allOf": [
  5334. {
  5335. "$ref": "#/definitions/config.Mysql"
  5336. }
  5337. ]
  5338. },
  5339. "oracle": {
  5340. "$ref": "#/definitions/config.Oracle"
  5341. },
  5342. "pgsql": {
  5343. "$ref": "#/definitions/config.Pgsql"
  5344. },
  5345. "qiniu": {
  5346. "$ref": "#/definitions/config.Qiniu"
  5347. },
  5348. "redis": {
  5349. "$ref": "#/definitions/config.Redis"
  5350. },
  5351. "sqlite": {
  5352. "$ref": "#/definitions/config.Sqlite"
  5353. },
  5354. "system": {
  5355. "$ref": "#/definitions/config.System"
  5356. },
  5357. "tencent-cos": {
  5358. "$ref": "#/definitions/config.TencentCOS"
  5359. },
  5360. "zap": {
  5361. "$ref": "#/definitions/config.Zap"
  5362. }
  5363. }
  5364. },
  5365. "config.SpecializedDB": {
  5366. "type": "object",
  5367. "properties": {
  5368. "alias-name": {
  5369. "type": "string"
  5370. },
  5371. "config": {
  5372. "description": "高级配置",
  5373. "type": "string"
  5374. },
  5375. "db-name": {
  5376. "description": "数据库名",
  5377. "type": "string"
  5378. },
  5379. "disable": {
  5380. "type": "boolean"
  5381. },
  5382. "engine": {
  5383. "description": "数据库引擎,默认InnoDB",
  5384. "type": "string",
  5385. "default": "InnoDB"
  5386. },
  5387. "log-mode": {
  5388. "description": "是否开启Gorm全局日志",
  5389. "type": "string"
  5390. },
  5391. "log-zap": {
  5392. "description": "是否通过zap写入日志文件",
  5393. "type": "boolean"
  5394. },
  5395. "max-idle-conns": {
  5396. "description": "空闲中的最大连接数",
  5397. "type": "integer"
  5398. },
  5399. "max-open-conns": {
  5400. "description": "打开到数据库的最大连接数",
  5401. "type": "integer"
  5402. },
  5403. "password": {
  5404. "description": "数据库密码",
  5405. "type": "string"
  5406. },
  5407. "path": {
  5408. "type": "string"
  5409. },
  5410. "port": {
  5411. "type": "string"
  5412. },
  5413. "prefix": {
  5414. "type": "string"
  5415. },
  5416. "singular": {
  5417. "description": "是否开启全局禁用复数,true表示开启",
  5418. "type": "boolean"
  5419. },
  5420. "type": {
  5421. "type": "string"
  5422. },
  5423. "username": {
  5424. "description": "数据库密码",
  5425. "type": "string"
  5426. }
  5427. }
  5428. },
  5429. "config.Sqlite": {
  5430. "type": "object",
  5431. "properties": {
  5432. "config": {
  5433. "description": "高级配置",
  5434. "type": "string"
  5435. },
  5436. "db-name": {
  5437. "description": "数据库名",
  5438. "type": "string"
  5439. },
  5440. "engine": {
  5441. "description": "数据库引擎,默认InnoDB",
  5442. "type": "string",
  5443. "default": "InnoDB"
  5444. },
  5445. "log-mode": {
  5446. "description": "是否开启Gorm全局日志",
  5447. "type": "string"
  5448. },
  5449. "log-zap": {
  5450. "description": "是否通过zap写入日志文件",
  5451. "type": "boolean"
  5452. },
  5453. "max-idle-conns": {
  5454. "description": "空闲中的最大连接数",
  5455. "type": "integer"
  5456. },
  5457. "max-open-conns": {
  5458. "description": "打开到数据库的最大连接数",
  5459. "type": "integer"
  5460. },
  5461. "password": {
  5462. "description": "数据库密码",
  5463. "type": "string"
  5464. },
  5465. "path": {
  5466. "type": "string"
  5467. },
  5468. "port": {
  5469. "type": "string"
  5470. },
  5471. "prefix": {
  5472. "type": "string"
  5473. },
  5474. "singular": {
  5475. "description": "是否开启全局禁用复数,true表示开启",
  5476. "type": "boolean"
  5477. },
  5478. "username": {
  5479. "description": "数据库密码",
  5480. "type": "string"
  5481. }
  5482. }
  5483. },
  5484. "config.System": {
  5485. "type": "object",
  5486. "properties": {
  5487. "addr": {
  5488. "description": "端口值",
  5489. "type": "integer"
  5490. },
  5491. "db-type": {
  5492. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  5493. "type": "string"
  5494. },
  5495. "env": {
  5496. "description": "环境值",
  5497. "type": "string"
  5498. },
  5499. "iplimit-count": {
  5500. "type": "integer"
  5501. },
  5502. "iplimit-time": {
  5503. "type": "integer"
  5504. },
  5505. "oss-type": {
  5506. "description": "Oss类型",
  5507. "type": "string"
  5508. },
  5509. "router-prefix": {
  5510. "type": "string"
  5511. },
  5512. "use-mongo": {
  5513. "description": "使用redis",
  5514. "type": "boolean"
  5515. },
  5516. "use-multipoint": {
  5517. "description": "多点登录拦截",
  5518. "type": "boolean"
  5519. },
  5520. "use-redis": {
  5521. "description": "使用redis",
  5522. "type": "boolean"
  5523. }
  5524. }
  5525. },
  5526. "config.TencentCOS": {
  5527. "type": "object",
  5528. "properties": {
  5529. "base-url": {
  5530. "type": "string"
  5531. },
  5532. "bucket": {
  5533. "type": "string"
  5534. },
  5535. "path-prefix": {
  5536. "type": "string"
  5537. },
  5538. "region": {
  5539. "type": "string"
  5540. },
  5541. "secret-id": {
  5542. "type": "string"
  5543. },
  5544. "secret-key": {
  5545. "type": "string"
  5546. }
  5547. }
  5548. },
  5549. "config.Zap": {
  5550. "type": "object",
  5551. "properties": {
  5552. "director": {
  5553. "description": "日志文件夹",
  5554. "type": "string"
  5555. },
  5556. "encode-level": {
  5557. "description": "编码级",
  5558. "type": "string"
  5559. },
  5560. "format": {
  5561. "description": "输出",
  5562. "type": "string"
  5563. },
  5564. "level": {
  5565. "description": "级别",
  5566. "type": "string"
  5567. },
  5568. "log-in-console": {
  5569. "description": "输出控制台",
  5570. "type": "boolean"
  5571. },
  5572. "max-age": {
  5573. "description": "日志留存时间",
  5574. "type": "integer"
  5575. },
  5576. "prefix": {
  5577. "description": "日志前缀",
  5578. "type": "string"
  5579. },
  5580. "show-line": {
  5581. "description": "显示行",
  5582. "type": "boolean"
  5583. },
  5584. "stacktrace-key": {
  5585. "description": "栈名",
  5586. "type": "string"
  5587. }
  5588. }
  5589. },
  5590. "example.ExaCustomer": {
  5591. "type": "object",
  5592. "properties": {
  5593. "ID": {
  5594. "description": "主键ID",
  5595. "type": "integer"
  5596. },
  5597. "createdAt": {
  5598. "description": "创建时间",
  5599. "type": "string"
  5600. },
  5601. "customerName": {
  5602. "description": "客户名",
  5603. "type": "string"
  5604. },
  5605. "customerPhoneData": {
  5606. "description": "客户手机号",
  5607. "type": "string"
  5608. },
  5609. "sysUser": {
  5610. "description": "管理详情",
  5611. "allOf": [
  5612. {
  5613. "$ref": "#/definitions/system.SysUser"
  5614. }
  5615. ]
  5616. },
  5617. "sysUserAuthorityID": {
  5618. "description": "管理角色ID",
  5619. "type": "integer"
  5620. },
  5621. "sysUserId": {
  5622. "description": "管理ID",
  5623. "type": "integer"
  5624. },
  5625. "updatedAt": {
  5626. "description": "更新时间",
  5627. "type": "string"
  5628. }
  5629. }
  5630. },
  5631. "example.ExaFile": {
  5632. "type": "object",
  5633. "properties": {
  5634. "ID": {
  5635. "description": "主键ID",
  5636. "type": "integer"
  5637. },
  5638. "chunkTotal": {
  5639. "type": "integer"
  5640. },
  5641. "createdAt": {
  5642. "description": "创建时间",
  5643. "type": "string"
  5644. },
  5645. "exaFileChunk": {
  5646. "type": "array",
  5647. "items": {
  5648. "$ref": "#/definitions/example.ExaFileChunk"
  5649. }
  5650. },
  5651. "fileMd5": {
  5652. "type": "string"
  5653. },
  5654. "fileName": {
  5655. "type": "string"
  5656. },
  5657. "filePath": {
  5658. "type": "string"
  5659. },
  5660. "isFinish": {
  5661. "type": "boolean"
  5662. },
  5663. "updatedAt": {
  5664. "description": "更新时间",
  5665. "type": "string"
  5666. }
  5667. }
  5668. },
  5669. "example.ExaFileChunk": {
  5670. "type": "object",
  5671. "properties": {
  5672. "ID": {
  5673. "description": "主键ID",
  5674. "type": "integer"
  5675. },
  5676. "createdAt": {
  5677. "description": "创建时间",
  5678. "type": "string"
  5679. },
  5680. "exaFileID": {
  5681. "type": "integer"
  5682. },
  5683. "fileChunkNumber": {
  5684. "type": "integer"
  5685. },
  5686. "fileChunkPath": {
  5687. "type": "string"
  5688. },
  5689. "updatedAt": {
  5690. "description": "更新时间",
  5691. "type": "string"
  5692. }
  5693. }
  5694. },
  5695. "example.ExaFileUploadAndDownload": {
  5696. "type": "object",
  5697. "properties": {
  5698. "ID": {
  5699. "description": "主键ID",
  5700. "type": "integer"
  5701. },
  5702. "createdAt": {
  5703. "description": "创建时间",
  5704. "type": "string"
  5705. },
  5706. "key": {
  5707. "description": "编号",
  5708. "type": "string"
  5709. },
  5710. "name": {
  5711. "description": "文件名",
  5712. "type": "string"
  5713. },
  5714. "tag": {
  5715. "description": "文件标签",
  5716. "type": "string"
  5717. },
  5718. "updatedAt": {
  5719. "description": "更新时间",
  5720. "type": "string"
  5721. },
  5722. "url": {
  5723. "description": "文件地址",
  5724. "type": "string"
  5725. }
  5726. }
  5727. },
  5728. "github_com_flipped-aurora_gin-vue-admin_server_config.Email": {
  5729. "type": "object",
  5730. "properties": {
  5731. "from": {
  5732. "description": "发件人 你自己要发邮件的邮箱",
  5733. "type": "string"
  5734. },
  5735. "host": {
  5736. "description": "服务器地址 例如 smtp.qq.com 请前往QQ或者你要发邮件的邮箱查看其smtp协议",
  5737. "type": "string"
  5738. },
  5739. "is-ssl": {
  5740. "description": "是否SSL 是否开启SSL",
  5741. "type": "boolean"
  5742. },
  5743. "nickname": {
  5744. "description": "昵称 发件人昵称 通常为自己的邮箱",
  5745. "type": "string"
  5746. },
  5747. "port": {
  5748. "description": "端口 请前往QQ或者你要发邮件的邮箱查看其smtp协议 大多为 465",
  5749. "type": "integer"
  5750. },
  5751. "secret": {
  5752. "description": "密钥 用于登录的密钥 最好不要用邮箱密码 去邮箱smtp申请一个用于登录的密钥",
  5753. "type": "string"
  5754. },
  5755. "to": {
  5756. "description": "收件人:多个以英文逗号分隔 例:a@qq.com b@qq.com 正式开发中请把此项目作为参数使用",
  5757. "type": "string"
  5758. }
  5759. }
  5760. },
  5761. "request.AddMenuAuthorityInfo": {
  5762. "type": "object",
  5763. "properties": {
  5764. "authorityId": {
  5765. "description": "角色ID",
  5766. "type": "integer"
  5767. },
  5768. "menus": {
  5769. "type": "array",
  5770. "items": {
  5771. "$ref": "#/definitions/system.SysBaseMenu"
  5772. }
  5773. }
  5774. }
  5775. },
  5776. "request.CasbinInReceive": {
  5777. "type": "object",
  5778. "properties": {
  5779. "authorityId": {
  5780. "description": "权限id",
  5781. "type": "integer"
  5782. },
  5783. "casbinInfos": {
  5784. "type": "array",
  5785. "items": {
  5786. "$ref": "#/definitions/request.CasbinInfo"
  5787. }
  5788. }
  5789. }
  5790. },
  5791. "request.CasbinInfo": {
  5792. "type": "object",
  5793. "properties": {
  5794. "method": {
  5795. "description": "方法",
  5796. "type": "string"
  5797. },
  5798. "path": {
  5799. "description": "路径",
  5800. "type": "string"
  5801. }
  5802. }
  5803. },
  5804. "request.ChangePasswordReq": {
  5805. "type": "object",
  5806. "properties": {
  5807. "newPassword": {
  5808. "description": "新密码",
  5809. "type": "string"
  5810. },
  5811. "password": {
  5812. "description": "密码",
  5813. "type": "string"
  5814. }
  5815. }
  5816. },
  5817. "request.Empty": {
  5818. "type": "object"
  5819. },
  5820. "request.GetAuthorityId": {
  5821. "type": "object",
  5822. "properties": {
  5823. "authorityId": {
  5824. "description": "角色ID",
  5825. "type": "integer"
  5826. }
  5827. }
  5828. },
  5829. "request.GetById": {
  5830. "type": "object",
  5831. "properties": {
  5832. "id": {
  5833. "description": "主键ID",
  5834. "type": "integer"
  5835. }
  5836. }
  5837. },
  5838. "request.IdsReq": {
  5839. "type": "object",
  5840. "properties": {
  5841. "ids": {
  5842. "type": "array",
  5843. "items": {
  5844. "type": "integer"
  5845. }
  5846. }
  5847. }
  5848. },
  5849. "request.InitDB": {
  5850. "type": "object",
  5851. "required": [
  5852. "dbName"
  5853. ],
  5854. "properties": {
  5855. "dbName": {
  5856. "description": "数据库名",
  5857. "type": "string"
  5858. },
  5859. "dbPath": {
  5860. "description": "sqlite数据库文件路径",
  5861. "type": "string"
  5862. },
  5863. "dbType": {
  5864. "description": "数据库类型",
  5865. "type": "string"
  5866. },
  5867. "host": {
  5868. "description": "服务器地址",
  5869. "type": "string"
  5870. },
  5871. "password": {
  5872. "description": "数据库密码",
  5873. "type": "string"
  5874. },
  5875. "port": {
  5876. "description": "数据库连接端口",
  5877. "type": "string"
  5878. },
  5879. "userName": {
  5880. "description": "数据库用户名",
  5881. "type": "string"
  5882. }
  5883. }
  5884. },
  5885. "request.Login": {
  5886. "type": "object",
  5887. "properties": {
  5888. "captcha": {
  5889. "description": "验证码",
  5890. "type": "string"
  5891. },
  5892. "captchaId": {
  5893. "description": "验证码ID",
  5894. "type": "string"
  5895. },
  5896. "password": {
  5897. "description": "密码",
  5898. "type": "string"
  5899. },
  5900. "username": {
  5901. "description": "用户名",
  5902. "type": "string"
  5903. }
  5904. }
  5905. },
  5906. "request.PageInfo": {
  5907. "type": "object",
  5908. "properties": {
  5909. "keyword": {
  5910. "description": "关键字",
  5911. "type": "string"
  5912. },
  5913. "page": {
  5914. "description": "页码",
  5915. "type": "integer"
  5916. },
  5917. "pageSize": {
  5918. "description": "每页大小",
  5919. "type": "integer"
  5920. }
  5921. }
  5922. },
  5923. "request.Register": {
  5924. "type": "object",
  5925. "properties": {
  5926. "authorityId": {
  5927. "type": "string",
  5928. "example": "int 角色id"
  5929. },
  5930. "authorityIds": {
  5931. "type": "string",
  5932. "example": "[]uint 角色id"
  5933. },
  5934. "email": {
  5935. "type": "string",
  5936. "example": "电子邮箱"
  5937. },
  5938. "enable": {
  5939. "type": "string",
  5940. "example": "int 是否启用"
  5941. },
  5942. "headerImg": {
  5943. "type": "string",
  5944. "example": "头像链接"
  5945. },
  5946. "nickName": {
  5947. "type": "string",
  5948. "example": "昵称"
  5949. },
  5950. "passWord": {
  5951. "type": "string",
  5952. "example": "密码"
  5953. },
  5954. "phone": {
  5955. "type": "string",
  5956. "example": "电话号码"
  5957. },
  5958. "userName": {
  5959. "type": "string",
  5960. "example": "用户名"
  5961. }
  5962. }
  5963. },
  5964. "request.RollBack": {
  5965. "type": "object",
  5966. "properties": {
  5967. "deleteTable": {
  5968. "description": "是否删除表",
  5969. "type": "boolean"
  5970. },
  5971. "id": {
  5972. "description": "主键ID",
  5973. "type": "integer"
  5974. }
  5975. }
  5976. },
  5977. "request.SearchApiParams": {
  5978. "type": "object",
  5979. "properties": {
  5980. "ID": {
  5981. "description": "主键ID",
  5982. "type": "integer"
  5983. },
  5984. "apiGroup": {
  5985. "description": "api组",
  5986. "type": "string"
  5987. },
  5988. "createdAt": {
  5989. "description": "创建时间",
  5990. "type": "string"
  5991. },
  5992. "desc": {
  5993. "description": "排序方式:升序false(默认)|降序true",
  5994. "type": "boolean"
  5995. },
  5996. "description": {
  5997. "description": "api中文描述",
  5998. "type": "string"
  5999. },
  6000. "keyword": {
  6001. "description": "关键字",
  6002. "type": "string"
  6003. },
  6004. "method": {
  6005. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  6006. "type": "string"
  6007. },
  6008. "orderKey": {
  6009. "description": "排序",
  6010. "type": "string"
  6011. },
  6012. "page": {
  6013. "description": "页码",
  6014. "type": "integer"
  6015. },
  6016. "pageSize": {
  6017. "description": "每页大小",
  6018. "type": "integer"
  6019. },
  6020. "path": {
  6021. "description": "api路径",
  6022. "type": "string"
  6023. },
  6024. "updatedAt": {
  6025. "description": "更新时间",
  6026. "type": "string"
  6027. }
  6028. }
  6029. },
  6030. "request.SetUserAuth": {
  6031. "type": "object",
  6032. "properties": {
  6033. "authorityId": {
  6034. "description": "角色ID",
  6035. "type": "integer"
  6036. }
  6037. }
  6038. },
  6039. "request.SetUserAuthorities": {
  6040. "type": "object",
  6041. "properties": {
  6042. "authorityIds": {
  6043. "description": "角色ID",
  6044. "type": "array",
  6045. "items": {
  6046. "type": "integer"
  6047. }
  6048. },
  6049. "id": {
  6050. "type": "integer"
  6051. }
  6052. }
  6053. },
  6054. "request.SysAuthorityBtnReq": {
  6055. "type": "object",
  6056. "properties": {
  6057. "authorityId": {
  6058. "type": "integer"
  6059. },
  6060. "menuID": {
  6061. "type": "integer"
  6062. },
  6063. "selected": {
  6064. "type": "array",
  6065. "items": {
  6066. "type": "integer"
  6067. }
  6068. }
  6069. }
  6070. },
  6071. "request.SysAutoHistory": {
  6072. "type": "object",
  6073. "properties": {
  6074. "keyword": {
  6075. "description": "关键字",
  6076. "type": "string"
  6077. },
  6078. "page": {
  6079. "description": "页码",
  6080. "type": "integer"
  6081. },
  6082. "pageSize": {
  6083. "description": "每页大小",
  6084. "type": "integer"
  6085. }
  6086. }
  6087. },
  6088. "response.Email": {
  6089. "type": "object",
  6090. "properties": {
  6091. "body": {
  6092. "description": "邮件内容",
  6093. "type": "string"
  6094. },
  6095. "subject": {
  6096. "description": "邮件标题",
  6097. "type": "string"
  6098. },
  6099. "to": {
  6100. "description": "邮件发送给谁",
  6101. "type": "string"
  6102. }
  6103. }
  6104. },
  6105. "response.ExaCustomerResponse": {
  6106. "type": "object",
  6107. "properties": {
  6108. "customer": {
  6109. "$ref": "#/definitions/example.ExaCustomer"
  6110. }
  6111. }
  6112. },
  6113. "response.ExaFileResponse": {
  6114. "type": "object",
  6115. "properties": {
  6116. "file": {
  6117. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  6118. }
  6119. }
  6120. },
  6121. "response.FilePathResponse": {
  6122. "type": "object",
  6123. "properties": {
  6124. "filePath": {
  6125. "type": "string"
  6126. }
  6127. }
  6128. },
  6129. "response.FileResponse": {
  6130. "type": "object",
  6131. "properties": {
  6132. "file": {
  6133. "$ref": "#/definitions/example.ExaFile"
  6134. }
  6135. }
  6136. },
  6137. "response.LoginResponse": {
  6138. "type": "object",
  6139. "properties": {
  6140. "expiresAt": {
  6141. "type": "integer"
  6142. },
  6143. "token": {
  6144. "type": "string"
  6145. },
  6146. "user": {
  6147. "$ref": "#/definitions/system.SysUser"
  6148. }
  6149. }
  6150. },
  6151. "response.PageResult": {
  6152. "type": "object",
  6153. "properties": {
  6154. "list": {},
  6155. "page": {
  6156. "type": "integer"
  6157. },
  6158. "pageSize": {
  6159. "type": "integer"
  6160. },
  6161. "total": {
  6162. "type": "integer"
  6163. }
  6164. }
  6165. },
  6166. "response.PolicyPathResponse": {
  6167. "type": "object",
  6168. "properties": {
  6169. "paths": {
  6170. "type": "array",
  6171. "items": {
  6172. "$ref": "#/definitions/request.CasbinInfo"
  6173. }
  6174. }
  6175. }
  6176. },
  6177. "response.Response": {
  6178. "type": "object",
  6179. "properties": {
  6180. "code": {
  6181. "type": "integer"
  6182. },
  6183. "data": {},
  6184. "msg": {
  6185. "type": "string"
  6186. }
  6187. }
  6188. },
  6189. "response.SysAPIListResponse": {
  6190. "type": "object",
  6191. "properties": {
  6192. "apis": {
  6193. "type": "array",
  6194. "items": {
  6195. "$ref": "#/definitions/system.SysApi"
  6196. }
  6197. }
  6198. }
  6199. },
  6200. "response.SysAPIResponse": {
  6201. "type": "object",
  6202. "properties": {
  6203. "api": {
  6204. "$ref": "#/definitions/system.SysApi"
  6205. }
  6206. }
  6207. },
  6208. "response.SysAuthorityBtnRes": {
  6209. "type": "object",
  6210. "properties": {
  6211. "selected": {
  6212. "type": "array",
  6213. "items": {
  6214. "type": "integer"
  6215. }
  6216. }
  6217. }
  6218. },
  6219. "response.SysAuthorityCopyResponse": {
  6220. "type": "object",
  6221. "properties": {
  6222. "authority": {
  6223. "$ref": "#/definitions/system.SysAuthority"
  6224. },
  6225. "oldAuthorityId": {
  6226. "description": "旧角色ID",
  6227. "type": "integer"
  6228. }
  6229. }
  6230. },
  6231. "response.SysAuthorityResponse": {
  6232. "type": "object",
  6233. "properties": {
  6234. "authority": {
  6235. "$ref": "#/definitions/system.SysAuthority"
  6236. }
  6237. }
  6238. },
  6239. "response.SysBaseMenuResponse": {
  6240. "type": "object",
  6241. "properties": {
  6242. "menu": {
  6243. "$ref": "#/definitions/system.SysBaseMenu"
  6244. }
  6245. }
  6246. },
  6247. "response.SysBaseMenusResponse": {
  6248. "type": "object",
  6249. "properties": {
  6250. "menus": {
  6251. "type": "array",
  6252. "items": {
  6253. "$ref": "#/definitions/system.SysBaseMenu"
  6254. }
  6255. }
  6256. }
  6257. },
  6258. "response.SysCaptchaResponse": {
  6259. "type": "object",
  6260. "properties": {
  6261. "captchaId": {
  6262. "type": "string"
  6263. },
  6264. "captchaLength": {
  6265. "type": "integer"
  6266. },
  6267. "openCaptcha": {
  6268. "type": "boolean"
  6269. },
  6270. "picPath": {
  6271. "type": "string"
  6272. }
  6273. }
  6274. },
  6275. "response.SysConfigResponse": {
  6276. "type": "object",
  6277. "properties": {
  6278. "config": {
  6279. "$ref": "#/definitions/config.Server"
  6280. }
  6281. }
  6282. },
  6283. "response.SysMenusResponse": {
  6284. "type": "object",
  6285. "properties": {
  6286. "menus": {
  6287. "type": "array",
  6288. "items": {
  6289. "$ref": "#/definitions/system.SysMenu"
  6290. }
  6291. }
  6292. }
  6293. },
  6294. "response.SysUserResponse": {
  6295. "type": "object",
  6296. "properties": {
  6297. "user": {
  6298. "$ref": "#/definitions/system.SysUser"
  6299. }
  6300. }
  6301. },
  6302. "system.AutoCodeStruct": {
  6303. "type": "object",
  6304. "properties": {
  6305. "abbreviation": {
  6306. "description": "Struct简称",
  6307. "type": "string"
  6308. },
  6309. "autoCreateApiToSql": {
  6310. "description": "是否自动创建api",
  6311. "type": "boolean"
  6312. },
  6313. "autoCreateResource": {
  6314. "description": "是否自动创建资源标识",
  6315. "type": "boolean"
  6316. },
  6317. "autoMoveFile": {
  6318. "description": "是否自动移动文件",
  6319. "type": "boolean"
  6320. },
  6321. "businessDB": {
  6322. "description": "业务数据库",
  6323. "type": "string"
  6324. },
  6325. "description": {
  6326. "description": "Struct中文名称",
  6327. "type": "string"
  6328. },
  6329. "fields": {
  6330. "type": "array",
  6331. "items": {
  6332. "$ref": "#/definitions/system.Field"
  6333. }
  6334. },
  6335. "hasTimer": {
  6336. "type": "boolean"
  6337. },
  6338. "humpPackageName": {
  6339. "description": "go文件名称",
  6340. "type": "string"
  6341. },
  6342. "package": {
  6343. "type": "string"
  6344. },
  6345. "packageName": {
  6346. "description": "文件名称",
  6347. "type": "string"
  6348. },
  6349. "structName": {
  6350. "description": "Struct名称",
  6351. "type": "string"
  6352. },
  6353. "tableName": {
  6354. "description": "表名",
  6355. "type": "string"
  6356. }
  6357. }
  6358. },
  6359. "system.Field": {
  6360. "type": "object",
  6361. "properties": {
  6362. "clearable": {
  6363. "description": "是否可清空",
  6364. "type": "boolean"
  6365. },
  6366. "columnName": {
  6367. "description": "数据库字段",
  6368. "type": "string"
  6369. },
  6370. "comment": {
  6371. "description": "数据库字段描述",
  6372. "type": "string"
  6373. },
  6374. "dataTypeLong": {
  6375. "description": "数据库字段长度",
  6376. "type": "string"
  6377. },
  6378. "dictType": {
  6379. "description": "字典",
  6380. "type": "string"
  6381. },
  6382. "errorText": {
  6383. "description": "校验失败文字",
  6384. "type": "string"
  6385. },
  6386. "fieldDesc": {
  6387. "description": "中文名",
  6388. "type": "string"
  6389. },
  6390. "fieldJson": {
  6391. "description": "FieldJson",
  6392. "type": "string"
  6393. },
  6394. "fieldName": {
  6395. "description": "Field名",
  6396. "type": "string"
  6397. },
  6398. "fieldSearchType": {
  6399. "description": "搜索条件",
  6400. "type": "string"
  6401. },
  6402. "fieldType": {
  6403. "description": "Field数据类型",
  6404. "type": "string"
  6405. },
  6406. "require": {
  6407. "description": "是否必填",
  6408. "type": "boolean"
  6409. },
  6410. "sort": {
  6411. "description": "是否增加排序",
  6412. "type": "boolean"
  6413. }
  6414. }
  6415. },
  6416. "system.Meta": {
  6417. "type": "object",
  6418. "properties": {
  6419. "activeName": {
  6420. "type": "string"
  6421. },
  6422. "closeTab": {
  6423. "description": "自动关闭tab",
  6424. "type": "boolean"
  6425. },
  6426. "defaultMenu": {
  6427. "description": "是否是基础路由(开发中)",
  6428. "type": "boolean"
  6429. },
  6430. "icon": {
  6431. "description": "菜单图标",
  6432. "type": "string"
  6433. },
  6434. "keepAlive": {
  6435. "description": "是否缓存",
  6436. "type": "boolean"
  6437. },
  6438. "title": {
  6439. "description": "菜单名",
  6440. "type": "string"
  6441. }
  6442. }
  6443. },
  6444. "system.SysApi": {
  6445. "type": "object",
  6446. "properties": {
  6447. "ID": {
  6448. "description": "主键ID",
  6449. "type": "integer"
  6450. },
  6451. "apiGroup": {
  6452. "description": "api组",
  6453. "type": "string"
  6454. },
  6455. "createdAt": {
  6456. "description": "创建时间",
  6457. "type": "string"
  6458. },
  6459. "description": {
  6460. "description": "api中文描述",
  6461. "type": "string"
  6462. },
  6463. "method": {
  6464. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  6465. "type": "string"
  6466. },
  6467. "path": {
  6468. "description": "api路径",
  6469. "type": "string"
  6470. },
  6471. "updatedAt": {
  6472. "description": "更新时间",
  6473. "type": "string"
  6474. }
  6475. }
  6476. },
  6477. "system.SysAuthority": {
  6478. "type": "object",
  6479. "properties": {
  6480. "authorityId": {
  6481. "description": "角色ID",
  6482. "type": "integer"
  6483. },
  6484. "authorityName": {
  6485. "description": "角色名",
  6486. "type": "string"
  6487. },
  6488. "children": {
  6489. "type": "array",
  6490. "items": {
  6491. "$ref": "#/definitions/system.SysAuthority"
  6492. }
  6493. },
  6494. "createdAt": {
  6495. "description": "创建时间",
  6496. "type": "string"
  6497. },
  6498. "dataAuthorityId": {
  6499. "type": "array",
  6500. "items": {
  6501. "$ref": "#/definitions/system.SysAuthority"
  6502. }
  6503. },
  6504. "defaultRouter": {
  6505. "description": "默认菜单(默认dashboard)",
  6506. "type": "string"
  6507. },
  6508. "deletedAt": {
  6509. "type": "string"
  6510. },
  6511. "menus": {
  6512. "type": "array",
  6513. "items": {
  6514. "$ref": "#/definitions/system.SysBaseMenu"
  6515. }
  6516. },
  6517. "parentId": {
  6518. "description": "父角色ID",
  6519. "type": "integer"
  6520. },
  6521. "updatedAt": {
  6522. "description": "更新时间",
  6523. "type": "string"
  6524. }
  6525. }
  6526. },
  6527. "system.SysAutoCode": {
  6528. "type": "object",
  6529. "properties": {
  6530. "ID": {
  6531. "description": "主键ID",
  6532. "type": "integer"
  6533. },
  6534. "createdAt": {
  6535. "description": "创建时间",
  6536. "type": "string"
  6537. },
  6538. "desc": {
  6539. "type": "string"
  6540. },
  6541. "label": {
  6542. "type": "string"
  6543. },
  6544. "packageName": {
  6545. "type": "string"
  6546. },
  6547. "updatedAt": {
  6548. "description": "更新时间",
  6549. "type": "string"
  6550. }
  6551. }
  6552. },
  6553. "system.SysBaseMenu": {
  6554. "type": "object",
  6555. "properties": {
  6556. "ID": {
  6557. "description": "主键ID",
  6558. "type": "integer"
  6559. },
  6560. "authoritys": {
  6561. "type": "array",
  6562. "items": {
  6563. "$ref": "#/definitions/system.SysAuthority"
  6564. }
  6565. },
  6566. "children": {
  6567. "type": "array",
  6568. "items": {
  6569. "$ref": "#/definitions/system.SysBaseMenu"
  6570. }
  6571. },
  6572. "component": {
  6573. "description": "对应前端文件路径",
  6574. "type": "string"
  6575. },
  6576. "createdAt": {
  6577. "description": "创建时间",
  6578. "type": "string"
  6579. },
  6580. "hidden": {
  6581. "description": "是否在列表隐藏",
  6582. "type": "boolean"
  6583. },
  6584. "menuBtn": {
  6585. "type": "array",
  6586. "items": {
  6587. "$ref": "#/definitions/system.SysBaseMenuBtn"
  6588. }
  6589. },
  6590. "meta": {
  6591. "description": "附加属性",
  6592. "allOf": [
  6593. {
  6594. "$ref": "#/definitions/system.Meta"
  6595. }
  6596. ]
  6597. },
  6598. "name": {
  6599. "description": "路由name",
  6600. "type": "string"
  6601. },
  6602. "parameters": {
  6603. "type": "array",
  6604. "items": {
  6605. "$ref": "#/definitions/system.SysBaseMenuParameter"
  6606. }
  6607. },
  6608. "parentId": {
  6609. "description": "父菜单ID",
  6610. "type": "string"
  6611. },
  6612. "path": {
  6613. "description": "路由path",
  6614. "type": "string"
  6615. },
  6616. "sort": {
  6617. "description": "排序标记",
  6618. "type": "integer"
  6619. },
  6620. "updatedAt": {
  6621. "description": "更新时间",
  6622. "type": "string"
  6623. }
  6624. }
  6625. },
  6626. "system.SysBaseMenuBtn": {
  6627. "type": "object",
  6628. "properties": {
  6629. "ID": {
  6630. "description": "主键ID",
  6631. "type": "integer"
  6632. },
  6633. "createdAt": {
  6634. "description": "创建时间",
  6635. "type": "string"
  6636. },
  6637. "desc": {
  6638. "type": "string"
  6639. },
  6640. "name": {
  6641. "type": "string"
  6642. },
  6643. "sysBaseMenuID": {
  6644. "type": "integer"
  6645. },
  6646. "updatedAt": {
  6647. "description": "更新时间",
  6648. "type": "string"
  6649. }
  6650. }
  6651. },
  6652. "system.SysBaseMenuParameter": {
  6653. "type": "object",
  6654. "properties": {
  6655. "ID": {
  6656. "description": "主键ID",
  6657. "type": "integer"
  6658. },
  6659. "createdAt": {
  6660. "description": "创建时间",
  6661. "type": "string"
  6662. },
  6663. "key": {
  6664. "description": "地址栏携带参数的key",
  6665. "type": "string"
  6666. },
  6667. "sysBaseMenuID": {
  6668. "type": "integer"
  6669. },
  6670. "type": {
  6671. "description": "地址栏携带参数为params还是query",
  6672. "type": "string"
  6673. },
  6674. "updatedAt": {
  6675. "description": "更新时间",
  6676. "type": "string"
  6677. },
  6678. "value": {
  6679. "description": "地址栏携带参数的值",
  6680. "type": "string"
  6681. }
  6682. }
  6683. },
  6684. "system.SysDictionary": {
  6685. "type": "object",
  6686. "properties": {
  6687. "ID": {
  6688. "description": "主键ID",
  6689. "type": "integer"
  6690. },
  6691. "createdAt": {
  6692. "description": "创建时间",
  6693. "type": "string"
  6694. },
  6695. "desc": {
  6696. "description": "描述",
  6697. "type": "string"
  6698. },
  6699. "name": {
  6700. "description": "字典名(中)",
  6701. "type": "string"
  6702. },
  6703. "status": {
  6704. "description": "状态",
  6705. "type": "boolean"
  6706. },
  6707. "sysDictionaryDetails": {
  6708. "type": "array",
  6709. "items": {
  6710. "$ref": "#/definitions/system.SysDictionaryDetail"
  6711. }
  6712. },
  6713. "type": {
  6714. "description": "字典名(英)",
  6715. "type": "string"
  6716. },
  6717. "updatedAt": {
  6718. "description": "更新时间",
  6719. "type": "string"
  6720. }
  6721. }
  6722. },
  6723. "system.SysDictionaryDetail": {
  6724. "type": "object",
  6725. "properties": {
  6726. "ID": {
  6727. "description": "主键ID",
  6728. "type": "integer"
  6729. },
  6730. "createdAt": {
  6731. "description": "创建时间",
  6732. "type": "string"
  6733. },
  6734. "extend": {
  6735. "description": "扩展值",
  6736. "type": "string"
  6737. },
  6738. "label": {
  6739. "description": "展示值",
  6740. "type": "string"
  6741. },
  6742. "sort": {
  6743. "description": "排序标记",
  6744. "type": "integer"
  6745. },
  6746. "status": {
  6747. "description": "启用状态",
  6748. "type": "boolean"
  6749. },
  6750. "sysDictionaryID": {
  6751. "description": "关联标记",
  6752. "type": "integer"
  6753. },
  6754. "updatedAt": {
  6755. "description": "更新时间",
  6756. "type": "string"
  6757. },
  6758. "value": {
  6759. "description": "字典值",
  6760. "type": "integer"
  6761. }
  6762. }
  6763. },
  6764. "system.SysMenu": {
  6765. "type": "object",
  6766. "properties": {
  6767. "ID": {
  6768. "description": "主键ID",
  6769. "type": "integer"
  6770. },
  6771. "authoritys": {
  6772. "type": "array",
  6773. "items": {
  6774. "$ref": "#/definitions/system.SysAuthority"
  6775. }
  6776. },
  6777. "btns": {
  6778. "type": "object",
  6779. "additionalProperties": {
  6780. "type": "integer"
  6781. }
  6782. },
  6783. "children": {
  6784. "type": "array",
  6785. "items": {
  6786. "$ref": "#/definitions/system.SysMenu"
  6787. }
  6788. },
  6789. "component": {
  6790. "description": "对应前端文件路径",
  6791. "type": "string"
  6792. },
  6793. "createdAt": {
  6794. "description": "创建时间",
  6795. "type": "string"
  6796. },
  6797. "hidden": {
  6798. "description": "是否在列表隐藏",
  6799. "type": "boolean"
  6800. },
  6801. "menuBtn": {
  6802. "type": "array",
  6803. "items": {
  6804. "$ref": "#/definitions/system.SysBaseMenuBtn"
  6805. }
  6806. },
  6807. "menuId": {
  6808. "type": "string"
  6809. },
  6810. "meta": {
  6811. "description": "附加属性",
  6812. "allOf": [
  6813. {
  6814. "$ref": "#/definitions/system.Meta"
  6815. }
  6816. ]
  6817. },
  6818. "name": {
  6819. "description": "路由name",
  6820. "type": "string"
  6821. },
  6822. "parameters": {
  6823. "type": "array",
  6824. "items": {
  6825. "$ref": "#/definitions/system.SysBaseMenuParameter"
  6826. }
  6827. },
  6828. "parentId": {
  6829. "description": "父菜单ID",
  6830. "type": "string"
  6831. },
  6832. "path": {
  6833. "description": "路由path",
  6834. "type": "string"
  6835. },
  6836. "sort": {
  6837. "description": "排序标记",
  6838. "type": "integer"
  6839. },
  6840. "updatedAt": {
  6841. "description": "更新时间",
  6842. "type": "string"
  6843. }
  6844. }
  6845. },
  6846. "system.SysOperationRecord": {
  6847. "type": "object",
  6848. "properties": {
  6849. "ID": {
  6850. "description": "主键ID",
  6851. "type": "integer"
  6852. },
  6853. "agent": {
  6854. "description": "代理",
  6855. "type": "string"
  6856. },
  6857. "body": {
  6858. "description": "请求Body",
  6859. "type": "string"
  6860. },
  6861. "createdAt": {
  6862. "description": "创建时间",
  6863. "type": "string"
  6864. },
  6865. "error_message": {
  6866. "description": "错误信息",
  6867. "type": "string"
  6868. },
  6869. "ip": {
  6870. "description": "请求ip",
  6871. "type": "string"
  6872. },
  6873. "latency": {
  6874. "description": "延迟",
  6875. "type": "string"
  6876. },
  6877. "method": {
  6878. "description": "请求方法",
  6879. "type": "string"
  6880. },
  6881. "path": {
  6882. "description": "请求路径",
  6883. "type": "string"
  6884. },
  6885. "resp": {
  6886. "description": "响应Body",
  6887. "type": "string"
  6888. },
  6889. "status": {
  6890. "description": "请求状态",
  6891. "type": "integer"
  6892. },
  6893. "updatedAt": {
  6894. "description": "更新时间",
  6895. "type": "string"
  6896. },
  6897. "user": {
  6898. "$ref": "#/definitions/system.SysUser"
  6899. },
  6900. "user_id": {
  6901. "description": "用户id",
  6902. "type": "integer"
  6903. }
  6904. }
  6905. },
  6906. "system.SysUser": {
  6907. "type": "object",
  6908. "properties": {
  6909. "ID": {
  6910. "description": "主键ID",
  6911. "type": "integer"
  6912. },
  6913. "activeColor": {
  6914. "description": "活跃颜色",
  6915. "type": "string"
  6916. },
  6917. "authorities": {
  6918. "type": "array",
  6919. "items": {
  6920. "$ref": "#/definitions/system.SysAuthority"
  6921. }
  6922. },
  6923. "authority": {
  6924. "$ref": "#/definitions/system.SysAuthority"
  6925. },
  6926. "authorityId": {
  6927. "description": "用户角色ID",
  6928. "type": "integer"
  6929. },
  6930. "baseColor": {
  6931. "description": "基础颜色",
  6932. "type": "string"
  6933. },
  6934. "createdAt": {
  6935. "description": "创建时间",
  6936. "type": "string"
  6937. },
  6938. "email": {
  6939. "description": "用户邮箱",
  6940. "type": "string"
  6941. },
  6942. "enable": {
  6943. "description": "用户是否被冻结 1正常 2冻结",
  6944. "type": "integer"
  6945. },
  6946. "headerImg": {
  6947. "description": "用户头像",
  6948. "type": "string"
  6949. },
  6950. "nickName": {
  6951. "description": "用户昵称",
  6952. "type": "string"
  6953. },
  6954. "phone": {
  6955. "description": "用户手机号",
  6956. "type": "string"
  6957. },
  6958. "sideMode": {
  6959. "description": "用户侧边主题",
  6960. "type": "string"
  6961. },
  6962. "updatedAt": {
  6963. "description": "更新时间",
  6964. "type": "string"
  6965. },
  6966. "userName": {
  6967. "description": "用户登录名",
  6968. "type": "string"
  6969. },
  6970. "uuid": {
  6971. "description": "用户UUID",
  6972. "type": "string"
  6973. }
  6974. }
  6975. },
  6976. "system.System": {
  6977. "type": "object",
  6978. "properties": {
  6979. "config": {
  6980. "$ref": "#/definitions/config.Server"
  6981. }
  6982. }
  6983. }
  6984. },
  6985. "securityDefinitions": {
  6986. "ApiKeyAuth": {
  6987. "type": "apiKey",
  6988. "name": "x-token",
  6989. "in": "header"
  6990. }
  6991. }
  6992. }