docs.go 315 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314
  1. // Code generated by swaggo/swag. DO NOT EDIT.
  2. package docs
  3. import (
  4. "github.com/flipped-aurora/gin-vue-admin/server/global"
  5. "github.com/swaggo/swag"
  6. )
  7. const docTemplate = `{
  8. "schemes": {{ marshal .Schemes }},
  9. "swagger": "2.0",
  10. "info": {
  11. "description": "{{escape .Description}}",
  12. "title": "{{.Title}}",
  13. "contact": {},
  14. "version": "{{.Version}}"
  15. },
  16. "host": "{{.Host}}",
  17. "basePath": "{{.BasePath}}",
  18. "paths": {
  19. "/api/createApi": {
  20. "post": {
  21. "security": [
  22. {
  23. "ApiKeyAuth": []
  24. }
  25. ],
  26. "consumes": [
  27. "application/json"
  28. ],
  29. "produces": [
  30. "application/json"
  31. ],
  32. "tags": [
  33. "SysApi"
  34. ],
  35. "summary": "创建基础api",
  36. "parameters": [
  37. {
  38. "description": "api路径, api中文描述, api组, 方法",
  39. "name": "data",
  40. "in": "body",
  41. "required": true,
  42. "schema": {
  43. "$ref": "#/definitions/system.SysApi"
  44. }
  45. }
  46. ],
  47. "responses": {
  48. "200": {
  49. "description": "创建基础api",
  50. "schema": {
  51. "allOf": [
  52. {
  53. "$ref": "#/definitions/response.Response"
  54. },
  55. {
  56. "type": "object",
  57. "properties": {
  58. "msg": {
  59. "type": "string"
  60. }
  61. }
  62. }
  63. ]
  64. }
  65. }
  66. }
  67. }
  68. },
  69. "/api/deleteApi": {
  70. "post": {
  71. "security": [
  72. {
  73. "ApiKeyAuth": []
  74. }
  75. ],
  76. "consumes": [
  77. "application/json"
  78. ],
  79. "produces": [
  80. "application/json"
  81. ],
  82. "tags": [
  83. "SysApi"
  84. ],
  85. "summary": "删除api",
  86. "parameters": [
  87. {
  88. "description": "ID",
  89. "name": "data",
  90. "in": "body",
  91. "required": true,
  92. "schema": {
  93. "$ref": "#/definitions/system.SysApi"
  94. }
  95. }
  96. ],
  97. "responses": {
  98. "200": {
  99. "description": "删除api",
  100. "schema": {
  101. "allOf": [
  102. {
  103. "$ref": "#/definitions/response.Response"
  104. },
  105. {
  106. "type": "object",
  107. "properties": {
  108. "msg": {
  109. "type": "string"
  110. }
  111. }
  112. }
  113. ]
  114. }
  115. }
  116. }
  117. }
  118. },
  119. "/api/deleteApisByIds": {
  120. "delete": {
  121. "security": [
  122. {
  123. "ApiKeyAuth": []
  124. }
  125. ],
  126. "consumes": [
  127. "application/json"
  128. ],
  129. "produces": [
  130. "application/json"
  131. ],
  132. "tags": [
  133. "SysApi"
  134. ],
  135. "summary": "删除选中Api",
  136. "parameters": [
  137. {
  138. "description": "ID",
  139. "name": "data",
  140. "in": "body",
  141. "required": true,
  142. "schema": {
  143. "$ref": "#/definitions/request.IdsReq"
  144. }
  145. }
  146. ],
  147. "responses": {
  148. "200": {
  149. "description": "删除选中Api",
  150. "schema": {
  151. "allOf": [
  152. {
  153. "$ref": "#/definitions/response.Response"
  154. },
  155. {
  156. "type": "object",
  157. "properties": {
  158. "msg": {
  159. "type": "string"
  160. }
  161. }
  162. }
  163. ]
  164. }
  165. }
  166. }
  167. }
  168. },
  169. "/api/enterSyncApi": {
  170. "post": {
  171. "security": [
  172. {
  173. "ApiKeyAuth": []
  174. }
  175. ],
  176. "consumes": [
  177. "application/json"
  178. ],
  179. "produces": [
  180. "application/json"
  181. ],
  182. "tags": [
  183. "SysApi"
  184. ],
  185. "summary": "确认同步API",
  186. "responses": {
  187. "200": {
  188. "description": "确认同步API",
  189. "schema": {
  190. "allOf": [
  191. {
  192. "$ref": "#/definitions/response.Response"
  193. },
  194. {
  195. "type": "object",
  196. "properties": {
  197. "msg": {
  198. "type": "string"
  199. }
  200. }
  201. }
  202. ]
  203. }
  204. }
  205. }
  206. }
  207. },
  208. "/api/freshCasbin": {
  209. "get": {
  210. "consumes": [
  211. "application/json"
  212. ],
  213. "produces": [
  214. "application/json"
  215. ],
  216. "tags": [
  217. "SysApi"
  218. ],
  219. "summary": "刷新casbin缓存",
  220. "responses": {
  221. "200": {
  222. "description": "刷新成功",
  223. "schema": {
  224. "allOf": [
  225. {
  226. "$ref": "#/definitions/response.Response"
  227. },
  228. {
  229. "type": "object",
  230. "properties": {
  231. "msg": {
  232. "type": "string"
  233. }
  234. }
  235. }
  236. ]
  237. }
  238. }
  239. }
  240. }
  241. },
  242. "/api/getAllApis": {
  243. "post": {
  244. "security": [
  245. {
  246. "ApiKeyAuth": []
  247. }
  248. ],
  249. "consumes": [
  250. "application/json"
  251. ],
  252. "produces": [
  253. "application/json"
  254. ],
  255. "tags": [
  256. "SysApi"
  257. ],
  258. "summary": "获取所有的Api 不分页",
  259. "responses": {
  260. "200": {
  261. "description": "获取所有的Api 不分页,返回包括api列表",
  262. "schema": {
  263. "allOf": [
  264. {
  265. "$ref": "#/definitions/response.Response"
  266. },
  267. {
  268. "type": "object",
  269. "properties": {
  270. "data": {
  271. "$ref": "#/definitions/response.SysAPIListResponse"
  272. },
  273. "msg": {
  274. "type": "string"
  275. }
  276. }
  277. }
  278. ]
  279. }
  280. }
  281. }
  282. }
  283. },
  284. "/api/getApiById": {
  285. "post": {
  286. "security": [
  287. {
  288. "ApiKeyAuth": []
  289. }
  290. ],
  291. "consumes": [
  292. "application/json"
  293. ],
  294. "produces": [
  295. "application/json"
  296. ],
  297. "tags": [
  298. "SysApi"
  299. ],
  300. "summary": "根据id获取api",
  301. "parameters": [
  302. {
  303. "description": "根据id获取api",
  304. "name": "data",
  305. "in": "body",
  306. "required": true,
  307. "schema": {
  308. "$ref": "#/definitions/request.GetById"
  309. }
  310. }
  311. ],
  312. "responses": {
  313. "200": {
  314. "description": "根据id获取api,返回包括api详情",
  315. "schema": {
  316. "allOf": [
  317. {
  318. "$ref": "#/definitions/response.Response"
  319. },
  320. {
  321. "type": "object",
  322. "properties": {
  323. "data": {
  324. "$ref": "#/definitions/response.SysAPIResponse"
  325. }
  326. }
  327. }
  328. ]
  329. }
  330. }
  331. }
  332. }
  333. },
  334. "/api/getApiGroups": {
  335. "get": {
  336. "security": [
  337. {
  338. "ApiKeyAuth": []
  339. }
  340. ],
  341. "consumes": [
  342. "application/json"
  343. ],
  344. "produces": [
  345. "application/json"
  346. ],
  347. "tags": [
  348. "SysApi"
  349. ],
  350. "summary": "获取API分组",
  351. "responses": {
  352. "200": {
  353. "description": "获取API分组",
  354. "schema": {
  355. "allOf": [
  356. {
  357. "$ref": "#/definitions/response.Response"
  358. },
  359. {
  360. "type": "object",
  361. "properties": {
  362. "msg": {
  363. "type": "string"
  364. }
  365. }
  366. }
  367. ]
  368. }
  369. }
  370. }
  371. }
  372. },
  373. "/api/getApiList": {
  374. "post": {
  375. "security": [
  376. {
  377. "ApiKeyAuth": []
  378. }
  379. ],
  380. "consumes": [
  381. "application/json"
  382. ],
  383. "produces": [
  384. "application/json"
  385. ],
  386. "tags": [
  387. "SysApi"
  388. ],
  389. "summary": "分页获取API列表",
  390. "parameters": [
  391. {
  392. "description": "分页获取API列表",
  393. "name": "data",
  394. "in": "body",
  395. "required": true,
  396. "schema": {
  397. "$ref": "#/definitions/request.SearchApiParams"
  398. }
  399. }
  400. ],
  401. "responses": {
  402. "200": {
  403. "description": "分页获取API列表,返回包括列表,总数,页码,每页数量",
  404. "schema": {
  405. "allOf": [
  406. {
  407. "$ref": "#/definitions/response.Response"
  408. },
  409. {
  410. "type": "object",
  411. "properties": {
  412. "data": {
  413. "$ref": "#/definitions/response.PageResult"
  414. },
  415. "msg": {
  416. "type": "string"
  417. }
  418. }
  419. }
  420. ]
  421. }
  422. }
  423. }
  424. }
  425. },
  426. "/api/ignoreApi": {
  427. "post": {
  428. "security": [
  429. {
  430. "ApiKeyAuth": []
  431. }
  432. ],
  433. "consumes": [
  434. "application/json"
  435. ],
  436. "produces": [
  437. "application/json"
  438. ],
  439. "tags": [
  440. "IgnoreApi"
  441. ],
  442. "summary": "忽略API",
  443. "responses": {
  444. "200": {
  445. "description": "同步API",
  446. "schema": {
  447. "allOf": [
  448. {
  449. "$ref": "#/definitions/response.Response"
  450. },
  451. {
  452. "type": "object",
  453. "properties": {
  454. "msg": {
  455. "type": "string"
  456. }
  457. }
  458. }
  459. ]
  460. }
  461. }
  462. }
  463. }
  464. },
  465. "/api/syncApi": {
  466. "get": {
  467. "security": [
  468. {
  469. "ApiKeyAuth": []
  470. }
  471. ],
  472. "consumes": [
  473. "application/json"
  474. ],
  475. "produces": [
  476. "application/json"
  477. ],
  478. "tags": [
  479. "SysApi"
  480. ],
  481. "summary": "同步API",
  482. "responses": {
  483. "200": {
  484. "description": "同步API",
  485. "schema": {
  486. "allOf": [
  487. {
  488. "$ref": "#/definitions/response.Response"
  489. },
  490. {
  491. "type": "object",
  492. "properties": {
  493. "msg": {
  494. "type": "string"
  495. }
  496. }
  497. }
  498. ]
  499. }
  500. }
  501. }
  502. }
  503. },
  504. "/api/updateApi": {
  505. "post": {
  506. "security": [
  507. {
  508. "ApiKeyAuth": []
  509. }
  510. ],
  511. "consumes": [
  512. "application/json"
  513. ],
  514. "produces": [
  515. "application/json"
  516. ],
  517. "tags": [
  518. "SysApi"
  519. ],
  520. "summary": "修改基础api",
  521. "parameters": [
  522. {
  523. "description": "api路径, api中文描述, api组, 方法",
  524. "name": "data",
  525. "in": "body",
  526. "required": true,
  527. "schema": {
  528. "$ref": "#/definitions/system.SysApi"
  529. }
  530. }
  531. ],
  532. "responses": {
  533. "200": {
  534. "description": "修改基础api",
  535. "schema": {
  536. "allOf": [
  537. {
  538. "$ref": "#/definitions/response.Response"
  539. },
  540. {
  541. "type": "object",
  542. "properties": {
  543. "msg": {
  544. "type": "string"
  545. }
  546. }
  547. }
  548. ]
  549. }
  550. }
  551. }
  552. }
  553. },
  554. "/attachmentCategory/addCategory": {
  555. "post": {
  556. "security": [
  557. {
  558. "AttachmentCategory": []
  559. }
  560. ],
  561. "consumes": [
  562. "application/json"
  563. ],
  564. "produces": [
  565. "application/json"
  566. ],
  567. "tags": [
  568. "AddCategory"
  569. ],
  570. "summary": "添加媒体库分类",
  571. "parameters": [
  572. {
  573. "description": "媒体库分类数据",
  574. "name": "data",
  575. "in": "body",
  576. "required": true,
  577. "schema": {
  578. "$ref": "#/definitions/example.ExaAttachmentCategory"
  579. }
  580. }
  581. ],
  582. "responses": {}
  583. }
  584. },
  585. "/attachmentCategory/deleteCategory": {
  586. "post": {
  587. "security": [
  588. {
  589. "AttachmentCategory": []
  590. }
  591. ],
  592. "consumes": [
  593. "application/json"
  594. ],
  595. "produces": [
  596. "application/json"
  597. ],
  598. "tags": [
  599. "DeleteCategory"
  600. ],
  601. "summary": "删除分类",
  602. "parameters": [
  603. {
  604. "description": "分类id",
  605. "name": "data",
  606. "in": "body",
  607. "required": true,
  608. "schema": {
  609. "$ref": "#/definitions/request.GetById"
  610. }
  611. }
  612. ],
  613. "responses": {
  614. "200": {
  615. "description": "删除分类",
  616. "schema": {
  617. "allOf": [
  618. {
  619. "$ref": "#/definitions/response.Response"
  620. },
  621. {
  622. "type": "object",
  623. "properties": {
  624. "msg": {
  625. "type": "string"
  626. }
  627. }
  628. }
  629. ]
  630. }
  631. }
  632. }
  633. }
  634. },
  635. "/attachmentCategory/getCategoryList": {
  636. "get": {
  637. "security": [
  638. {
  639. "AttachmentCategory": []
  640. }
  641. ],
  642. "produces": [
  643. "application/json"
  644. ],
  645. "tags": [
  646. "GetCategoryList"
  647. ],
  648. "summary": "媒体库分类列表",
  649. "responses": {
  650. "200": {
  651. "description": "媒体库分类列表",
  652. "schema": {
  653. "allOf": [
  654. {
  655. "$ref": "#/definitions/response.Response"
  656. },
  657. {
  658. "type": "object",
  659. "properties": {
  660. "data": {
  661. "$ref": "#/definitions/example.ExaAttachmentCategory"
  662. },
  663. "msg": {
  664. "type": "string"
  665. }
  666. }
  667. }
  668. ]
  669. }
  670. }
  671. }
  672. }
  673. },
  674. "/authority/copyAuthority": {
  675. "post": {
  676. "security": [
  677. {
  678. "ApiKeyAuth": []
  679. }
  680. ],
  681. "consumes": [
  682. "application/json"
  683. ],
  684. "produces": [
  685. "application/json"
  686. ],
  687. "tags": [
  688. "Authority"
  689. ],
  690. "summary": "拷贝角色",
  691. "parameters": [
  692. {
  693. "description": "旧角色id, 新权限id, 新权限名, 新父角色id",
  694. "name": "data",
  695. "in": "body",
  696. "required": true,
  697. "schema": {
  698. "$ref": "#/definitions/response.SysAuthorityCopyResponse"
  699. }
  700. }
  701. ],
  702. "responses": {
  703. "200": {
  704. "description": "拷贝角色,返回包括系统角色详情",
  705. "schema": {
  706. "allOf": [
  707. {
  708. "$ref": "#/definitions/response.Response"
  709. },
  710. {
  711. "type": "object",
  712. "properties": {
  713. "data": {
  714. "$ref": "#/definitions/response.SysAuthorityResponse"
  715. },
  716. "msg": {
  717. "type": "string"
  718. }
  719. }
  720. }
  721. ]
  722. }
  723. }
  724. }
  725. }
  726. },
  727. "/authority/createAuthority": {
  728. "post": {
  729. "security": [
  730. {
  731. "ApiKeyAuth": []
  732. }
  733. ],
  734. "consumes": [
  735. "application/json"
  736. ],
  737. "produces": [
  738. "application/json"
  739. ],
  740. "tags": [
  741. "Authority"
  742. ],
  743. "summary": "创建角色",
  744. "parameters": [
  745. {
  746. "description": "权限id, 权限名, 父角色id",
  747. "name": "data",
  748. "in": "body",
  749. "required": true,
  750. "schema": {
  751. "$ref": "#/definitions/system.SysAuthority"
  752. }
  753. }
  754. ],
  755. "responses": {
  756. "200": {
  757. "description": "创建角色,返回包括系统角色详情",
  758. "schema": {
  759. "allOf": [
  760. {
  761. "$ref": "#/definitions/response.Response"
  762. },
  763. {
  764. "type": "object",
  765. "properties": {
  766. "data": {
  767. "$ref": "#/definitions/response.SysAuthorityResponse"
  768. },
  769. "msg": {
  770. "type": "string"
  771. }
  772. }
  773. }
  774. ]
  775. }
  776. }
  777. }
  778. }
  779. },
  780. "/authority/deleteAuthority": {
  781. "post": {
  782. "security": [
  783. {
  784. "ApiKeyAuth": []
  785. }
  786. ],
  787. "consumes": [
  788. "application/json"
  789. ],
  790. "produces": [
  791. "application/json"
  792. ],
  793. "tags": [
  794. "Authority"
  795. ],
  796. "summary": "删除角色",
  797. "parameters": [
  798. {
  799. "description": "删除角色",
  800. "name": "data",
  801. "in": "body",
  802. "required": true,
  803. "schema": {
  804. "$ref": "#/definitions/system.SysAuthority"
  805. }
  806. }
  807. ],
  808. "responses": {
  809. "200": {
  810. "description": "删除角色",
  811. "schema": {
  812. "allOf": [
  813. {
  814. "$ref": "#/definitions/response.Response"
  815. },
  816. {
  817. "type": "object",
  818. "properties": {
  819. "msg": {
  820. "type": "string"
  821. }
  822. }
  823. }
  824. ]
  825. }
  826. }
  827. }
  828. }
  829. },
  830. "/authority/getAuthorityList": {
  831. "post": {
  832. "security": [
  833. {
  834. "ApiKeyAuth": []
  835. }
  836. ],
  837. "consumes": [
  838. "application/json"
  839. ],
  840. "produces": [
  841. "application/json"
  842. ],
  843. "tags": [
  844. "Authority"
  845. ],
  846. "summary": "分页获取角色列表",
  847. "parameters": [
  848. {
  849. "description": "页码, 每页大小",
  850. "name": "data",
  851. "in": "body",
  852. "required": true,
  853. "schema": {
  854. "$ref": "#/definitions/request.PageInfo"
  855. }
  856. }
  857. ],
  858. "responses": {
  859. "200": {
  860. "description": "分页获取角色列表,返回包括列表,总数,页码,每页数量",
  861. "schema": {
  862. "allOf": [
  863. {
  864. "$ref": "#/definitions/response.Response"
  865. },
  866. {
  867. "type": "object",
  868. "properties": {
  869. "data": {
  870. "$ref": "#/definitions/response.PageResult"
  871. },
  872. "msg": {
  873. "type": "string"
  874. }
  875. }
  876. }
  877. ]
  878. }
  879. }
  880. }
  881. }
  882. },
  883. "/authority/setDataAuthority": {
  884. "post": {
  885. "security": [
  886. {
  887. "ApiKeyAuth": []
  888. }
  889. ],
  890. "consumes": [
  891. "application/json"
  892. ],
  893. "produces": [
  894. "application/json"
  895. ],
  896. "tags": [
  897. "Authority"
  898. ],
  899. "summary": "设置角色资源权限",
  900. "parameters": [
  901. {
  902. "description": "设置角色资源权限",
  903. "name": "data",
  904. "in": "body",
  905. "required": true,
  906. "schema": {
  907. "$ref": "#/definitions/system.SysAuthority"
  908. }
  909. }
  910. ],
  911. "responses": {
  912. "200": {
  913. "description": "设置角色资源权限",
  914. "schema": {
  915. "allOf": [
  916. {
  917. "$ref": "#/definitions/response.Response"
  918. },
  919. {
  920. "type": "object",
  921. "properties": {
  922. "msg": {
  923. "type": "string"
  924. }
  925. }
  926. }
  927. ]
  928. }
  929. }
  930. }
  931. }
  932. },
  933. "/authority/updateAuthority": {
  934. "put": {
  935. "security": [
  936. {
  937. "ApiKeyAuth": []
  938. }
  939. ],
  940. "consumes": [
  941. "application/json"
  942. ],
  943. "produces": [
  944. "application/json"
  945. ],
  946. "tags": [
  947. "Authority"
  948. ],
  949. "summary": "更新角色信息",
  950. "parameters": [
  951. {
  952. "description": "权限id, 权限名, 父角色id",
  953. "name": "data",
  954. "in": "body",
  955. "required": true,
  956. "schema": {
  957. "$ref": "#/definitions/system.SysAuthority"
  958. }
  959. }
  960. ],
  961. "responses": {
  962. "200": {
  963. "description": "更新角色信息,返回包括系统角色详情",
  964. "schema": {
  965. "allOf": [
  966. {
  967. "$ref": "#/definitions/response.Response"
  968. },
  969. {
  970. "type": "object",
  971. "properties": {
  972. "data": {
  973. "$ref": "#/definitions/response.SysAuthorityResponse"
  974. },
  975. "msg": {
  976. "type": "string"
  977. }
  978. }
  979. }
  980. ]
  981. }
  982. }
  983. }
  984. }
  985. },
  986. "/authorityBtn/canRemoveAuthorityBtn": {
  987. "post": {
  988. "security": [
  989. {
  990. "ApiKeyAuth": []
  991. }
  992. ],
  993. "consumes": [
  994. "application/json"
  995. ],
  996. "produces": [
  997. "application/json"
  998. ],
  999. "tags": [
  1000. "AuthorityBtn"
  1001. ],
  1002. "summary": "设置权限按钮",
  1003. "responses": {
  1004. "200": {
  1005. "description": "删除成功",
  1006. "schema": {
  1007. "allOf": [
  1008. {
  1009. "$ref": "#/definitions/response.Response"
  1010. },
  1011. {
  1012. "type": "object",
  1013. "properties": {
  1014. "msg": {
  1015. "type": "string"
  1016. }
  1017. }
  1018. }
  1019. ]
  1020. }
  1021. }
  1022. }
  1023. }
  1024. },
  1025. "/authorityBtn/getAuthorityBtn": {
  1026. "post": {
  1027. "security": [
  1028. {
  1029. "ApiKeyAuth": []
  1030. }
  1031. ],
  1032. "consumes": [
  1033. "application/json"
  1034. ],
  1035. "produces": [
  1036. "application/json"
  1037. ],
  1038. "tags": [
  1039. "AuthorityBtn"
  1040. ],
  1041. "summary": "获取权限按钮",
  1042. "parameters": [
  1043. {
  1044. "description": "菜单id, 角色id, 选中的按钮id",
  1045. "name": "data",
  1046. "in": "body",
  1047. "required": true,
  1048. "schema": {
  1049. "$ref": "#/definitions/request.SysAuthorityBtnReq"
  1050. }
  1051. }
  1052. ],
  1053. "responses": {
  1054. "200": {
  1055. "description": "返回列表成功",
  1056. "schema": {
  1057. "allOf": [
  1058. {
  1059. "$ref": "#/definitions/response.Response"
  1060. },
  1061. {
  1062. "type": "object",
  1063. "properties": {
  1064. "data": {
  1065. "$ref": "#/definitions/response.SysAuthorityBtnRes"
  1066. },
  1067. "msg": {
  1068. "type": "string"
  1069. }
  1070. }
  1071. }
  1072. ]
  1073. }
  1074. }
  1075. }
  1076. }
  1077. },
  1078. "/authorityBtn/setAuthorityBtn": {
  1079. "post": {
  1080. "security": [
  1081. {
  1082. "ApiKeyAuth": []
  1083. }
  1084. ],
  1085. "consumes": [
  1086. "application/json"
  1087. ],
  1088. "produces": [
  1089. "application/json"
  1090. ],
  1091. "tags": [
  1092. "AuthorityBtn"
  1093. ],
  1094. "summary": "设置权限按钮",
  1095. "parameters": [
  1096. {
  1097. "description": "菜单id, 角色id, 选中的按钮id",
  1098. "name": "data",
  1099. "in": "body",
  1100. "required": true,
  1101. "schema": {
  1102. "$ref": "#/definitions/request.SysAuthorityBtnReq"
  1103. }
  1104. }
  1105. ],
  1106. "responses": {
  1107. "200": {
  1108. "description": "返回列表成功",
  1109. "schema": {
  1110. "allOf": [
  1111. {
  1112. "$ref": "#/definitions/response.Response"
  1113. },
  1114. {
  1115. "type": "object",
  1116. "properties": {
  1117. "msg": {
  1118. "type": "string"
  1119. }
  1120. }
  1121. }
  1122. ]
  1123. }
  1124. }
  1125. }
  1126. }
  1127. },
  1128. "/autoCode/addFunc": {
  1129. "post": {
  1130. "security": [
  1131. {
  1132. "ApiKeyAuth": []
  1133. }
  1134. ],
  1135. "consumes": [
  1136. "application/json"
  1137. ],
  1138. "produces": [
  1139. "application/json"
  1140. ],
  1141. "tags": [
  1142. "AddFunc"
  1143. ],
  1144. "summary": "增加方法",
  1145. "parameters": [
  1146. {
  1147. "description": "增加方法",
  1148. "name": "data",
  1149. "in": "body",
  1150. "required": true,
  1151. "schema": {
  1152. "$ref": "#/definitions/request.AutoCode"
  1153. }
  1154. }
  1155. ],
  1156. "responses": {
  1157. "200": {
  1158. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1159. "schema": {
  1160. "type": "string"
  1161. }
  1162. }
  1163. }
  1164. }
  1165. },
  1166. "/autoCode/createPackage": {
  1167. "post": {
  1168. "security": [
  1169. {
  1170. "ApiKeyAuth": []
  1171. }
  1172. ],
  1173. "consumes": [
  1174. "application/json"
  1175. ],
  1176. "produces": [
  1177. "application/json"
  1178. ],
  1179. "tags": [
  1180. "AutoCodePackage"
  1181. ],
  1182. "summary": "创建package",
  1183. "parameters": [
  1184. {
  1185. "description": "创建package",
  1186. "name": "data",
  1187. "in": "body",
  1188. "required": true,
  1189. "schema": {
  1190. "$ref": "#/definitions/request.SysAutoCodePackageCreate"
  1191. }
  1192. }
  1193. ],
  1194. "responses": {
  1195. "200": {
  1196. "description": "创建package成功",
  1197. "schema": {
  1198. "allOf": [
  1199. {
  1200. "$ref": "#/definitions/response.Response"
  1201. },
  1202. {
  1203. "type": "object",
  1204. "properties": {
  1205. "data": {
  1206. "type": "object",
  1207. "additionalProperties": true
  1208. },
  1209. "msg": {
  1210. "type": "string"
  1211. }
  1212. }
  1213. }
  1214. ]
  1215. }
  1216. }
  1217. }
  1218. }
  1219. },
  1220. "/autoCode/createTemp": {
  1221. "post": {
  1222. "security": [
  1223. {
  1224. "ApiKeyAuth": []
  1225. }
  1226. ],
  1227. "consumes": [
  1228. "application/json"
  1229. ],
  1230. "produces": [
  1231. "application/json"
  1232. ],
  1233. "tags": [
  1234. "AutoCodeTemplate"
  1235. ],
  1236. "summary": "自动代码模板",
  1237. "parameters": [
  1238. {
  1239. "description": "创建自动代码",
  1240. "name": "data",
  1241. "in": "body",
  1242. "required": true,
  1243. "schema": {
  1244. "$ref": "#/definitions/request.AutoCode"
  1245. }
  1246. }
  1247. ],
  1248. "responses": {
  1249. "200": {
  1250. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1251. "schema": {
  1252. "type": "string"
  1253. }
  1254. }
  1255. }
  1256. }
  1257. },
  1258. "/autoCode/delPackage": {
  1259. "post": {
  1260. "security": [
  1261. {
  1262. "ApiKeyAuth": []
  1263. }
  1264. ],
  1265. "consumes": [
  1266. "application/json"
  1267. ],
  1268. "produces": [
  1269. "application/json"
  1270. ],
  1271. "tags": [
  1272. "AutoCode"
  1273. ],
  1274. "summary": "删除package",
  1275. "parameters": [
  1276. {
  1277. "description": "创建package",
  1278. "name": "data",
  1279. "in": "body",
  1280. "required": true,
  1281. "schema": {
  1282. "$ref": "#/definitions/request.GetById"
  1283. }
  1284. }
  1285. ],
  1286. "responses": {
  1287. "200": {
  1288. "description": "删除package成功",
  1289. "schema": {
  1290. "allOf": [
  1291. {
  1292. "$ref": "#/definitions/response.Response"
  1293. },
  1294. {
  1295. "type": "object",
  1296. "properties": {
  1297. "data": {
  1298. "type": "object",
  1299. "additionalProperties": true
  1300. },
  1301. "msg": {
  1302. "type": "string"
  1303. }
  1304. }
  1305. }
  1306. ]
  1307. }
  1308. }
  1309. }
  1310. }
  1311. },
  1312. "/autoCode/delSysHistory": {
  1313. "post": {
  1314. "security": [
  1315. {
  1316. "ApiKeyAuth": []
  1317. }
  1318. ],
  1319. "consumes": [
  1320. "application/json"
  1321. ],
  1322. "produces": [
  1323. "application/json"
  1324. ],
  1325. "tags": [
  1326. "AutoCode"
  1327. ],
  1328. "summary": "删除回滚记录",
  1329. "parameters": [
  1330. {
  1331. "description": "请求参数",
  1332. "name": "data",
  1333. "in": "body",
  1334. "required": true,
  1335. "schema": {
  1336. "$ref": "#/definitions/request.GetById"
  1337. }
  1338. }
  1339. ],
  1340. "responses": {
  1341. "200": {
  1342. "description": "删除回滚记录",
  1343. "schema": {
  1344. "allOf": [
  1345. {
  1346. "$ref": "#/definitions/response.Response"
  1347. },
  1348. {
  1349. "type": "object",
  1350. "properties": {
  1351. "msg": {
  1352. "type": "string"
  1353. }
  1354. }
  1355. }
  1356. ]
  1357. }
  1358. }
  1359. }
  1360. }
  1361. },
  1362. "/autoCode/getColumn": {
  1363. "get": {
  1364. "security": [
  1365. {
  1366. "ApiKeyAuth": []
  1367. }
  1368. ],
  1369. "consumes": [
  1370. "application/json"
  1371. ],
  1372. "produces": [
  1373. "application/json"
  1374. ],
  1375. "tags": [
  1376. "AutoCode"
  1377. ],
  1378. "summary": "获取当前表所有字段",
  1379. "responses": {
  1380. "200": {
  1381. "description": "获取当前表所有字段",
  1382. "schema": {
  1383. "allOf": [
  1384. {
  1385. "$ref": "#/definitions/response.Response"
  1386. },
  1387. {
  1388. "type": "object",
  1389. "properties": {
  1390. "data": {
  1391. "type": "object",
  1392. "additionalProperties": true
  1393. },
  1394. "msg": {
  1395. "type": "string"
  1396. }
  1397. }
  1398. }
  1399. ]
  1400. }
  1401. }
  1402. }
  1403. }
  1404. },
  1405. "/autoCode/getDB": {
  1406. "get": {
  1407. "security": [
  1408. {
  1409. "ApiKeyAuth": []
  1410. }
  1411. ],
  1412. "consumes": [
  1413. "application/json"
  1414. ],
  1415. "produces": [
  1416. "application/json"
  1417. ],
  1418. "tags": [
  1419. "AutoCode"
  1420. ],
  1421. "summary": "获取当前所有数据库",
  1422. "responses": {
  1423. "200": {
  1424. "description": "获取当前所有数据库",
  1425. "schema": {
  1426. "allOf": [
  1427. {
  1428. "$ref": "#/definitions/response.Response"
  1429. },
  1430. {
  1431. "type": "object",
  1432. "properties": {
  1433. "data": {
  1434. "type": "object",
  1435. "additionalProperties": true
  1436. },
  1437. "msg": {
  1438. "type": "string"
  1439. }
  1440. }
  1441. }
  1442. ]
  1443. }
  1444. }
  1445. }
  1446. }
  1447. },
  1448. "/autoCode/getMeta": {
  1449. "post": {
  1450. "security": [
  1451. {
  1452. "ApiKeyAuth": []
  1453. }
  1454. ],
  1455. "consumes": [
  1456. "application/json"
  1457. ],
  1458. "produces": [
  1459. "application/json"
  1460. ],
  1461. "tags": [
  1462. "AutoCode"
  1463. ],
  1464. "summary": "获取meta信息",
  1465. "parameters": [
  1466. {
  1467. "description": "请求参数",
  1468. "name": "data",
  1469. "in": "body",
  1470. "required": true,
  1471. "schema": {
  1472. "$ref": "#/definitions/request.GetById"
  1473. }
  1474. }
  1475. ],
  1476. "responses": {
  1477. "200": {
  1478. "description": "获取meta信息",
  1479. "schema": {
  1480. "allOf": [
  1481. {
  1482. "$ref": "#/definitions/response.Response"
  1483. },
  1484. {
  1485. "type": "object",
  1486. "properties": {
  1487. "data": {
  1488. "type": "object",
  1489. "additionalProperties": true
  1490. },
  1491. "msg": {
  1492. "type": "string"
  1493. }
  1494. }
  1495. }
  1496. ]
  1497. }
  1498. }
  1499. }
  1500. }
  1501. },
  1502. "/autoCode/getPackage": {
  1503. "post": {
  1504. "security": [
  1505. {
  1506. "ApiKeyAuth": []
  1507. }
  1508. ],
  1509. "consumes": [
  1510. "application/json"
  1511. ],
  1512. "produces": [
  1513. "application/json"
  1514. ],
  1515. "tags": [
  1516. "AutoCodePackage"
  1517. ],
  1518. "summary": "获取package",
  1519. "responses": {
  1520. "200": {
  1521. "description": "创建package成功",
  1522. "schema": {
  1523. "allOf": [
  1524. {
  1525. "$ref": "#/definitions/response.Response"
  1526. },
  1527. {
  1528. "type": "object",
  1529. "properties": {
  1530. "data": {
  1531. "type": "object",
  1532. "additionalProperties": true
  1533. },
  1534. "msg": {
  1535. "type": "string"
  1536. }
  1537. }
  1538. }
  1539. ]
  1540. }
  1541. }
  1542. }
  1543. }
  1544. },
  1545. "/autoCode/getSysHistory": {
  1546. "post": {
  1547. "security": [
  1548. {
  1549. "ApiKeyAuth": []
  1550. }
  1551. ],
  1552. "consumes": [
  1553. "application/json"
  1554. ],
  1555. "produces": [
  1556. "application/json"
  1557. ],
  1558. "tags": [
  1559. "AutoCode"
  1560. ],
  1561. "summary": "查询回滚记录",
  1562. "parameters": [
  1563. {
  1564. "description": "请求参数",
  1565. "name": "data",
  1566. "in": "body",
  1567. "required": true,
  1568. "schema": {
  1569. "$ref": "#/definitions/request.PageInfo"
  1570. }
  1571. }
  1572. ],
  1573. "responses": {
  1574. "200": {
  1575. "description": "查询回滚记录,返回包括列表,总数,页码,每页数量",
  1576. "schema": {
  1577. "allOf": [
  1578. {
  1579. "$ref": "#/definitions/response.Response"
  1580. },
  1581. {
  1582. "type": "object",
  1583. "properties": {
  1584. "data": {
  1585. "$ref": "#/definitions/response.PageResult"
  1586. },
  1587. "msg": {
  1588. "type": "string"
  1589. }
  1590. }
  1591. }
  1592. ]
  1593. }
  1594. }
  1595. }
  1596. }
  1597. },
  1598. "/autoCode/getTables": {
  1599. "get": {
  1600. "security": [
  1601. {
  1602. "ApiKeyAuth": []
  1603. }
  1604. ],
  1605. "consumes": [
  1606. "application/json"
  1607. ],
  1608. "produces": [
  1609. "application/json"
  1610. ],
  1611. "tags": [
  1612. "AutoCode"
  1613. ],
  1614. "summary": "获取当前数据库所有表",
  1615. "responses": {
  1616. "200": {
  1617. "description": "获取当前数据库所有表",
  1618. "schema": {
  1619. "allOf": [
  1620. {
  1621. "$ref": "#/definitions/response.Response"
  1622. },
  1623. {
  1624. "type": "object",
  1625. "properties": {
  1626. "data": {
  1627. "type": "object",
  1628. "additionalProperties": true
  1629. },
  1630. "msg": {
  1631. "type": "string"
  1632. }
  1633. }
  1634. }
  1635. ]
  1636. }
  1637. }
  1638. }
  1639. }
  1640. },
  1641. "/autoCode/getTemplates": {
  1642. "get": {
  1643. "security": [
  1644. {
  1645. "ApiKeyAuth": []
  1646. }
  1647. ],
  1648. "consumes": [
  1649. "application/json"
  1650. ],
  1651. "produces": [
  1652. "application/json"
  1653. ],
  1654. "tags": [
  1655. "AutoCodePackage"
  1656. ],
  1657. "summary": "获取package",
  1658. "responses": {
  1659. "200": {
  1660. "description": "创建package成功",
  1661. "schema": {
  1662. "allOf": [
  1663. {
  1664. "$ref": "#/definitions/response.Response"
  1665. },
  1666. {
  1667. "type": "object",
  1668. "properties": {
  1669. "data": {
  1670. "type": "object",
  1671. "additionalProperties": true
  1672. },
  1673. "msg": {
  1674. "type": "string"
  1675. }
  1676. }
  1677. }
  1678. ]
  1679. }
  1680. }
  1681. }
  1682. }
  1683. },
  1684. "/autoCode/initAPI": {
  1685. "post": {
  1686. "security": [
  1687. {
  1688. "ApiKeyAuth": []
  1689. }
  1690. ],
  1691. "consumes": [
  1692. "application/json"
  1693. ],
  1694. "produces": [
  1695. "application/json"
  1696. ],
  1697. "tags": [
  1698. "AutoCodePlugin"
  1699. ],
  1700. "summary": "打包插件",
  1701. "responses": {
  1702. "200": {
  1703. "description": "打包插件成功",
  1704. "schema": {
  1705. "allOf": [
  1706. {
  1707. "$ref": "#/definitions/response.Response"
  1708. },
  1709. {
  1710. "type": "object",
  1711. "properties": {
  1712. "data": {
  1713. "type": "object",
  1714. "additionalProperties": true
  1715. },
  1716. "msg": {
  1717. "type": "string"
  1718. }
  1719. }
  1720. }
  1721. ]
  1722. }
  1723. }
  1724. }
  1725. }
  1726. },
  1727. "/autoCode/initMenu": {
  1728. "post": {
  1729. "security": [
  1730. {
  1731. "ApiKeyAuth": []
  1732. }
  1733. ],
  1734. "consumes": [
  1735. "application/json"
  1736. ],
  1737. "produces": [
  1738. "application/json"
  1739. ],
  1740. "tags": [
  1741. "AutoCodePlugin"
  1742. ],
  1743. "summary": "打包插件",
  1744. "responses": {
  1745. "200": {
  1746. "description": "打包插件成功",
  1747. "schema": {
  1748. "allOf": [
  1749. {
  1750. "$ref": "#/definitions/response.Response"
  1751. },
  1752. {
  1753. "type": "object",
  1754. "properties": {
  1755. "data": {
  1756. "type": "object",
  1757. "additionalProperties": true
  1758. },
  1759. "msg": {
  1760. "type": "string"
  1761. }
  1762. }
  1763. }
  1764. ]
  1765. }
  1766. }
  1767. }
  1768. }
  1769. },
  1770. "/autoCode/installPlugin": {
  1771. "post": {
  1772. "security": [
  1773. {
  1774. "ApiKeyAuth": []
  1775. }
  1776. ],
  1777. "consumes": [
  1778. "multipart/form-data"
  1779. ],
  1780. "produces": [
  1781. "application/json"
  1782. ],
  1783. "tags": [
  1784. "AutoCodePlugin"
  1785. ],
  1786. "summary": "安装插件",
  1787. "parameters": [
  1788. {
  1789. "type": "file",
  1790. "description": "this is a test file",
  1791. "name": "plug",
  1792. "in": "formData",
  1793. "required": true
  1794. }
  1795. ],
  1796. "responses": {
  1797. "200": {
  1798. "description": "安装插件成功",
  1799. "schema": {
  1800. "allOf": [
  1801. {
  1802. "$ref": "#/definitions/response.Response"
  1803. },
  1804. {
  1805. "type": "object",
  1806. "properties": {
  1807. "data": {
  1808. "type": "array",
  1809. "items": {
  1810. "type": "object"
  1811. }
  1812. },
  1813. "msg": {
  1814. "type": "string"
  1815. }
  1816. }
  1817. }
  1818. ]
  1819. }
  1820. }
  1821. }
  1822. }
  1823. },
  1824. "/autoCode/preview": {
  1825. "post": {
  1826. "security": [
  1827. {
  1828. "ApiKeyAuth": []
  1829. }
  1830. ],
  1831. "consumes": [
  1832. "application/json"
  1833. ],
  1834. "produces": [
  1835. "application/json"
  1836. ],
  1837. "tags": [
  1838. "AutoCodeTemplate"
  1839. ],
  1840. "summary": "预览创建后的代码",
  1841. "parameters": [
  1842. {
  1843. "description": "预览创建代码",
  1844. "name": "data",
  1845. "in": "body",
  1846. "required": true,
  1847. "schema": {
  1848. "$ref": "#/definitions/request.AutoCode"
  1849. }
  1850. }
  1851. ],
  1852. "responses": {
  1853. "200": {
  1854. "description": "预览创建后的代码",
  1855. "schema": {
  1856. "allOf": [
  1857. {
  1858. "$ref": "#/definitions/response.Response"
  1859. },
  1860. {
  1861. "type": "object",
  1862. "properties": {
  1863. "data": {
  1864. "type": "object",
  1865. "additionalProperties": true
  1866. },
  1867. "msg": {
  1868. "type": "string"
  1869. }
  1870. }
  1871. }
  1872. ]
  1873. }
  1874. }
  1875. }
  1876. }
  1877. },
  1878. "/autoCode/pubPlug": {
  1879. "post": {
  1880. "security": [
  1881. {
  1882. "ApiKeyAuth": []
  1883. }
  1884. ],
  1885. "consumes": [
  1886. "application/json"
  1887. ],
  1888. "produces": [
  1889. "application/json"
  1890. ],
  1891. "tags": [
  1892. "AutoCodePlugin"
  1893. ],
  1894. "summary": "打包插件",
  1895. "parameters": [
  1896. {
  1897. "type": "string",
  1898. "description": "插件名称",
  1899. "name": "plugName",
  1900. "in": "query",
  1901. "required": true
  1902. }
  1903. ],
  1904. "responses": {
  1905. "200": {
  1906. "description": "打包插件成功",
  1907. "schema": {
  1908. "allOf": [
  1909. {
  1910. "$ref": "#/definitions/response.Response"
  1911. },
  1912. {
  1913. "type": "object",
  1914. "properties": {
  1915. "data": {
  1916. "type": "object",
  1917. "additionalProperties": true
  1918. },
  1919. "msg": {
  1920. "type": "string"
  1921. }
  1922. }
  1923. }
  1924. ]
  1925. }
  1926. }
  1927. }
  1928. }
  1929. },
  1930. "/autoCode/rollback": {
  1931. "post": {
  1932. "security": [
  1933. {
  1934. "ApiKeyAuth": []
  1935. }
  1936. ],
  1937. "consumes": [
  1938. "application/json"
  1939. ],
  1940. "produces": [
  1941. "application/json"
  1942. ],
  1943. "tags": [
  1944. "AutoCode"
  1945. ],
  1946. "summary": "回滚自动生成代码",
  1947. "parameters": [
  1948. {
  1949. "description": "请求参数",
  1950. "name": "data",
  1951. "in": "body",
  1952. "required": true,
  1953. "schema": {
  1954. "$ref": "#/definitions/request.SysAutoHistoryRollBack"
  1955. }
  1956. }
  1957. ],
  1958. "responses": {
  1959. "200": {
  1960. "description": "回滚自动生成代码",
  1961. "schema": {
  1962. "allOf": [
  1963. {
  1964. "$ref": "#/definitions/response.Response"
  1965. },
  1966. {
  1967. "type": "object",
  1968. "properties": {
  1969. "msg": {
  1970. "type": "string"
  1971. }
  1972. }
  1973. }
  1974. ]
  1975. }
  1976. }
  1977. }
  1978. }
  1979. },
  1980. "/base/captcha": {
  1981. "post": {
  1982. "security": [
  1983. {
  1984. "ApiKeyAuth": []
  1985. }
  1986. ],
  1987. "consumes": [
  1988. "application/json"
  1989. ],
  1990. "produces": [
  1991. "application/json"
  1992. ],
  1993. "tags": [
  1994. "Base"
  1995. ],
  1996. "summary": "生成验证码",
  1997. "responses": {
  1998. "200": {
  1999. "description": "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码",
  2000. "schema": {
  2001. "allOf": [
  2002. {
  2003. "$ref": "#/definitions/response.Response"
  2004. },
  2005. {
  2006. "type": "object",
  2007. "properties": {
  2008. "data": {
  2009. "$ref": "#/definitions/response.SysCaptchaResponse"
  2010. },
  2011. "msg": {
  2012. "type": "string"
  2013. }
  2014. }
  2015. }
  2016. ]
  2017. }
  2018. }
  2019. }
  2020. }
  2021. },
  2022. "/base/login": {
  2023. "post": {
  2024. "produces": [
  2025. "application/json"
  2026. ],
  2027. "tags": [
  2028. "Base"
  2029. ],
  2030. "summary": "用户登录",
  2031. "parameters": [
  2032. {
  2033. "description": "用户名, 密码, 验证码",
  2034. "name": "data",
  2035. "in": "body",
  2036. "required": true,
  2037. "schema": {
  2038. "$ref": "#/definitions/request.Login"
  2039. }
  2040. }
  2041. ],
  2042. "responses": {
  2043. "200": {
  2044. "description": "返回包括用户信息,token,过期时间",
  2045. "schema": {
  2046. "allOf": [
  2047. {
  2048. "$ref": "#/definitions/response.Response"
  2049. },
  2050. {
  2051. "type": "object",
  2052. "properties": {
  2053. "data": {
  2054. "$ref": "#/definitions/response.LoginResponse"
  2055. },
  2056. "msg": {
  2057. "type": "string"
  2058. }
  2059. }
  2060. }
  2061. ]
  2062. }
  2063. }
  2064. }
  2065. }
  2066. },
  2067. "/casbin/UpdateCasbin": {
  2068. "post": {
  2069. "security": [
  2070. {
  2071. "ApiKeyAuth": []
  2072. }
  2073. ],
  2074. "consumes": [
  2075. "application/json"
  2076. ],
  2077. "produces": [
  2078. "application/json"
  2079. ],
  2080. "tags": [
  2081. "Casbin"
  2082. ],
  2083. "summary": "更新角色api权限",
  2084. "parameters": [
  2085. {
  2086. "description": "权限id, 权限模型列表",
  2087. "name": "data",
  2088. "in": "body",
  2089. "required": true,
  2090. "schema": {
  2091. "$ref": "#/definitions/request.CasbinInReceive"
  2092. }
  2093. }
  2094. ],
  2095. "responses": {
  2096. "200": {
  2097. "description": "更新角色api权限",
  2098. "schema": {
  2099. "allOf": [
  2100. {
  2101. "$ref": "#/definitions/response.Response"
  2102. },
  2103. {
  2104. "type": "object",
  2105. "properties": {
  2106. "msg": {
  2107. "type": "string"
  2108. }
  2109. }
  2110. }
  2111. ]
  2112. }
  2113. }
  2114. }
  2115. }
  2116. },
  2117. "/casbin/getPolicyPathByAuthorityId": {
  2118. "post": {
  2119. "security": [
  2120. {
  2121. "ApiKeyAuth": []
  2122. }
  2123. ],
  2124. "consumes": [
  2125. "application/json"
  2126. ],
  2127. "produces": [
  2128. "application/json"
  2129. ],
  2130. "tags": [
  2131. "Casbin"
  2132. ],
  2133. "summary": "获取权限列表",
  2134. "parameters": [
  2135. {
  2136. "description": "权限id, 权限模型列表",
  2137. "name": "data",
  2138. "in": "body",
  2139. "required": true,
  2140. "schema": {
  2141. "$ref": "#/definitions/request.CasbinInReceive"
  2142. }
  2143. }
  2144. ],
  2145. "responses": {
  2146. "200": {
  2147. "description": "获取权限列表,返回包括casbin详情列表",
  2148. "schema": {
  2149. "allOf": [
  2150. {
  2151. "$ref": "#/definitions/response.Response"
  2152. },
  2153. {
  2154. "type": "object",
  2155. "properties": {
  2156. "data": {
  2157. "$ref": "#/definitions/response.PolicyPathResponse"
  2158. },
  2159. "msg": {
  2160. "type": "string"
  2161. }
  2162. }
  2163. }
  2164. ]
  2165. }
  2166. }
  2167. }
  2168. }
  2169. },
  2170. "/customer/customer": {
  2171. "get": {
  2172. "security": [
  2173. {
  2174. "ApiKeyAuth": []
  2175. }
  2176. ],
  2177. "consumes": [
  2178. "application/json"
  2179. ],
  2180. "produces": [
  2181. "application/json"
  2182. ],
  2183. "tags": [
  2184. "ExaCustomer"
  2185. ],
  2186. "summary": "获取单一客户信息",
  2187. "parameters": [
  2188. {
  2189. "type": "integer",
  2190. "description": "主键ID",
  2191. "name": "ID",
  2192. "in": "query"
  2193. },
  2194. {
  2195. "type": "string",
  2196. "description": "创建时间",
  2197. "name": "createdAt",
  2198. "in": "query"
  2199. },
  2200. {
  2201. "type": "string",
  2202. "description": "客户名",
  2203. "name": "customerName",
  2204. "in": "query"
  2205. },
  2206. {
  2207. "type": "string",
  2208. "description": "客户手机号",
  2209. "name": "customerPhoneData",
  2210. "in": "query"
  2211. },
  2212. {
  2213. "type": "integer",
  2214. "description": "管理角色ID",
  2215. "name": "sysUserAuthorityID",
  2216. "in": "query"
  2217. },
  2218. {
  2219. "type": "integer",
  2220. "description": "管理ID",
  2221. "name": "sysUserId",
  2222. "in": "query"
  2223. },
  2224. {
  2225. "type": "string",
  2226. "description": "更新时间",
  2227. "name": "updatedAt",
  2228. "in": "query"
  2229. }
  2230. ],
  2231. "responses": {
  2232. "200": {
  2233. "description": "获取单一客户信息,返回包括客户详情",
  2234. "schema": {
  2235. "allOf": [
  2236. {
  2237. "$ref": "#/definitions/response.Response"
  2238. },
  2239. {
  2240. "type": "object",
  2241. "properties": {
  2242. "data": {
  2243. "$ref": "#/definitions/response.ExaCustomerResponse"
  2244. },
  2245. "msg": {
  2246. "type": "string"
  2247. }
  2248. }
  2249. }
  2250. ]
  2251. }
  2252. }
  2253. }
  2254. },
  2255. "put": {
  2256. "security": [
  2257. {
  2258. "ApiKeyAuth": []
  2259. }
  2260. ],
  2261. "consumes": [
  2262. "application/json"
  2263. ],
  2264. "produces": [
  2265. "application/json"
  2266. ],
  2267. "tags": [
  2268. "ExaCustomer"
  2269. ],
  2270. "summary": "更新客户信息",
  2271. "parameters": [
  2272. {
  2273. "description": "客户ID, 客户信息",
  2274. "name": "data",
  2275. "in": "body",
  2276. "required": true,
  2277. "schema": {
  2278. "$ref": "#/definitions/example.ExaCustomer"
  2279. }
  2280. }
  2281. ],
  2282. "responses": {
  2283. "200": {
  2284. "description": "更新客户信息",
  2285. "schema": {
  2286. "allOf": [
  2287. {
  2288. "$ref": "#/definitions/response.Response"
  2289. },
  2290. {
  2291. "type": "object",
  2292. "properties": {
  2293. "msg": {
  2294. "type": "string"
  2295. }
  2296. }
  2297. }
  2298. ]
  2299. }
  2300. }
  2301. }
  2302. },
  2303. "post": {
  2304. "security": [
  2305. {
  2306. "ApiKeyAuth": []
  2307. }
  2308. ],
  2309. "consumes": [
  2310. "application/json"
  2311. ],
  2312. "produces": [
  2313. "application/json"
  2314. ],
  2315. "tags": [
  2316. "ExaCustomer"
  2317. ],
  2318. "summary": "创建客户",
  2319. "parameters": [
  2320. {
  2321. "description": "客户用户名, 客户手机号码",
  2322. "name": "data",
  2323. "in": "body",
  2324. "required": true,
  2325. "schema": {
  2326. "$ref": "#/definitions/example.ExaCustomer"
  2327. }
  2328. }
  2329. ],
  2330. "responses": {
  2331. "200": {
  2332. "description": "创建客户",
  2333. "schema": {
  2334. "allOf": [
  2335. {
  2336. "$ref": "#/definitions/response.Response"
  2337. },
  2338. {
  2339. "type": "object",
  2340. "properties": {
  2341. "msg": {
  2342. "type": "string"
  2343. }
  2344. }
  2345. }
  2346. ]
  2347. }
  2348. }
  2349. }
  2350. },
  2351. "delete": {
  2352. "security": [
  2353. {
  2354. "ApiKeyAuth": []
  2355. }
  2356. ],
  2357. "consumes": [
  2358. "application/json"
  2359. ],
  2360. "produces": [
  2361. "application/json"
  2362. ],
  2363. "tags": [
  2364. "ExaCustomer"
  2365. ],
  2366. "summary": "删除客户",
  2367. "parameters": [
  2368. {
  2369. "description": "客户ID",
  2370. "name": "data",
  2371. "in": "body",
  2372. "required": true,
  2373. "schema": {
  2374. "$ref": "#/definitions/example.ExaCustomer"
  2375. }
  2376. }
  2377. ],
  2378. "responses": {
  2379. "200": {
  2380. "description": "删除客户",
  2381. "schema": {
  2382. "allOf": [
  2383. {
  2384. "$ref": "#/definitions/response.Response"
  2385. },
  2386. {
  2387. "type": "object",
  2388. "properties": {
  2389. "msg": {
  2390. "type": "string"
  2391. }
  2392. }
  2393. }
  2394. ]
  2395. }
  2396. }
  2397. }
  2398. }
  2399. },
  2400. "/customer/customerList": {
  2401. "get": {
  2402. "security": [
  2403. {
  2404. "ApiKeyAuth": []
  2405. }
  2406. ],
  2407. "consumes": [
  2408. "application/json"
  2409. ],
  2410. "produces": [
  2411. "application/json"
  2412. ],
  2413. "tags": [
  2414. "ExaCustomer"
  2415. ],
  2416. "summary": "分页获取权限客户列表",
  2417. "parameters": [
  2418. {
  2419. "type": "string",
  2420. "description": "关键字",
  2421. "name": "keyword",
  2422. "in": "query"
  2423. },
  2424. {
  2425. "type": "integer",
  2426. "description": "页码",
  2427. "name": "page",
  2428. "in": "query"
  2429. },
  2430. {
  2431. "type": "integer",
  2432. "description": "每页大小",
  2433. "name": "pageSize",
  2434. "in": "query"
  2435. }
  2436. ],
  2437. "responses": {
  2438. "200": {
  2439. "description": "分页获取权限客户列表,返回包括列表,总数,页码,每页数量",
  2440. "schema": {
  2441. "allOf": [
  2442. {
  2443. "$ref": "#/definitions/response.Response"
  2444. },
  2445. {
  2446. "type": "object",
  2447. "properties": {
  2448. "data": {
  2449. "$ref": "#/definitions/response.PageResult"
  2450. },
  2451. "msg": {
  2452. "type": "string"
  2453. }
  2454. }
  2455. }
  2456. ]
  2457. }
  2458. }
  2459. }
  2460. }
  2461. },
  2462. "/email/emailTest": {
  2463. "post": {
  2464. "security": [
  2465. {
  2466. "ApiKeyAuth": []
  2467. }
  2468. ],
  2469. "produces": [
  2470. "application/json"
  2471. ],
  2472. "tags": [
  2473. "System"
  2474. ],
  2475. "summary": "发送测试邮件",
  2476. "responses": {
  2477. "200": {
  2478. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  2479. "schema": {
  2480. "type": "string"
  2481. }
  2482. }
  2483. }
  2484. }
  2485. },
  2486. "/email/sendEmail": {
  2487. "post": {
  2488. "security": [
  2489. {
  2490. "ApiKeyAuth": []
  2491. }
  2492. ],
  2493. "produces": [
  2494. "application/json"
  2495. ],
  2496. "tags": [
  2497. "System"
  2498. ],
  2499. "summary": "发送邮件",
  2500. "parameters": [
  2501. {
  2502. "description": "发送邮件必须的参数",
  2503. "name": "data",
  2504. "in": "body",
  2505. "required": true,
  2506. "schema": {
  2507. "$ref": "#/definitions/response.Email"
  2508. }
  2509. }
  2510. ],
  2511. "responses": {
  2512. "200": {
  2513. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  2514. "schema": {
  2515. "type": "string"
  2516. }
  2517. }
  2518. }
  2519. }
  2520. },
  2521. "/fileUploadAndDownload/breakpointContinue": {
  2522. "post": {
  2523. "security": [
  2524. {
  2525. "ApiKeyAuth": []
  2526. }
  2527. ],
  2528. "consumes": [
  2529. "multipart/form-data"
  2530. ],
  2531. "produces": [
  2532. "application/json"
  2533. ],
  2534. "tags": [
  2535. "ExaFileUploadAndDownload"
  2536. ],
  2537. "summary": "断点续传到服务器",
  2538. "parameters": [
  2539. {
  2540. "type": "file",
  2541. "description": "an example for breakpoint resume, 断点续传示例",
  2542. "name": "file",
  2543. "in": "formData",
  2544. "required": true
  2545. }
  2546. ],
  2547. "responses": {
  2548. "200": {
  2549. "description": "断点续传到服务器",
  2550. "schema": {
  2551. "allOf": [
  2552. {
  2553. "$ref": "#/definitions/response.Response"
  2554. },
  2555. {
  2556. "type": "object",
  2557. "properties": {
  2558. "msg": {
  2559. "type": "string"
  2560. }
  2561. }
  2562. }
  2563. ]
  2564. }
  2565. }
  2566. }
  2567. }
  2568. },
  2569. "/fileUploadAndDownload/deleteFile": {
  2570. "post": {
  2571. "security": [
  2572. {
  2573. "ApiKeyAuth": []
  2574. }
  2575. ],
  2576. "produces": [
  2577. "application/json"
  2578. ],
  2579. "tags": [
  2580. "ExaFileUploadAndDownload"
  2581. ],
  2582. "summary": "删除文件",
  2583. "parameters": [
  2584. {
  2585. "description": "传入文件里面id即可",
  2586. "name": "data",
  2587. "in": "body",
  2588. "required": true,
  2589. "schema": {
  2590. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  2591. }
  2592. }
  2593. ],
  2594. "responses": {
  2595. "200": {
  2596. "description": "删除文件",
  2597. "schema": {
  2598. "allOf": [
  2599. {
  2600. "$ref": "#/definitions/response.Response"
  2601. },
  2602. {
  2603. "type": "object",
  2604. "properties": {
  2605. "msg": {
  2606. "type": "string"
  2607. }
  2608. }
  2609. }
  2610. ]
  2611. }
  2612. }
  2613. }
  2614. }
  2615. },
  2616. "/fileUploadAndDownload/findFile": {
  2617. "get": {
  2618. "security": [
  2619. {
  2620. "ApiKeyAuth": []
  2621. }
  2622. ],
  2623. "consumes": [
  2624. "multipart/form-data"
  2625. ],
  2626. "produces": [
  2627. "application/json"
  2628. ],
  2629. "tags": [
  2630. "ExaFileUploadAndDownload"
  2631. ],
  2632. "summary": "查找文件",
  2633. "parameters": [
  2634. {
  2635. "type": "file",
  2636. "description": "Find the file, 查找文件",
  2637. "name": "file",
  2638. "in": "formData",
  2639. "required": true
  2640. }
  2641. ],
  2642. "responses": {
  2643. "200": {
  2644. "description": "查找文件,返回包括文件详情",
  2645. "schema": {
  2646. "allOf": [
  2647. {
  2648. "$ref": "#/definitions/response.Response"
  2649. },
  2650. {
  2651. "type": "object",
  2652. "properties": {
  2653. "data": {
  2654. "$ref": "#/definitions/response.FileResponse"
  2655. },
  2656. "msg": {
  2657. "type": "string"
  2658. }
  2659. }
  2660. }
  2661. ]
  2662. }
  2663. }
  2664. }
  2665. },
  2666. "post": {
  2667. "security": [
  2668. {
  2669. "ApiKeyAuth": []
  2670. }
  2671. ],
  2672. "consumes": [
  2673. "multipart/form-data"
  2674. ],
  2675. "produces": [
  2676. "application/json"
  2677. ],
  2678. "tags": [
  2679. "ExaFileUploadAndDownload"
  2680. ],
  2681. "summary": "创建文件",
  2682. "parameters": [
  2683. {
  2684. "type": "file",
  2685. "description": "上传文件完成",
  2686. "name": "file",
  2687. "in": "formData",
  2688. "required": true
  2689. }
  2690. ],
  2691. "responses": {
  2692. "200": {
  2693. "description": "创建文件,返回包括文件路径",
  2694. "schema": {
  2695. "allOf": [
  2696. {
  2697. "$ref": "#/definitions/response.Response"
  2698. },
  2699. {
  2700. "type": "object",
  2701. "properties": {
  2702. "data": {
  2703. "$ref": "#/definitions/response.FilePathResponse"
  2704. },
  2705. "msg": {
  2706. "type": "string"
  2707. }
  2708. }
  2709. }
  2710. ]
  2711. }
  2712. }
  2713. }
  2714. }
  2715. },
  2716. "/fileUploadAndDownload/getFileList": {
  2717. "post": {
  2718. "security": [
  2719. {
  2720. "ApiKeyAuth": []
  2721. }
  2722. ],
  2723. "consumes": [
  2724. "application/json"
  2725. ],
  2726. "produces": [
  2727. "application/json"
  2728. ],
  2729. "tags": [
  2730. "ExaFileUploadAndDownload"
  2731. ],
  2732. "summary": "分页文件列表",
  2733. "parameters": [
  2734. {
  2735. "description": "页码, 每页大小, 分类id",
  2736. "name": "data",
  2737. "in": "body",
  2738. "required": true,
  2739. "schema": {
  2740. "$ref": "#/definitions/request.ExaAttachmentCategorySearch"
  2741. }
  2742. }
  2743. ],
  2744. "responses": {
  2745. "200": {
  2746. "description": "分页文件列表,返回包括列表,总数,页码,每页数量",
  2747. "schema": {
  2748. "allOf": [
  2749. {
  2750. "$ref": "#/definitions/response.Response"
  2751. },
  2752. {
  2753. "type": "object",
  2754. "properties": {
  2755. "data": {
  2756. "$ref": "#/definitions/response.PageResult"
  2757. },
  2758. "msg": {
  2759. "type": "string"
  2760. }
  2761. }
  2762. }
  2763. ]
  2764. }
  2765. }
  2766. }
  2767. }
  2768. },
  2769. "/fileUploadAndDownload/importURL": {
  2770. "post": {
  2771. "security": [
  2772. {
  2773. "ApiKeyAuth": []
  2774. }
  2775. ],
  2776. "produces": [
  2777. "application/json"
  2778. ],
  2779. "tags": [
  2780. "ExaFileUploadAndDownload"
  2781. ],
  2782. "summary": "导入URL",
  2783. "parameters": [
  2784. {
  2785. "description": "对象",
  2786. "name": "data",
  2787. "in": "body",
  2788. "required": true,
  2789. "schema": {
  2790. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  2791. }
  2792. }
  2793. ],
  2794. "responses": {
  2795. "200": {
  2796. "description": "导入URL",
  2797. "schema": {
  2798. "allOf": [
  2799. {
  2800. "$ref": "#/definitions/response.Response"
  2801. },
  2802. {
  2803. "type": "object",
  2804. "properties": {
  2805. "msg": {
  2806. "type": "string"
  2807. }
  2808. }
  2809. }
  2810. ]
  2811. }
  2812. }
  2813. }
  2814. }
  2815. },
  2816. "/fileUploadAndDownload/removeChunk": {
  2817. "post": {
  2818. "security": [
  2819. {
  2820. "ApiKeyAuth": []
  2821. }
  2822. ],
  2823. "consumes": [
  2824. "multipart/form-data"
  2825. ],
  2826. "produces": [
  2827. "application/json"
  2828. ],
  2829. "tags": [
  2830. "ExaFileUploadAndDownload"
  2831. ],
  2832. "summary": "删除切片",
  2833. "parameters": [
  2834. {
  2835. "type": "file",
  2836. "description": "删除缓存切片",
  2837. "name": "file",
  2838. "in": "formData",
  2839. "required": true
  2840. }
  2841. ],
  2842. "responses": {
  2843. "200": {
  2844. "description": "删除切片",
  2845. "schema": {
  2846. "allOf": [
  2847. {
  2848. "$ref": "#/definitions/response.Response"
  2849. },
  2850. {
  2851. "type": "object",
  2852. "properties": {
  2853. "msg": {
  2854. "type": "string"
  2855. }
  2856. }
  2857. }
  2858. ]
  2859. }
  2860. }
  2861. }
  2862. }
  2863. },
  2864. "/fileUploadAndDownload/upload": {
  2865. "post": {
  2866. "security": [
  2867. {
  2868. "ApiKeyAuth": []
  2869. }
  2870. ],
  2871. "consumes": [
  2872. "multipart/form-data"
  2873. ],
  2874. "produces": [
  2875. "application/json"
  2876. ],
  2877. "tags": [
  2878. "ExaFileUploadAndDownload"
  2879. ],
  2880. "summary": "上传文件示例",
  2881. "parameters": [
  2882. {
  2883. "type": "file",
  2884. "description": "上传文件示例",
  2885. "name": "file",
  2886. "in": "formData",
  2887. "required": true
  2888. }
  2889. ],
  2890. "responses": {
  2891. "200": {
  2892. "description": "上传文件示例,返回包括文件详情",
  2893. "schema": {
  2894. "allOf": [
  2895. {
  2896. "$ref": "#/definitions/response.Response"
  2897. },
  2898. {
  2899. "type": "object",
  2900. "properties": {
  2901. "data": {
  2902. "$ref": "#/definitions/response.ExaFileResponse"
  2903. },
  2904. "msg": {
  2905. "type": "string"
  2906. }
  2907. }
  2908. }
  2909. ]
  2910. }
  2911. }
  2912. }
  2913. }
  2914. },
  2915. "/info/createInfo": {
  2916. "post": {
  2917. "security": [
  2918. {
  2919. "ApiKeyAuth": []
  2920. }
  2921. ],
  2922. "consumes": [
  2923. "application/json"
  2924. ],
  2925. "produces": [
  2926. "application/json"
  2927. ],
  2928. "tags": [
  2929. "Info"
  2930. ],
  2931. "summary": "创建公告",
  2932. "parameters": [
  2933. {
  2934. "description": "创建公告",
  2935. "name": "data",
  2936. "in": "body",
  2937. "required": true,
  2938. "schema": {
  2939. "$ref": "#/definitions/model.Info"
  2940. }
  2941. }
  2942. ],
  2943. "responses": {
  2944. "200": {
  2945. "description": "创建成功",
  2946. "schema": {
  2947. "allOf": [
  2948. {
  2949. "$ref": "#/definitions/response.Response"
  2950. },
  2951. {
  2952. "type": "object",
  2953. "properties": {
  2954. "msg": {
  2955. "type": "string"
  2956. }
  2957. }
  2958. }
  2959. ]
  2960. }
  2961. }
  2962. }
  2963. }
  2964. },
  2965. "/info/deleteInfo": {
  2966. "delete": {
  2967. "security": [
  2968. {
  2969. "ApiKeyAuth": []
  2970. }
  2971. ],
  2972. "consumes": [
  2973. "application/json"
  2974. ],
  2975. "produces": [
  2976. "application/json"
  2977. ],
  2978. "tags": [
  2979. "Info"
  2980. ],
  2981. "summary": "删除公告",
  2982. "parameters": [
  2983. {
  2984. "description": "删除公告",
  2985. "name": "data",
  2986. "in": "body",
  2987. "required": true,
  2988. "schema": {
  2989. "$ref": "#/definitions/model.Info"
  2990. }
  2991. }
  2992. ],
  2993. "responses": {
  2994. "200": {
  2995. "description": "删除成功",
  2996. "schema": {
  2997. "allOf": [
  2998. {
  2999. "$ref": "#/definitions/response.Response"
  3000. },
  3001. {
  3002. "type": "object",
  3003. "properties": {
  3004. "msg": {
  3005. "type": "string"
  3006. }
  3007. }
  3008. }
  3009. ]
  3010. }
  3011. }
  3012. }
  3013. }
  3014. },
  3015. "/info/deleteInfoByIds": {
  3016. "delete": {
  3017. "security": [
  3018. {
  3019. "ApiKeyAuth": []
  3020. }
  3021. ],
  3022. "consumes": [
  3023. "application/json"
  3024. ],
  3025. "produces": [
  3026. "application/json"
  3027. ],
  3028. "tags": [
  3029. "Info"
  3030. ],
  3031. "summary": "批量删除公告",
  3032. "responses": {
  3033. "200": {
  3034. "description": "批量删除成功",
  3035. "schema": {
  3036. "allOf": [
  3037. {
  3038. "$ref": "#/definitions/response.Response"
  3039. },
  3040. {
  3041. "type": "object",
  3042. "properties": {
  3043. "msg": {
  3044. "type": "string"
  3045. }
  3046. }
  3047. }
  3048. ]
  3049. }
  3050. }
  3051. }
  3052. }
  3053. },
  3054. "/info/findInfo": {
  3055. "get": {
  3056. "security": [
  3057. {
  3058. "ApiKeyAuth": []
  3059. }
  3060. ],
  3061. "consumes": [
  3062. "application/json"
  3063. ],
  3064. "produces": [
  3065. "application/json"
  3066. ],
  3067. "tags": [
  3068. "Info"
  3069. ],
  3070. "summary": "用id查询公告",
  3071. "parameters": [
  3072. {
  3073. "type": "integer",
  3074. "description": "主键ID",
  3075. "name": "ID",
  3076. "in": "query"
  3077. },
  3078. {
  3079. "type": "string",
  3080. "description": "内容",
  3081. "name": "content",
  3082. "in": "query"
  3083. },
  3084. {
  3085. "type": "string",
  3086. "description": "创建时间",
  3087. "name": "createdAt",
  3088. "in": "query"
  3089. },
  3090. {
  3091. "type": "string",
  3092. "description": "标题",
  3093. "name": "title",
  3094. "in": "query"
  3095. },
  3096. {
  3097. "type": "string",
  3098. "description": "更新时间",
  3099. "name": "updatedAt",
  3100. "in": "query"
  3101. },
  3102. {
  3103. "type": "integer",
  3104. "description": "作者",
  3105. "name": "userID",
  3106. "in": "query"
  3107. }
  3108. ],
  3109. "responses": {
  3110. "200": {
  3111. "description": "查询成功",
  3112. "schema": {
  3113. "allOf": [
  3114. {
  3115. "$ref": "#/definitions/response.Response"
  3116. },
  3117. {
  3118. "type": "object",
  3119. "properties": {
  3120. "data": {
  3121. "$ref": "#/definitions/model.Info"
  3122. },
  3123. "msg": {
  3124. "type": "string"
  3125. }
  3126. }
  3127. }
  3128. ]
  3129. }
  3130. }
  3131. }
  3132. }
  3133. },
  3134. "/info/getInfoDataSource": {
  3135. "get": {
  3136. "consumes": [
  3137. "application/json"
  3138. ],
  3139. "produces": [
  3140. "application/json"
  3141. ],
  3142. "tags": [
  3143. "Info"
  3144. ],
  3145. "summary": "获取Info的数据源",
  3146. "responses": {
  3147. "200": {
  3148. "description": "查询成功",
  3149. "schema": {
  3150. "allOf": [
  3151. {
  3152. "$ref": "#/definitions/response.Response"
  3153. },
  3154. {
  3155. "type": "object",
  3156. "properties": {
  3157. "data": {
  3158. "type": "object"
  3159. },
  3160. "msg": {
  3161. "type": "string"
  3162. }
  3163. }
  3164. }
  3165. ]
  3166. }
  3167. }
  3168. }
  3169. }
  3170. },
  3171. "/info/getInfoList": {
  3172. "get": {
  3173. "security": [
  3174. {
  3175. "ApiKeyAuth": []
  3176. }
  3177. ],
  3178. "consumes": [
  3179. "application/json"
  3180. ],
  3181. "produces": [
  3182. "application/json"
  3183. ],
  3184. "tags": [
  3185. "Info"
  3186. ],
  3187. "summary": "分页获取公告列表",
  3188. "parameters": [
  3189. {
  3190. "type": "string",
  3191. "name": "endCreatedAt",
  3192. "in": "query"
  3193. },
  3194. {
  3195. "type": "string",
  3196. "description": "关键字",
  3197. "name": "keyword",
  3198. "in": "query"
  3199. },
  3200. {
  3201. "type": "integer",
  3202. "description": "页码",
  3203. "name": "page",
  3204. "in": "query"
  3205. },
  3206. {
  3207. "type": "integer",
  3208. "description": "每页大小",
  3209. "name": "pageSize",
  3210. "in": "query"
  3211. },
  3212. {
  3213. "type": "string",
  3214. "name": "startCreatedAt",
  3215. "in": "query"
  3216. }
  3217. ],
  3218. "responses": {
  3219. "200": {
  3220. "description": "获取成功",
  3221. "schema": {
  3222. "allOf": [
  3223. {
  3224. "$ref": "#/definitions/response.Response"
  3225. },
  3226. {
  3227. "type": "object",
  3228. "properties": {
  3229. "data": {
  3230. "$ref": "#/definitions/response.PageResult"
  3231. },
  3232. "msg": {
  3233. "type": "string"
  3234. }
  3235. }
  3236. }
  3237. ]
  3238. }
  3239. }
  3240. }
  3241. }
  3242. },
  3243. "/info/getInfoPublic": {
  3244. "get": {
  3245. "consumes": [
  3246. "application/json"
  3247. ],
  3248. "produces": [
  3249. "application/json"
  3250. ],
  3251. "tags": [
  3252. "Info"
  3253. ],
  3254. "summary": "不需要鉴权的公告接口",
  3255. "parameters": [
  3256. {
  3257. "type": "string",
  3258. "name": "endCreatedAt",
  3259. "in": "query"
  3260. },
  3261. {
  3262. "type": "string",
  3263. "description": "关键字",
  3264. "name": "keyword",
  3265. "in": "query"
  3266. },
  3267. {
  3268. "type": "integer",
  3269. "description": "页码",
  3270. "name": "page",
  3271. "in": "query"
  3272. },
  3273. {
  3274. "type": "integer",
  3275. "description": "每页大小",
  3276. "name": "pageSize",
  3277. "in": "query"
  3278. },
  3279. {
  3280. "type": "string",
  3281. "name": "startCreatedAt",
  3282. "in": "query"
  3283. }
  3284. ],
  3285. "responses": {
  3286. "200": {
  3287. "description": "获取成功",
  3288. "schema": {
  3289. "allOf": [
  3290. {
  3291. "$ref": "#/definitions/response.Response"
  3292. },
  3293. {
  3294. "type": "object",
  3295. "properties": {
  3296. "data": {
  3297. "type": "object"
  3298. },
  3299. "msg": {
  3300. "type": "string"
  3301. }
  3302. }
  3303. }
  3304. ]
  3305. }
  3306. }
  3307. }
  3308. }
  3309. },
  3310. "/info/updateInfo": {
  3311. "put": {
  3312. "security": [
  3313. {
  3314. "ApiKeyAuth": []
  3315. }
  3316. ],
  3317. "consumes": [
  3318. "application/json"
  3319. ],
  3320. "produces": [
  3321. "application/json"
  3322. ],
  3323. "tags": [
  3324. "Info"
  3325. ],
  3326. "summary": "更新公告",
  3327. "parameters": [
  3328. {
  3329. "description": "更新公告",
  3330. "name": "data",
  3331. "in": "body",
  3332. "required": true,
  3333. "schema": {
  3334. "$ref": "#/definitions/model.Info"
  3335. }
  3336. }
  3337. ],
  3338. "responses": {
  3339. "200": {
  3340. "description": "更新成功",
  3341. "schema": {
  3342. "allOf": [
  3343. {
  3344. "$ref": "#/definitions/response.Response"
  3345. },
  3346. {
  3347. "type": "object",
  3348. "properties": {
  3349. "msg": {
  3350. "type": "string"
  3351. }
  3352. }
  3353. }
  3354. ]
  3355. }
  3356. }
  3357. }
  3358. }
  3359. },
  3360. "/init/checkdb": {
  3361. "post": {
  3362. "produces": [
  3363. "application/json"
  3364. ],
  3365. "tags": [
  3366. "CheckDB"
  3367. ],
  3368. "summary": "初始化用户数据库",
  3369. "responses": {
  3370. "200": {
  3371. "description": "初始化用户数据库",
  3372. "schema": {
  3373. "allOf": [
  3374. {
  3375. "$ref": "#/definitions/response.Response"
  3376. },
  3377. {
  3378. "type": "object",
  3379. "properties": {
  3380. "data": {
  3381. "type": "object",
  3382. "additionalProperties": true
  3383. },
  3384. "msg": {
  3385. "type": "string"
  3386. }
  3387. }
  3388. }
  3389. ]
  3390. }
  3391. }
  3392. }
  3393. }
  3394. },
  3395. "/init/initdb": {
  3396. "post": {
  3397. "produces": [
  3398. "application/json"
  3399. ],
  3400. "tags": [
  3401. "InitDB"
  3402. ],
  3403. "summary": "初始化用户数据库",
  3404. "parameters": [
  3405. {
  3406. "description": "初始化数据库参数",
  3407. "name": "data",
  3408. "in": "body",
  3409. "required": true,
  3410. "schema": {
  3411. "$ref": "#/definitions/request.InitDB"
  3412. }
  3413. }
  3414. ],
  3415. "responses": {
  3416. "200": {
  3417. "description": "初始化用户数据库",
  3418. "schema": {
  3419. "allOf": [
  3420. {
  3421. "$ref": "#/definitions/response.Response"
  3422. },
  3423. {
  3424. "type": "object",
  3425. "properties": {
  3426. "data": {
  3427. "type": "string"
  3428. }
  3429. }
  3430. }
  3431. ]
  3432. }
  3433. }
  3434. }
  3435. }
  3436. },
  3437. "/jwt/jsonInBlacklist": {
  3438. "post": {
  3439. "security": [
  3440. {
  3441. "ApiKeyAuth": []
  3442. }
  3443. ],
  3444. "consumes": [
  3445. "application/json"
  3446. ],
  3447. "produces": [
  3448. "application/json"
  3449. ],
  3450. "tags": [
  3451. "Jwt"
  3452. ],
  3453. "summary": "jwt加入黑名单",
  3454. "responses": {
  3455. "200": {
  3456. "description": "jwt加入黑名单",
  3457. "schema": {
  3458. "allOf": [
  3459. {
  3460. "$ref": "#/definitions/response.Response"
  3461. },
  3462. {
  3463. "type": "object",
  3464. "properties": {
  3465. "msg": {
  3466. "type": "string"
  3467. }
  3468. }
  3469. }
  3470. ]
  3471. }
  3472. }
  3473. }
  3474. }
  3475. },
  3476. "/menu/addBaseMenu": {
  3477. "post": {
  3478. "security": [
  3479. {
  3480. "ApiKeyAuth": []
  3481. }
  3482. ],
  3483. "consumes": [
  3484. "application/json"
  3485. ],
  3486. "produces": [
  3487. "application/json"
  3488. ],
  3489. "tags": [
  3490. "Menu"
  3491. ],
  3492. "summary": "新增菜单",
  3493. "parameters": [
  3494. {
  3495. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  3496. "name": "data",
  3497. "in": "body",
  3498. "required": true,
  3499. "schema": {
  3500. "$ref": "#/definitions/system.SysBaseMenu"
  3501. }
  3502. }
  3503. ],
  3504. "responses": {
  3505. "200": {
  3506. "description": "新增菜单",
  3507. "schema": {
  3508. "allOf": [
  3509. {
  3510. "$ref": "#/definitions/response.Response"
  3511. },
  3512. {
  3513. "type": "object",
  3514. "properties": {
  3515. "msg": {
  3516. "type": "string"
  3517. }
  3518. }
  3519. }
  3520. ]
  3521. }
  3522. }
  3523. }
  3524. }
  3525. },
  3526. "/menu/addMenuAuthority": {
  3527. "post": {
  3528. "security": [
  3529. {
  3530. "ApiKeyAuth": []
  3531. }
  3532. ],
  3533. "consumes": [
  3534. "application/json"
  3535. ],
  3536. "produces": [
  3537. "application/json"
  3538. ],
  3539. "tags": [
  3540. "AuthorityMenu"
  3541. ],
  3542. "summary": "增加menu和角色关联关系",
  3543. "parameters": [
  3544. {
  3545. "description": "角色ID",
  3546. "name": "data",
  3547. "in": "body",
  3548. "required": true,
  3549. "schema": {
  3550. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  3551. }
  3552. }
  3553. ],
  3554. "responses": {
  3555. "200": {
  3556. "description": "增加menu和角色关联关系",
  3557. "schema": {
  3558. "allOf": [
  3559. {
  3560. "$ref": "#/definitions/response.Response"
  3561. },
  3562. {
  3563. "type": "object",
  3564. "properties": {
  3565. "msg": {
  3566. "type": "string"
  3567. }
  3568. }
  3569. }
  3570. ]
  3571. }
  3572. }
  3573. }
  3574. }
  3575. },
  3576. "/menu/deleteBaseMenu": {
  3577. "post": {
  3578. "security": [
  3579. {
  3580. "ApiKeyAuth": []
  3581. }
  3582. ],
  3583. "consumes": [
  3584. "application/json"
  3585. ],
  3586. "produces": [
  3587. "application/json"
  3588. ],
  3589. "tags": [
  3590. "Menu"
  3591. ],
  3592. "summary": "删除菜单",
  3593. "parameters": [
  3594. {
  3595. "description": "菜单id",
  3596. "name": "data",
  3597. "in": "body",
  3598. "required": true,
  3599. "schema": {
  3600. "$ref": "#/definitions/request.GetById"
  3601. }
  3602. }
  3603. ],
  3604. "responses": {
  3605. "200": {
  3606. "description": "删除菜单",
  3607. "schema": {
  3608. "allOf": [
  3609. {
  3610. "$ref": "#/definitions/response.Response"
  3611. },
  3612. {
  3613. "type": "object",
  3614. "properties": {
  3615. "msg": {
  3616. "type": "string"
  3617. }
  3618. }
  3619. }
  3620. ]
  3621. }
  3622. }
  3623. }
  3624. }
  3625. },
  3626. "/menu/getBaseMenuById": {
  3627. "post": {
  3628. "security": [
  3629. {
  3630. "ApiKeyAuth": []
  3631. }
  3632. ],
  3633. "consumes": [
  3634. "application/json"
  3635. ],
  3636. "produces": [
  3637. "application/json"
  3638. ],
  3639. "tags": [
  3640. "Menu"
  3641. ],
  3642. "summary": "根据id获取菜单",
  3643. "parameters": [
  3644. {
  3645. "description": "菜单id",
  3646. "name": "data",
  3647. "in": "body",
  3648. "required": true,
  3649. "schema": {
  3650. "$ref": "#/definitions/request.GetById"
  3651. }
  3652. }
  3653. ],
  3654. "responses": {
  3655. "200": {
  3656. "description": "根据id获取菜单,返回包括系统菜单列表",
  3657. "schema": {
  3658. "allOf": [
  3659. {
  3660. "$ref": "#/definitions/response.Response"
  3661. },
  3662. {
  3663. "type": "object",
  3664. "properties": {
  3665. "data": {
  3666. "$ref": "#/definitions/response.SysBaseMenuResponse"
  3667. },
  3668. "msg": {
  3669. "type": "string"
  3670. }
  3671. }
  3672. }
  3673. ]
  3674. }
  3675. }
  3676. }
  3677. }
  3678. },
  3679. "/menu/getBaseMenuTree": {
  3680. "post": {
  3681. "security": [
  3682. {
  3683. "ApiKeyAuth": []
  3684. }
  3685. ],
  3686. "produces": [
  3687. "application/json"
  3688. ],
  3689. "tags": [
  3690. "AuthorityMenu"
  3691. ],
  3692. "summary": "获取用户动态路由",
  3693. "parameters": [
  3694. {
  3695. "description": "空",
  3696. "name": "data",
  3697. "in": "body",
  3698. "required": true,
  3699. "schema": {
  3700. "$ref": "#/definitions/request.Empty"
  3701. }
  3702. }
  3703. ],
  3704. "responses": {
  3705. "200": {
  3706. "description": "获取用户动态路由,返回包括系统菜单列表",
  3707. "schema": {
  3708. "allOf": [
  3709. {
  3710. "$ref": "#/definitions/response.Response"
  3711. },
  3712. {
  3713. "type": "object",
  3714. "properties": {
  3715. "data": {
  3716. "$ref": "#/definitions/response.SysBaseMenusResponse"
  3717. },
  3718. "msg": {
  3719. "type": "string"
  3720. }
  3721. }
  3722. }
  3723. ]
  3724. }
  3725. }
  3726. }
  3727. }
  3728. },
  3729. "/menu/getMenu": {
  3730. "post": {
  3731. "security": [
  3732. {
  3733. "ApiKeyAuth": []
  3734. }
  3735. ],
  3736. "produces": [
  3737. "application/json"
  3738. ],
  3739. "tags": [
  3740. "AuthorityMenu"
  3741. ],
  3742. "summary": "获取用户动态路由",
  3743. "parameters": [
  3744. {
  3745. "description": "空",
  3746. "name": "data",
  3747. "in": "body",
  3748. "required": true,
  3749. "schema": {
  3750. "$ref": "#/definitions/request.Empty"
  3751. }
  3752. }
  3753. ],
  3754. "responses": {
  3755. "200": {
  3756. "description": "获取用户动态路由,返回包括系统菜单详情列表",
  3757. "schema": {
  3758. "allOf": [
  3759. {
  3760. "$ref": "#/definitions/response.Response"
  3761. },
  3762. {
  3763. "type": "object",
  3764. "properties": {
  3765. "data": {
  3766. "$ref": "#/definitions/response.SysMenusResponse"
  3767. },
  3768. "msg": {
  3769. "type": "string"
  3770. }
  3771. }
  3772. }
  3773. ]
  3774. }
  3775. }
  3776. }
  3777. }
  3778. },
  3779. "/menu/getMenuAuthority": {
  3780. "post": {
  3781. "security": [
  3782. {
  3783. "ApiKeyAuth": []
  3784. }
  3785. ],
  3786. "consumes": [
  3787. "application/json"
  3788. ],
  3789. "produces": [
  3790. "application/json"
  3791. ],
  3792. "tags": [
  3793. "AuthorityMenu"
  3794. ],
  3795. "summary": "获取指定角色menu",
  3796. "parameters": [
  3797. {
  3798. "description": "角色ID",
  3799. "name": "data",
  3800. "in": "body",
  3801. "required": true,
  3802. "schema": {
  3803. "$ref": "#/definitions/request.GetAuthorityId"
  3804. }
  3805. }
  3806. ],
  3807. "responses": {
  3808. "200": {
  3809. "description": "获取指定角色menu",
  3810. "schema": {
  3811. "allOf": [
  3812. {
  3813. "$ref": "#/definitions/response.Response"
  3814. },
  3815. {
  3816. "type": "object",
  3817. "properties": {
  3818. "data": {
  3819. "type": "object",
  3820. "additionalProperties": true
  3821. },
  3822. "msg": {
  3823. "type": "string"
  3824. }
  3825. }
  3826. }
  3827. ]
  3828. }
  3829. }
  3830. }
  3831. }
  3832. },
  3833. "/menu/getMenuList": {
  3834. "post": {
  3835. "security": [
  3836. {
  3837. "ApiKeyAuth": []
  3838. }
  3839. ],
  3840. "consumes": [
  3841. "application/json"
  3842. ],
  3843. "produces": [
  3844. "application/json"
  3845. ],
  3846. "tags": [
  3847. "Menu"
  3848. ],
  3849. "summary": "分页获取基础menu列表",
  3850. "parameters": [
  3851. {
  3852. "description": "页码, 每页大小",
  3853. "name": "data",
  3854. "in": "body",
  3855. "required": true,
  3856. "schema": {
  3857. "$ref": "#/definitions/request.PageInfo"
  3858. }
  3859. }
  3860. ],
  3861. "responses": {
  3862. "200": {
  3863. "description": "分页获取基础menu列表,返回包括列表,总数,页码,每页数量",
  3864. "schema": {
  3865. "allOf": [
  3866. {
  3867. "$ref": "#/definitions/response.Response"
  3868. },
  3869. {
  3870. "type": "object",
  3871. "properties": {
  3872. "data": {
  3873. "$ref": "#/definitions/response.PageResult"
  3874. },
  3875. "msg": {
  3876. "type": "string"
  3877. }
  3878. }
  3879. }
  3880. ]
  3881. }
  3882. }
  3883. }
  3884. }
  3885. },
  3886. "/menu/updateBaseMenu": {
  3887. "post": {
  3888. "security": [
  3889. {
  3890. "ApiKeyAuth": []
  3891. }
  3892. ],
  3893. "consumes": [
  3894. "application/json"
  3895. ],
  3896. "produces": [
  3897. "application/json"
  3898. ],
  3899. "tags": [
  3900. "Menu"
  3901. ],
  3902. "summary": "更新菜单",
  3903. "parameters": [
  3904. {
  3905. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  3906. "name": "data",
  3907. "in": "body",
  3908. "required": true,
  3909. "schema": {
  3910. "$ref": "#/definitions/system.SysBaseMenu"
  3911. }
  3912. }
  3913. ],
  3914. "responses": {
  3915. "200": {
  3916. "description": "更新菜单",
  3917. "schema": {
  3918. "allOf": [
  3919. {
  3920. "$ref": "#/definitions/response.Response"
  3921. },
  3922. {
  3923. "type": "object",
  3924. "properties": {
  3925. "msg": {
  3926. "type": "string"
  3927. }
  3928. }
  3929. }
  3930. ]
  3931. }
  3932. }
  3933. }
  3934. }
  3935. },
  3936. "/sysDictionary/createSysDictionary": {
  3937. "post": {
  3938. "security": [
  3939. {
  3940. "ApiKeyAuth": []
  3941. }
  3942. ],
  3943. "consumes": [
  3944. "application/json"
  3945. ],
  3946. "produces": [
  3947. "application/json"
  3948. ],
  3949. "tags": [
  3950. "SysDictionary"
  3951. ],
  3952. "summary": "创建SysDictionary",
  3953. "parameters": [
  3954. {
  3955. "description": "SysDictionary模型",
  3956. "name": "data",
  3957. "in": "body",
  3958. "required": true,
  3959. "schema": {
  3960. "$ref": "#/definitions/system.SysDictionary"
  3961. }
  3962. }
  3963. ],
  3964. "responses": {
  3965. "200": {
  3966. "description": "创建SysDictionary",
  3967. "schema": {
  3968. "allOf": [
  3969. {
  3970. "$ref": "#/definitions/response.Response"
  3971. },
  3972. {
  3973. "type": "object",
  3974. "properties": {
  3975. "msg": {
  3976. "type": "string"
  3977. }
  3978. }
  3979. }
  3980. ]
  3981. }
  3982. }
  3983. }
  3984. }
  3985. },
  3986. "/sysDictionary/deleteSysDictionary": {
  3987. "delete": {
  3988. "security": [
  3989. {
  3990. "ApiKeyAuth": []
  3991. }
  3992. ],
  3993. "consumes": [
  3994. "application/json"
  3995. ],
  3996. "produces": [
  3997. "application/json"
  3998. ],
  3999. "tags": [
  4000. "SysDictionary"
  4001. ],
  4002. "summary": "删除SysDictionary",
  4003. "parameters": [
  4004. {
  4005. "description": "SysDictionary模型",
  4006. "name": "data",
  4007. "in": "body",
  4008. "required": true,
  4009. "schema": {
  4010. "$ref": "#/definitions/system.SysDictionary"
  4011. }
  4012. }
  4013. ],
  4014. "responses": {
  4015. "200": {
  4016. "description": "删除SysDictionary",
  4017. "schema": {
  4018. "allOf": [
  4019. {
  4020. "$ref": "#/definitions/response.Response"
  4021. },
  4022. {
  4023. "type": "object",
  4024. "properties": {
  4025. "msg": {
  4026. "type": "string"
  4027. }
  4028. }
  4029. }
  4030. ]
  4031. }
  4032. }
  4033. }
  4034. }
  4035. },
  4036. "/sysDictionary/findSysDictionary": {
  4037. "get": {
  4038. "security": [
  4039. {
  4040. "ApiKeyAuth": []
  4041. }
  4042. ],
  4043. "consumes": [
  4044. "application/json"
  4045. ],
  4046. "produces": [
  4047. "application/json"
  4048. ],
  4049. "tags": [
  4050. "SysDictionary"
  4051. ],
  4052. "summary": "用id查询SysDictionary",
  4053. "parameters": [
  4054. {
  4055. "type": "integer",
  4056. "description": "主键ID",
  4057. "name": "ID",
  4058. "in": "query"
  4059. },
  4060. {
  4061. "type": "string",
  4062. "description": "创建时间",
  4063. "name": "createdAt",
  4064. "in": "query"
  4065. },
  4066. {
  4067. "type": "string",
  4068. "description": "描述",
  4069. "name": "desc",
  4070. "in": "query"
  4071. },
  4072. {
  4073. "type": "string",
  4074. "description": "字典名(中)",
  4075. "name": "name",
  4076. "in": "query"
  4077. },
  4078. {
  4079. "type": "boolean",
  4080. "description": "状态",
  4081. "name": "status",
  4082. "in": "query"
  4083. },
  4084. {
  4085. "type": "string",
  4086. "description": "字典名(英)",
  4087. "name": "type",
  4088. "in": "query"
  4089. },
  4090. {
  4091. "type": "string",
  4092. "description": "更新时间",
  4093. "name": "updatedAt",
  4094. "in": "query"
  4095. }
  4096. ],
  4097. "responses": {
  4098. "200": {
  4099. "description": "用id查询SysDictionary",
  4100. "schema": {
  4101. "allOf": [
  4102. {
  4103. "$ref": "#/definitions/response.Response"
  4104. },
  4105. {
  4106. "type": "object",
  4107. "properties": {
  4108. "data": {
  4109. "type": "object",
  4110. "additionalProperties": true
  4111. },
  4112. "msg": {
  4113. "type": "string"
  4114. }
  4115. }
  4116. }
  4117. ]
  4118. }
  4119. }
  4120. }
  4121. }
  4122. },
  4123. "/sysDictionary/getSysDictionaryList": {
  4124. "get": {
  4125. "security": [
  4126. {
  4127. "ApiKeyAuth": []
  4128. }
  4129. ],
  4130. "consumes": [
  4131. "application/json"
  4132. ],
  4133. "produces": [
  4134. "application/json"
  4135. ],
  4136. "tags": [
  4137. "SysDictionary"
  4138. ],
  4139. "summary": "分页获取SysDictionary列表",
  4140. "responses": {
  4141. "200": {
  4142. "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量",
  4143. "schema": {
  4144. "allOf": [
  4145. {
  4146. "$ref": "#/definitions/response.Response"
  4147. },
  4148. {
  4149. "type": "object",
  4150. "properties": {
  4151. "data": {
  4152. "$ref": "#/definitions/response.PageResult"
  4153. },
  4154. "msg": {
  4155. "type": "string"
  4156. }
  4157. }
  4158. }
  4159. ]
  4160. }
  4161. }
  4162. }
  4163. }
  4164. },
  4165. "/sysDictionary/updateSysDictionary": {
  4166. "put": {
  4167. "security": [
  4168. {
  4169. "ApiKeyAuth": []
  4170. }
  4171. ],
  4172. "consumes": [
  4173. "application/json"
  4174. ],
  4175. "produces": [
  4176. "application/json"
  4177. ],
  4178. "tags": [
  4179. "SysDictionary"
  4180. ],
  4181. "summary": "更新SysDictionary",
  4182. "parameters": [
  4183. {
  4184. "description": "SysDictionary模型",
  4185. "name": "data",
  4186. "in": "body",
  4187. "required": true,
  4188. "schema": {
  4189. "$ref": "#/definitions/system.SysDictionary"
  4190. }
  4191. }
  4192. ],
  4193. "responses": {
  4194. "200": {
  4195. "description": "更新SysDictionary",
  4196. "schema": {
  4197. "allOf": [
  4198. {
  4199. "$ref": "#/definitions/response.Response"
  4200. },
  4201. {
  4202. "type": "object",
  4203. "properties": {
  4204. "msg": {
  4205. "type": "string"
  4206. }
  4207. }
  4208. }
  4209. ]
  4210. }
  4211. }
  4212. }
  4213. }
  4214. },
  4215. "/sysDictionaryDetail/createSysDictionaryDetail": {
  4216. "post": {
  4217. "security": [
  4218. {
  4219. "ApiKeyAuth": []
  4220. }
  4221. ],
  4222. "consumes": [
  4223. "application/json"
  4224. ],
  4225. "produces": [
  4226. "application/json"
  4227. ],
  4228. "tags": [
  4229. "SysDictionaryDetail"
  4230. ],
  4231. "summary": "创建SysDictionaryDetail",
  4232. "parameters": [
  4233. {
  4234. "description": "SysDictionaryDetail模型",
  4235. "name": "data",
  4236. "in": "body",
  4237. "required": true,
  4238. "schema": {
  4239. "$ref": "#/definitions/system.SysDictionaryDetail"
  4240. }
  4241. }
  4242. ],
  4243. "responses": {
  4244. "200": {
  4245. "description": "创建SysDictionaryDetail",
  4246. "schema": {
  4247. "allOf": [
  4248. {
  4249. "$ref": "#/definitions/response.Response"
  4250. },
  4251. {
  4252. "type": "object",
  4253. "properties": {
  4254. "msg": {
  4255. "type": "string"
  4256. }
  4257. }
  4258. }
  4259. ]
  4260. }
  4261. }
  4262. }
  4263. }
  4264. },
  4265. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  4266. "delete": {
  4267. "security": [
  4268. {
  4269. "ApiKeyAuth": []
  4270. }
  4271. ],
  4272. "consumes": [
  4273. "application/json"
  4274. ],
  4275. "produces": [
  4276. "application/json"
  4277. ],
  4278. "tags": [
  4279. "SysDictionaryDetail"
  4280. ],
  4281. "summary": "删除SysDictionaryDetail",
  4282. "parameters": [
  4283. {
  4284. "description": "SysDictionaryDetail模型",
  4285. "name": "data",
  4286. "in": "body",
  4287. "required": true,
  4288. "schema": {
  4289. "$ref": "#/definitions/system.SysDictionaryDetail"
  4290. }
  4291. }
  4292. ],
  4293. "responses": {
  4294. "200": {
  4295. "description": "删除SysDictionaryDetail",
  4296. "schema": {
  4297. "allOf": [
  4298. {
  4299. "$ref": "#/definitions/response.Response"
  4300. },
  4301. {
  4302. "type": "object",
  4303. "properties": {
  4304. "msg": {
  4305. "type": "string"
  4306. }
  4307. }
  4308. }
  4309. ]
  4310. }
  4311. }
  4312. }
  4313. }
  4314. },
  4315. "/sysDictionaryDetail/findSysDictionaryDetail": {
  4316. "get": {
  4317. "security": [
  4318. {
  4319. "ApiKeyAuth": []
  4320. }
  4321. ],
  4322. "consumes": [
  4323. "application/json"
  4324. ],
  4325. "produces": [
  4326. "application/json"
  4327. ],
  4328. "tags": [
  4329. "SysDictionaryDetail"
  4330. ],
  4331. "summary": "用id查询SysDictionaryDetail",
  4332. "parameters": [
  4333. {
  4334. "type": "integer",
  4335. "description": "主键ID",
  4336. "name": "ID",
  4337. "in": "query"
  4338. },
  4339. {
  4340. "type": "string",
  4341. "description": "创建时间",
  4342. "name": "createdAt",
  4343. "in": "query"
  4344. },
  4345. {
  4346. "type": "string",
  4347. "description": "扩展值",
  4348. "name": "extend",
  4349. "in": "query"
  4350. },
  4351. {
  4352. "type": "string",
  4353. "description": "展示值",
  4354. "name": "label",
  4355. "in": "query"
  4356. },
  4357. {
  4358. "type": "integer",
  4359. "description": "排序标记",
  4360. "name": "sort",
  4361. "in": "query"
  4362. },
  4363. {
  4364. "type": "boolean",
  4365. "description": "启用状态",
  4366. "name": "status",
  4367. "in": "query"
  4368. },
  4369. {
  4370. "type": "integer",
  4371. "description": "关联标记",
  4372. "name": "sysDictionaryID",
  4373. "in": "query"
  4374. },
  4375. {
  4376. "type": "string",
  4377. "description": "更新时间",
  4378. "name": "updatedAt",
  4379. "in": "query"
  4380. },
  4381. {
  4382. "type": "string",
  4383. "description": "字典值",
  4384. "name": "value",
  4385. "in": "query"
  4386. }
  4387. ],
  4388. "responses": {
  4389. "200": {
  4390. "description": "用id查询SysDictionaryDetail",
  4391. "schema": {
  4392. "allOf": [
  4393. {
  4394. "$ref": "#/definitions/response.Response"
  4395. },
  4396. {
  4397. "type": "object",
  4398. "properties": {
  4399. "data": {
  4400. "type": "object",
  4401. "additionalProperties": true
  4402. },
  4403. "msg": {
  4404. "type": "string"
  4405. }
  4406. }
  4407. }
  4408. ]
  4409. }
  4410. }
  4411. }
  4412. }
  4413. },
  4414. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  4415. "get": {
  4416. "security": [
  4417. {
  4418. "ApiKeyAuth": []
  4419. }
  4420. ],
  4421. "consumes": [
  4422. "application/json"
  4423. ],
  4424. "produces": [
  4425. "application/json"
  4426. ],
  4427. "tags": [
  4428. "SysDictionaryDetail"
  4429. ],
  4430. "summary": "分页获取SysDictionaryDetail列表",
  4431. "parameters": [
  4432. {
  4433. "type": "integer",
  4434. "description": "主键ID",
  4435. "name": "ID",
  4436. "in": "query"
  4437. },
  4438. {
  4439. "type": "string",
  4440. "description": "创建时间",
  4441. "name": "createdAt",
  4442. "in": "query"
  4443. },
  4444. {
  4445. "type": "string",
  4446. "description": "扩展值",
  4447. "name": "extend",
  4448. "in": "query"
  4449. },
  4450. {
  4451. "type": "string",
  4452. "description": "关键字",
  4453. "name": "keyword",
  4454. "in": "query"
  4455. },
  4456. {
  4457. "type": "string",
  4458. "description": "展示值",
  4459. "name": "label",
  4460. "in": "query"
  4461. },
  4462. {
  4463. "type": "integer",
  4464. "description": "页码",
  4465. "name": "page",
  4466. "in": "query"
  4467. },
  4468. {
  4469. "type": "integer",
  4470. "description": "每页大小",
  4471. "name": "pageSize",
  4472. "in": "query"
  4473. },
  4474. {
  4475. "type": "integer",
  4476. "description": "排序标记",
  4477. "name": "sort",
  4478. "in": "query"
  4479. },
  4480. {
  4481. "type": "boolean",
  4482. "description": "启用状态",
  4483. "name": "status",
  4484. "in": "query"
  4485. },
  4486. {
  4487. "type": "integer",
  4488. "description": "关联标记",
  4489. "name": "sysDictionaryID",
  4490. "in": "query"
  4491. },
  4492. {
  4493. "type": "string",
  4494. "description": "更新时间",
  4495. "name": "updatedAt",
  4496. "in": "query"
  4497. },
  4498. {
  4499. "type": "string",
  4500. "description": "字典值",
  4501. "name": "value",
  4502. "in": "query"
  4503. }
  4504. ],
  4505. "responses": {
  4506. "200": {
  4507. "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量",
  4508. "schema": {
  4509. "allOf": [
  4510. {
  4511. "$ref": "#/definitions/response.Response"
  4512. },
  4513. {
  4514. "type": "object",
  4515. "properties": {
  4516. "data": {
  4517. "$ref": "#/definitions/response.PageResult"
  4518. },
  4519. "msg": {
  4520. "type": "string"
  4521. }
  4522. }
  4523. }
  4524. ]
  4525. }
  4526. }
  4527. }
  4528. }
  4529. },
  4530. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  4531. "put": {
  4532. "security": [
  4533. {
  4534. "ApiKeyAuth": []
  4535. }
  4536. ],
  4537. "consumes": [
  4538. "application/json"
  4539. ],
  4540. "produces": [
  4541. "application/json"
  4542. ],
  4543. "tags": [
  4544. "SysDictionaryDetail"
  4545. ],
  4546. "summary": "更新SysDictionaryDetail",
  4547. "parameters": [
  4548. {
  4549. "description": "更新SysDictionaryDetail",
  4550. "name": "data",
  4551. "in": "body",
  4552. "required": true,
  4553. "schema": {
  4554. "$ref": "#/definitions/system.SysDictionaryDetail"
  4555. }
  4556. }
  4557. ],
  4558. "responses": {
  4559. "200": {
  4560. "description": "更新SysDictionaryDetail",
  4561. "schema": {
  4562. "allOf": [
  4563. {
  4564. "$ref": "#/definitions/response.Response"
  4565. },
  4566. {
  4567. "type": "object",
  4568. "properties": {
  4569. "msg": {
  4570. "type": "string"
  4571. }
  4572. }
  4573. }
  4574. ]
  4575. }
  4576. }
  4577. }
  4578. }
  4579. },
  4580. "/sysExportTemplate/ExportTemplate": {
  4581. "get": {
  4582. "security": [
  4583. {
  4584. "ApiKeyAuth": []
  4585. }
  4586. ],
  4587. "consumes": [
  4588. "application/json"
  4589. ],
  4590. "produces": [
  4591. "application/json"
  4592. ],
  4593. "tags": [
  4594. "SysExportTemplate"
  4595. ],
  4596. "summary": "导出表格模板",
  4597. "responses": {}
  4598. }
  4599. },
  4600. "/sysExportTemplate/createSysExportTemplate": {
  4601. "post": {
  4602. "security": [
  4603. {
  4604. "ApiKeyAuth": []
  4605. }
  4606. ],
  4607. "consumes": [
  4608. "application/json"
  4609. ],
  4610. "produces": [
  4611. "application/json"
  4612. ],
  4613. "tags": [
  4614. "SysExportTemplate"
  4615. ],
  4616. "summary": "创建导出模板",
  4617. "parameters": [
  4618. {
  4619. "description": "创建导出模板",
  4620. "name": "data",
  4621. "in": "body",
  4622. "required": true,
  4623. "schema": {
  4624. "$ref": "#/definitions/system.SysExportTemplate"
  4625. }
  4626. }
  4627. ],
  4628. "responses": {
  4629. "200": {
  4630. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  4631. "schema": {
  4632. "type": "string"
  4633. }
  4634. }
  4635. }
  4636. }
  4637. },
  4638. "/sysExportTemplate/deleteSysExportTemplate": {
  4639. "delete": {
  4640. "security": [
  4641. {
  4642. "ApiKeyAuth": []
  4643. }
  4644. ],
  4645. "consumes": [
  4646. "application/json"
  4647. ],
  4648. "produces": [
  4649. "application/json"
  4650. ],
  4651. "tags": [
  4652. "SysExportTemplate"
  4653. ],
  4654. "summary": "删除导出模板",
  4655. "parameters": [
  4656. {
  4657. "description": "删除导出模板",
  4658. "name": "data",
  4659. "in": "body",
  4660. "required": true,
  4661. "schema": {
  4662. "$ref": "#/definitions/system.SysExportTemplate"
  4663. }
  4664. }
  4665. ],
  4666. "responses": {
  4667. "200": {
  4668. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  4669. "schema": {
  4670. "type": "string"
  4671. }
  4672. }
  4673. }
  4674. }
  4675. },
  4676. "/sysExportTemplate/deleteSysExportTemplateByIds": {
  4677. "delete": {
  4678. "security": [
  4679. {
  4680. "ApiKeyAuth": []
  4681. }
  4682. ],
  4683. "consumes": [
  4684. "application/json"
  4685. ],
  4686. "produces": [
  4687. "application/json"
  4688. ],
  4689. "tags": [
  4690. "SysExportTemplate"
  4691. ],
  4692. "summary": "批量删除导出模板",
  4693. "parameters": [
  4694. {
  4695. "description": "批量删除导出模板",
  4696. "name": "data",
  4697. "in": "body",
  4698. "required": true,
  4699. "schema": {
  4700. "$ref": "#/definitions/request.IdsReq"
  4701. }
  4702. }
  4703. ],
  4704. "responses": {
  4705. "200": {
  4706. "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
  4707. "schema": {
  4708. "type": "string"
  4709. }
  4710. }
  4711. }
  4712. }
  4713. },
  4714. "/sysExportTemplate/exportExcel": {
  4715. "get": {
  4716. "security": [
  4717. {
  4718. "ApiKeyAuth": []
  4719. }
  4720. ],
  4721. "consumes": [
  4722. "application/json"
  4723. ],
  4724. "produces": [
  4725. "application/json"
  4726. ],
  4727. "tags": [
  4728. "SysExportTemplate"
  4729. ],
  4730. "summary": "导出表格",
  4731. "responses": {}
  4732. }
  4733. },
  4734. "/sysExportTemplate/findSysExportTemplate": {
  4735. "get": {
  4736. "security": [
  4737. {
  4738. "ApiKeyAuth": []
  4739. }
  4740. ],
  4741. "consumes": [
  4742. "application/json"
  4743. ],
  4744. "produces": [
  4745. "application/json"
  4746. ],
  4747. "tags": [
  4748. "SysExportTemplate"
  4749. ],
  4750. "summary": "用id查询导出模板",
  4751. "parameters": [
  4752. {
  4753. "type": "integer",
  4754. "description": "主键ID",
  4755. "name": "ID",
  4756. "in": "query"
  4757. },
  4758. {
  4759. "type": "string",
  4760. "description": "创建时间",
  4761. "name": "createdAt",
  4762. "in": "query"
  4763. },
  4764. {
  4765. "type": "string",
  4766. "description": "数据库名称",
  4767. "name": "dbName",
  4768. "in": "query"
  4769. },
  4770. {
  4771. "type": "integer",
  4772. "name": "limit",
  4773. "in": "query"
  4774. },
  4775. {
  4776. "type": "string",
  4777. "description": "模板名称",
  4778. "name": "name",
  4779. "in": "query"
  4780. },
  4781. {
  4782. "type": "string",
  4783. "name": "order",
  4784. "in": "query"
  4785. },
  4786. {
  4787. "type": "string",
  4788. "description": "表名称",
  4789. "name": "tableName",
  4790. "in": "query"
  4791. },
  4792. {
  4793. "type": "string",
  4794. "description": "模板标识",
  4795. "name": "templateID",
  4796. "in": "query"
  4797. },
  4798. {
  4799. "type": "string",
  4800. "description": "模板信息",
  4801. "name": "templateInfo",
  4802. "in": "query"
  4803. },
  4804. {
  4805. "type": "string",
  4806. "description": "更新时间",
  4807. "name": "updatedAt",
  4808. "in": "query"
  4809. }
  4810. ],
  4811. "responses": {
  4812. "200": {
  4813. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  4814. "schema": {
  4815. "type": "string"
  4816. }
  4817. }
  4818. }
  4819. }
  4820. },
  4821. "/sysExportTemplate/getSysExportTemplateList": {
  4822. "get": {
  4823. "security": [
  4824. {
  4825. "ApiKeyAuth": []
  4826. }
  4827. ],
  4828. "consumes": [
  4829. "application/json"
  4830. ],
  4831. "produces": [
  4832. "application/json"
  4833. ],
  4834. "tags": [
  4835. "SysExportTemplate"
  4836. ],
  4837. "summary": "分页获取导出模板列表",
  4838. "parameters": [
  4839. {
  4840. "type": "integer",
  4841. "description": "主键ID",
  4842. "name": "ID",
  4843. "in": "query"
  4844. },
  4845. {
  4846. "type": "string",
  4847. "description": "创建时间",
  4848. "name": "createdAt",
  4849. "in": "query"
  4850. },
  4851. {
  4852. "type": "string",
  4853. "description": "数据库名称",
  4854. "name": "dbName",
  4855. "in": "query"
  4856. },
  4857. {
  4858. "type": "string",
  4859. "name": "endCreatedAt",
  4860. "in": "query"
  4861. },
  4862. {
  4863. "type": "string",
  4864. "description": "关键字",
  4865. "name": "keyword",
  4866. "in": "query"
  4867. },
  4868. {
  4869. "type": "integer",
  4870. "name": "limit",
  4871. "in": "query"
  4872. },
  4873. {
  4874. "type": "string",
  4875. "description": "模板名称",
  4876. "name": "name",
  4877. "in": "query"
  4878. },
  4879. {
  4880. "type": "string",
  4881. "name": "order",
  4882. "in": "query"
  4883. },
  4884. {
  4885. "type": "integer",
  4886. "description": "页码",
  4887. "name": "page",
  4888. "in": "query"
  4889. },
  4890. {
  4891. "type": "integer",
  4892. "description": "每页大小",
  4893. "name": "pageSize",
  4894. "in": "query"
  4895. },
  4896. {
  4897. "type": "string",
  4898. "name": "startCreatedAt",
  4899. "in": "query"
  4900. },
  4901. {
  4902. "type": "string",
  4903. "description": "表名称",
  4904. "name": "tableName",
  4905. "in": "query"
  4906. },
  4907. {
  4908. "type": "string",
  4909. "description": "模板标识",
  4910. "name": "templateID",
  4911. "in": "query"
  4912. },
  4913. {
  4914. "type": "string",
  4915. "description": "模板信息",
  4916. "name": "templateInfo",
  4917. "in": "query"
  4918. },
  4919. {
  4920. "type": "string",
  4921. "description": "更新时间",
  4922. "name": "updatedAt",
  4923. "in": "query"
  4924. }
  4925. ],
  4926. "responses": {
  4927. "200": {
  4928. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  4929. "schema": {
  4930. "type": "string"
  4931. }
  4932. }
  4933. }
  4934. }
  4935. },
  4936. "/sysExportTemplate/importExcel": {
  4937. "post": {
  4938. "security": [
  4939. {
  4940. "ApiKeyAuth": []
  4941. }
  4942. ],
  4943. "consumes": [
  4944. "application/json"
  4945. ],
  4946. "produces": [
  4947. "application/json"
  4948. ],
  4949. "tags": [
  4950. "SysImportTemplate"
  4951. ],
  4952. "summary": "导入表格",
  4953. "responses": {}
  4954. }
  4955. },
  4956. "/sysExportTemplate/updateSysExportTemplate": {
  4957. "put": {
  4958. "security": [
  4959. {
  4960. "ApiKeyAuth": []
  4961. }
  4962. ],
  4963. "consumes": [
  4964. "application/json"
  4965. ],
  4966. "produces": [
  4967. "application/json"
  4968. ],
  4969. "tags": [
  4970. "SysExportTemplate"
  4971. ],
  4972. "summary": "更新导出模板",
  4973. "parameters": [
  4974. {
  4975. "description": "更新导出模板",
  4976. "name": "data",
  4977. "in": "body",
  4978. "required": true,
  4979. "schema": {
  4980. "$ref": "#/definitions/system.SysExportTemplate"
  4981. }
  4982. }
  4983. ],
  4984. "responses": {
  4985. "200": {
  4986. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  4987. "schema": {
  4988. "type": "string"
  4989. }
  4990. }
  4991. }
  4992. }
  4993. },
  4994. "/sysOperationRecord/createSysOperationRecord": {
  4995. "post": {
  4996. "security": [
  4997. {
  4998. "ApiKeyAuth": []
  4999. }
  5000. ],
  5001. "consumes": [
  5002. "application/json"
  5003. ],
  5004. "produces": [
  5005. "application/json"
  5006. ],
  5007. "tags": [
  5008. "SysOperationRecord"
  5009. ],
  5010. "summary": "创建SysOperationRecord",
  5011. "parameters": [
  5012. {
  5013. "description": "创建SysOperationRecord",
  5014. "name": "data",
  5015. "in": "body",
  5016. "required": true,
  5017. "schema": {
  5018. "$ref": "#/definitions/system.SysOperationRecord"
  5019. }
  5020. }
  5021. ],
  5022. "responses": {
  5023. "200": {
  5024. "description": "创建SysOperationRecord",
  5025. "schema": {
  5026. "allOf": [
  5027. {
  5028. "$ref": "#/definitions/response.Response"
  5029. },
  5030. {
  5031. "type": "object",
  5032. "properties": {
  5033. "msg": {
  5034. "type": "string"
  5035. }
  5036. }
  5037. }
  5038. ]
  5039. }
  5040. }
  5041. }
  5042. }
  5043. },
  5044. "/sysOperationRecord/deleteSysOperationRecord": {
  5045. "delete": {
  5046. "security": [
  5047. {
  5048. "ApiKeyAuth": []
  5049. }
  5050. ],
  5051. "consumes": [
  5052. "application/json"
  5053. ],
  5054. "produces": [
  5055. "application/json"
  5056. ],
  5057. "tags": [
  5058. "SysOperationRecord"
  5059. ],
  5060. "summary": "删除SysOperationRecord",
  5061. "parameters": [
  5062. {
  5063. "description": "SysOperationRecord模型",
  5064. "name": "data",
  5065. "in": "body",
  5066. "required": true,
  5067. "schema": {
  5068. "$ref": "#/definitions/system.SysOperationRecord"
  5069. }
  5070. }
  5071. ],
  5072. "responses": {
  5073. "200": {
  5074. "description": "删除SysOperationRecord",
  5075. "schema": {
  5076. "allOf": [
  5077. {
  5078. "$ref": "#/definitions/response.Response"
  5079. },
  5080. {
  5081. "type": "object",
  5082. "properties": {
  5083. "msg": {
  5084. "type": "string"
  5085. }
  5086. }
  5087. }
  5088. ]
  5089. }
  5090. }
  5091. }
  5092. }
  5093. },
  5094. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  5095. "delete": {
  5096. "security": [
  5097. {
  5098. "ApiKeyAuth": []
  5099. }
  5100. ],
  5101. "consumes": [
  5102. "application/json"
  5103. ],
  5104. "produces": [
  5105. "application/json"
  5106. ],
  5107. "tags": [
  5108. "SysOperationRecord"
  5109. ],
  5110. "summary": "批量删除SysOperationRecord",
  5111. "parameters": [
  5112. {
  5113. "description": "批量删除SysOperationRecord",
  5114. "name": "data",
  5115. "in": "body",
  5116. "required": true,
  5117. "schema": {
  5118. "$ref": "#/definitions/request.IdsReq"
  5119. }
  5120. }
  5121. ],
  5122. "responses": {
  5123. "200": {
  5124. "description": "批量删除SysOperationRecord",
  5125. "schema": {
  5126. "allOf": [
  5127. {
  5128. "$ref": "#/definitions/response.Response"
  5129. },
  5130. {
  5131. "type": "object",
  5132. "properties": {
  5133. "msg": {
  5134. "type": "string"
  5135. }
  5136. }
  5137. }
  5138. ]
  5139. }
  5140. }
  5141. }
  5142. }
  5143. },
  5144. "/sysOperationRecord/findSysOperationRecord": {
  5145. "get": {
  5146. "security": [
  5147. {
  5148. "ApiKeyAuth": []
  5149. }
  5150. ],
  5151. "consumes": [
  5152. "application/json"
  5153. ],
  5154. "produces": [
  5155. "application/json"
  5156. ],
  5157. "tags": [
  5158. "SysOperationRecord"
  5159. ],
  5160. "summary": "用id查询SysOperationRecord",
  5161. "parameters": [
  5162. {
  5163. "type": "integer",
  5164. "description": "主键ID",
  5165. "name": "ID",
  5166. "in": "query"
  5167. },
  5168. {
  5169. "type": "string",
  5170. "description": "代理",
  5171. "name": "agent",
  5172. "in": "query"
  5173. },
  5174. {
  5175. "type": "string",
  5176. "description": "请求Body",
  5177. "name": "body",
  5178. "in": "query"
  5179. },
  5180. {
  5181. "type": "string",
  5182. "description": "创建时间",
  5183. "name": "createdAt",
  5184. "in": "query"
  5185. },
  5186. {
  5187. "type": "string",
  5188. "description": "错误信息",
  5189. "name": "error_message",
  5190. "in": "query"
  5191. },
  5192. {
  5193. "type": "string",
  5194. "description": "请求ip",
  5195. "name": "ip",
  5196. "in": "query"
  5197. },
  5198. {
  5199. "type": "string",
  5200. "description": "延迟",
  5201. "name": "latency",
  5202. "in": "query"
  5203. },
  5204. {
  5205. "type": "string",
  5206. "description": "请求方法",
  5207. "name": "method",
  5208. "in": "query"
  5209. },
  5210. {
  5211. "type": "string",
  5212. "description": "请求路径",
  5213. "name": "path",
  5214. "in": "query"
  5215. },
  5216. {
  5217. "type": "string",
  5218. "description": "响应Body",
  5219. "name": "resp",
  5220. "in": "query"
  5221. },
  5222. {
  5223. "type": "integer",
  5224. "description": "请求状态",
  5225. "name": "status",
  5226. "in": "query"
  5227. },
  5228. {
  5229. "type": "string",
  5230. "description": "更新时间",
  5231. "name": "updatedAt",
  5232. "in": "query"
  5233. },
  5234. {
  5235. "type": "integer",
  5236. "description": "用户id",
  5237. "name": "user_id",
  5238. "in": "query"
  5239. }
  5240. ],
  5241. "responses": {
  5242. "200": {
  5243. "description": "用id查询SysOperationRecord",
  5244. "schema": {
  5245. "allOf": [
  5246. {
  5247. "$ref": "#/definitions/response.Response"
  5248. },
  5249. {
  5250. "type": "object",
  5251. "properties": {
  5252. "data": {
  5253. "type": "object",
  5254. "additionalProperties": true
  5255. },
  5256. "msg": {
  5257. "type": "string"
  5258. }
  5259. }
  5260. }
  5261. ]
  5262. }
  5263. }
  5264. }
  5265. }
  5266. },
  5267. "/sysOperationRecord/getSysOperationRecordList": {
  5268. "get": {
  5269. "security": [
  5270. {
  5271. "ApiKeyAuth": []
  5272. }
  5273. ],
  5274. "consumes": [
  5275. "application/json"
  5276. ],
  5277. "produces": [
  5278. "application/json"
  5279. ],
  5280. "tags": [
  5281. "SysOperationRecord"
  5282. ],
  5283. "summary": "分页获取SysOperationRecord列表",
  5284. "parameters": [
  5285. {
  5286. "type": "integer",
  5287. "description": "主键ID",
  5288. "name": "ID",
  5289. "in": "query"
  5290. },
  5291. {
  5292. "type": "string",
  5293. "description": "代理",
  5294. "name": "agent",
  5295. "in": "query"
  5296. },
  5297. {
  5298. "type": "string",
  5299. "description": "请求Body",
  5300. "name": "body",
  5301. "in": "query"
  5302. },
  5303. {
  5304. "type": "string",
  5305. "description": "创建时间",
  5306. "name": "createdAt",
  5307. "in": "query"
  5308. },
  5309. {
  5310. "type": "string",
  5311. "description": "错误信息",
  5312. "name": "error_message",
  5313. "in": "query"
  5314. },
  5315. {
  5316. "type": "string",
  5317. "description": "请求ip",
  5318. "name": "ip",
  5319. "in": "query"
  5320. },
  5321. {
  5322. "type": "string",
  5323. "description": "关键字",
  5324. "name": "keyword",
  5325. "in": "query"
  5326. },
  5327. {
  5328. "type": "string",
  5329. "description": "延迟",
  5330. "name": "latency",
  5331. "in": "query"
  5332. },
  5333. {
  5334. "type": "string",
  5335. "description": "请求方法",
  5336. "name": "method",
  5337. "in": "query"
  5338. },
  5339. {
  5340. "type": "integer",
  5341. "description": "页码",
  5342. "name": "page",
  5343. "in": "query"
  5344. },
  5345. {
  5346. "type": "integer",
  5347. "description": "每页大小",
  5348. "name": "pageSize",
  5349. "in": "query"
  5350. },
  5351. {
  5352. "type": "string",
  5353. "description": "请求路径",
  5354. "name": "path",
  5355. "in": "query"
  5356. },
  5357. {
  5358. "type": "string",
  5359. "description": "响应Body",
  5360. "name": "resp",
  5361. "in": "query"
  5362. },
  5363. {
  5364. "type": "integer",
  5365. "description": "请求状态",
  5366. "name": "status",
  5367. "in": "query"
  5368. },
  5369. {
  5370. "type": "string",
  5371. "description": "更新时间",
  5372. "name": "updatedAt",
  5373. "in": "query"
  5374. },
  5375. {
  5376. "type": "integer",
  5377. "description": "用户id",
  5378. "name": "user_id",
  5379. "in": "query"
  5380. }
  5381. ],
  5382. "responses": {
  5383. "200": {
  5384. "description": "分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量",
  5385. "schema": {
  5386. "allOf": [
  5387. {
  5388. "$ref": "#/definitions/response.Response"
  5389. },
  5390. {
  5391. "type": "object",
  5392. "properties": {
  5393. "data": {
  5394. "$ref": "#/definitions/response.PageResult"
  5395. },
  5396. "msg": {
  5397. "type": "string"
  5398. }
  5399. }
  5400. }
  5401. ]
  5402. }
  5403. }
  5404. }
  5405. }
  5406. },
  5407. "/sysParams/createSysParams": {
  5408. "post": {
  5409. "security": [
  5410. {
  5411. "ApiKeyAuth": []
  5412. }
  5413. ],
  5414. "consumes": [
  5415. "application/json"
  5416. ],
  5417. "produces": [
  5418. "application/json"
  5419. ],
  5420. "tags": [
  5421. "SysParams"
  5422. ],
  5423. "summary": "创建参数",
  5424. "parameters": [
  5425. {
  5426. "description": "创建参数",
  5427. "name": "data",
  5428. "in": "body",
  5429. "required": true,
  5430. "schema": {
  5431. "$ref": "#/definitions/system.SysParams"
  5432. }
  5433. }
  5434. ],
  5435. "responses": {
  5436. "200": {
  5437. "description": "创建成功",
  5438. "schema": {
  5439. "allOf": [
  5440. {
  5441. "$ref": "#/definitions/response.Response"
  5442. },
  5443. {
  5444. "type": "object",
  5445. "properties": {
  5446. "msg": {
  5447. "type": "string"
  5448. }
  5449. }
  5450. }
  5451. ]
  5452. }
  5453. }
  5454. }
  5455. }
  5456. },
  5457. "/sysParams/deleteSysParams": {
  5458. "delete": {
  5459. "security": [
  5460. {
  5461. "ApiKeyAuth": []
  5462. }
  5463. ],
  5464. "consumes": [
  5465. "application/json"
  5466. ],
  5467. "produces": [
  5468. "application/json"
  5469. ],
  5470. "tags": [
  5471. "SysParams"
  5472. ],
  5473. "summary": "删除参数",
  5474. "parameters": [
  5475. {
  5476. "description": "删除参数",
  5477. "name": "data",
  5478. "in": "body",
  5479. "required": true,
  5480. "schema": {
  5481. "$ref": "#/definitions/system.SysParams"
  5482. }
  5483. }
  5484. ],
  5485. "responses": {
  5486. "200": {
  5487. "description": "删除成功",
  5488. "schema": {
  5489. "allOf": [
  5490. {
  5491. "$ref": "#/definitions/response.Response"
  5492. },
  5493. {
  5494. "type": "object",
  5495. "properties": {
  5496. "msg": {
  5497. "type": "string"
  5498. }
  5499. }
  5500. }
  5501. ]
  5502. }
  5503. }
  5504. }
  5505. }
  5506. },
  5507. "/sysParams/deleteSysParamsByIds": {
  5508. "delete": {
  5509. "security": [
  5510. {
  5511. "ApiKeyAuth": []
  5512. }
  5513. ],
  5514. "consumes": [
  5515. "application/json"
  5516. ],
  5517. "produces": [
  5518. "application/json"
  5519. ],
  5520. "tags": [
  5521. "SysParams"
  5522. ],
  5523. "summary": "批量删除参数",
  5524. "responses": {
  5525. "200": {
  5526. "description": "批量删除成功",
  5527. "schema": {
  5528. "allOf": [
  5529. {
  5530. "$ref": "#/definitions/response.Response"
  5531. },
  5532. {
  5533. "type": "object",
  5534. "properties": {
  5535. "msg": {
  5536. "type": "string"
  5537. }
  5538. }
  5539. }
  5540. ]
  5541. }
  5542. }
  5543. }
  5544. }
  5545. },
  5546. "/sysParams/findSysParams": {
  5547. "get": {
  5548. "security": [
  5549. {
  5550. "ApiKeyAuth": []
  5551. }
  5552. ],
  5553. "consumes": [
  5554. "application/json"
  5555. ],
  5556. "produces": [
  5557. "application/json"
  5558. ],
  5559. "tags": [
  5560. "SysParams"
  5561. ],
  5562. "summary": "用id查询参数",
  5563. "parameters": [
  5564. {
  5565. "type": "integer",
  5566. "description": "主键ID",
  5567. "name": "ID",
  5568. "in": "query"
  5569. },
  5570. {
  5571. "type": "string",
  5572. "description": "创建时间",
  5573. "name": "createdAt",
  5574. "in": "query"
  5575. },
  5576. {
  5577. "type": "string",
  5578. "description": "参数说明",
  5579. "name": "desc",
  5580. "in": "query"
  5581. },
  5582. {
  5583. "type": "string",
  5584. "description": "参数键",
  5585. "name": "key",
  5586. "in": "query",
  5587. "required": true
  5588. },
  5589. {
  5590. "type": "string",
  5591. "description": "参数名称",
  5592. "name": "name",
  5593. "in": "query",
  5594. "required": true
  5595. },
  5596. {
  5597. "type": "string",
  5598. "description": "更新时间",
  5599. "name": "updatedAt",
  5600. "in": "query"
  5601. },
  5602. {
  5603. "type": "string",
  5604. "description": "参数值",
  5605. "name": "value",
  5606. "in": "query",
  5607. "required": true
  5608. }
  5609. ],
  5610. "responses": {
  5611. "200": {
  5612. "description": "查询成功",
  5613. "schema": {
  5614. "allOf": [
  5615. {
  5616. "$ref": "#/definitions/response.Response"
  5617. },
  5618. {
  5619. "type": "object",
  5620. "properties": {
  5621. "data": {
  5622. "$ref": "#/definitions/system.SysParams"
  5623. },
  5624. "msg": {
  5625. "type": "string"
  5626. }
  5627. }
  5628. }
  5629. ]
  5630. }
  5631. }
  5632. }
  5633. }
  5634. },
  5635. "/sysParams/getSysParam": {
  5636. "get": {
  5637. "security": [
  5638. {
  5639. "ApiKeyAuth": []
  5640. }
  5641. ],
  5642. "consumes": [
  5643. "application/json"
  5644. ],
  5645. "produces": [
  5646. "application/json"
  5647. ],
  5648. "tags": [
  5649. "SysParams"
  5650. ],
  5651. "summary": "根据key获取参数value",
  5652. "parameters": [
  5653. {
  5654. "type": "string",
  5655. "description": "key",
  5656. "name": "key",
  5657. "in": "query",
  5658. "required": true
  5659. }
  5660. ],
  5661. "responses": {
  5662. "200": {
  5663. "description": "获取成功",
  5664. "schema": {
  5665. "allOf": [
  5666. {
  5667. "$ref": "#/definitions/response.Response"
  5668. },
  5669. {
  5670. "type": "object",
  5671. "properties": {
  5672. "data": {
  5673. "$ref": "#/definitions/system.SysParams"
  5674. },
  5675. "msg": {
  5676. "type": "string"
  5677. }
  5678. }
  5679. }
  5680. ]
  5681. }
  5682. }
  5683. }
  5684. }
  5685. },
  5686. "/sysParams/getSysParamsList": {
  5687. "get": {
  5688. "security": [
  5689. {
  5690. "ApiKeyAuth": []
  5691. }
  5692. ],
  5693. "consumes": [
  5694. "application/json"
  5695. ],
  5696. "produces": [
  5697. "application/json"
  5698. ],
  5699. "tags": [
  5700. "SysParams"
  5701. ],
  5702. "summary": "分页获取参数列表",
  5703. "parameters": [
  5704. {
  5705. "type": "string",
  5706. "name": "endCreatedAt",
  5707. "in": "query"
  5708. },
  5709. {
  5710. "type": "string",
  5711. "name": "key",
  5712. "in": "query"
  5713. },
  5714. {
  5715. "type": "string",
  5716. "description": "关键字",
  5717. "name": "keyword",
  5718. "in": "query"
  5719. },
  5720. {
  5721. "type": "string",
  5722. "name": "name",
  5723. "in": "query"
  5724. },
  5725. {
  5726. "type": "integer",
  5727. "description": "页码",
  5728. "name": "page",
  5729. "in": "query"
  5730. },
  5731. {
  5732. "type": "integer",
  5733. "description": "每页大小",
  5734. "name": "pageSize",
  5735. "in": "query"
  5736. },
  5737. {
  5738. "type": "string",
  5739. "name": "startCreatedAt",
  5740. "in": "query"
  5741. }
  5742. ],
  5743. "responses": {
  5744. "200": {
  5745. "description": "获取成功",
  5746. "schema": {
  5747. "allOf": [
  5748. {
  5749. "$ref": "#/definitions/response.Response"
  5750. },
  5751. {
  5752. "type": "object",
  5753. "properties": {
  5754. "data": {
  5755. "$ref": "#/definitions/response.PageResult"
  5756. },
  5757. "msg": {
  5758. "type": "string"
  5759. }
  5760. }
  5761. }
  5762. ]
  5763. }
  5764. }
  5765. }
  5766. }
  5767. },
  5768. "/sysParams/updateSysParams": {
  5769. "put": {
  5770. "security": [
  5771. {
  5772. "ApiKeyAuth": []
  5773. }
  5774. ],
  5775. "consumes": [
  5776. "application/json"
  5777. ],
  5778. "produces": [
  5779. "application/json"
  5780. ],
  5781. "tags": [
  5782. "SysParams"
  5783. ],
  5784. "summary": "更新参数",
  5785. "parameters": [
  5786. {
  5787. "description": "更新参数",
  5788. "name": "data",
  5789. "in": "body",
  5790. "required": true,
  5791. "schema": {
  5792. "$ref": "#/definitions/system.SysParams"
  5793. }
  5794. }
  5795. ],
  5796. "responses": {
  5797. "200": {
  5798. "description": "更新成功",
  5799. "schema": {
  5800. "allOf": [
  5801. {
  5802. "$ref": "#/definitions/response.Response"
  5803. },
  5804. {
  5805. "type": "object",
  5806. "properties": {
  5807. "msg": {
  5808. "type": "string"
  5809. }
  5810. }
  5811. }
  5812. ]
  5813. }
  5814. }
  5815. }
  5816. }
  5817. },
  5818. "/system/getServerInfo": {
  5819. "post": {
  5820. "security": [
  5821. {
  5822. "ApiKeyAuth": []
  5823. }
  5824. ],
  5825. "produces": [
  5826. "application/json"
  5827. ],
  5828. "tags": [
  5829. "System"
  5830. ],
  5831. "summary": "获取服务器信息",
  5832. "responses": {
  5833. "200": {
  5834. "description": "获取服务器信息",
  5835. "schema": {
  5836. "allOf": [
  5837. {
  5838. "$ref": "#/definitions/response.Response"
  5839. },
  5840. {
  5841. "type": "object",
  5842. "properties": {
  5843. "data": {
  5844. "type": "object",
  5845. "additionalProperties": true
  5846. },
  5847. "msg": {
  5848. "type": "string"
  5849. }
  5850. }
  5851. }
  5852. ]
  5853. }
  5854. }
  5855. }
  5856. }
  5857. },
  5858. "/system/getSystemConfig": {
  5859. "post": {
  5860. "security": [
  5861. {
  5862. "ApiKeyAuth": []
  5863. }
  5864. ],
  5865. "produces": [
  5866. "application/json"
  5867. ],
  5868. "tags": [
  5869. "System"
  5870. ],
  5871. "summary": "获取配置文件内容",
  5872. "responses": {
  5873. "200": {
  5874. "description": "获取配置文件内容,返回包括系统配置",
  5875. "schema": {
  5876. "allOf": [
  5877. {
  5878. "$ref": "#/definitions/response.Response"
  5879. },
  5880. {
  5881. "type": "object",
  5882. "properties": {
  5883. "data": {
  5884. "$ref": "#/definitions/response.SysConfigResponse"
  5885. },
  5886. "msg": {
  5887. "type": "string"
  5888. }
  5889. }
  5890. }
  5891. ]
  5892. }
  5893. }
  5894. }
  5895. }
  5896. },
  5897. "/system/reloadSystem": {
  5898. "post": {
  5899. "security": [
  5900. {
  5901. "ApiKeyAuth": []
  5902. }
  5903. ],
  5904. "produces": [
  5905. "application/json"
  5906. ],
  5907. "tags": [
  5908. "System"
  5909. ],
  5910. "summary": "重启系统",
  5911. "responses": {
  5912. "200": {
  5913. "description": "重启系统",
  5914. "schema": {
  5915. "allOf": [
  5916. {
  5917. "$ref": "#/definitions/response.Response"
  5918. },
  5919. {
  5920. "type": "object",
  5921. "properties": {
  5922. "msg": {
  5923. "type": "string"
  5924. }
  5925. }
  5926. }
  5927. ]
  5928. }
  5929. }
  5930. }
  5931. }
  5932. },
  5933. "/system/setSystemConfig": {
  5934. "post": {
  5935. "security": [
  5936. {
  5937. "ApiKeyAuth": []
  5938. }
  5939. ],
  5940. "produces": [
  5941. "application/json"
  5942. ],
  5943. "tags": [
  5944. "System"
  5945. ],
  5946. "summary": "设置配置文件内容",
  5947. "parameters": [
  5948. {
  5949. "description": "设置配置文件内容",
  5950. "name": "data",
  5951. "in": "body",
  5952. "required": true,
  5953. "schema": {
  5954. "$ref": "#/definitions/system.System"
  5955. }
  5956. }
  5957. ],
  5958. "responses": {
  5959. "200": {
  5960. "description": "设置配置文件内容",
  5961. "schema": {
  5962. "allOf": [
  5963. {
  5964. "$ref": "#/definitions/response.Response"
  5965. },
  5966. {
  5967. "type": "object",
  5968. "properties": {
  5969. "data": {
  5970. "type": "string"
  5971. }
  5972. }
  5973. }
  5974. ]
  5975. }
  5976. }
  5977. }
  5978. }
  5979. },
  5980. "/user/SetSelfInfo": {
  5981. "put": {
  5982. "security": [
  5983. {
  5984. "ApiKeyAuth": []
  5985. }
  5986. ],
  5987. "consumes": [
  5988. "application/json"
  5989. ],
  5990. "produces": [
  5991. "application/json"
  5992. ],
  5993. "tags": [
  5994. "SysUser"
  5995. ],
  5996. "summary": "设置用户信息",
  5997. "parameters": [
  5998. {
  5999. "description": "ID, 用户名, 昵称, 头像链接",
  6000. "name": "data",
  6001. "in": "body",
  6002. "required": true,
  6003. "schema": {
  6004. "$ref": "#/definitions/system.SysUser"
  6005. }
  6006. }
  6007. ],
  6008. "responses": {
  6009. "200": {
  6010. "description": "设置用户信息",
  6011. "schema": {
  6012. "allOf": [
  6013. {
  6014. "$ref": "#/definitions/response.Response"
  6015. },
  6016. {
  6017. "type": "object",
  6018. "properties": {
  6019. "data": {
  6020. "type": "object",
  6021. "additionalProperties": true
  6022. },
  6023. "msg": {
  6024. "type": "string"
  6025. }
  6026. }
  6027. }
  6028. ]
  6029. }
  6030. }
  6031. }
  6032. }
  6033. },
  6034. "/user/SetSelfSetting": {
  6035. "put": {
  6036. "security": [
  6037. {
  6038. "ApiKeyAuth": []
  6039. }
  6040. ],
  6041. "consumes": [
  6042. "application/json"
  6043. ],
  6044. "produces": [
  6045. "application/json"
  6046. ],
  6047. "tags": [
  6048. "SysUser"
  6049. ],
  6050. "summary": "设置用户配置",
  6051. "parameters": [
  6052. {
  6053. "description": "用户配置数据",
  6054. "name": "data",
  6055. "in": "body",
  6056. "required": true,
  6057. "schema": {
  6058. "type": "object",
  6059. "additionalProperties": true
  6060. }
  6061. }
  6062. ],
  6063. "responses": {
  6064. "200": {
  6065. "description": "设置用户配置",
  6066. "schema": {
  6067. "allOf": [
  6068. {
  6069. "$ref": "#/definitions/response.Response"
  6070. },
  6071. {
  6072. "type": "object",
  6073. "properties": {
  6074. "data": {
  6075. "type": "object",
  6076. "additionalProperties": true
  6077. },
  6078. "msg": {
  6079. "type": "string"
  6080. }
  6081. }
  6082. }
  6083. ]
  6084. }
  6085. }
  6086. }
  6087. }
  6088. },
  6089. "/user/admin_register": {
  6090. "post": {
  6091. "produces": [
  6092. "application/json"
  6093. ],
  6094. "tags": [
  6095. "SysUser"
  6096. ],
  6097. "summary": "用户注册账号",
  6098. "parameters": [
  6099. {
  6100. "description": "用户名, 昵称, 密码, 角色ID",
  6101. "name": "data",
  6102. "in": "body",
  6103. "required": true,
  6104. "schema": {
  6105. "$ref": "#/definitions/request.Register"
  6106. }
  6107. }
  6108. ],
  6109. "responses": {
  6110. "200": {
  6111. "description": "用户注册账号,返回包括用户信息",
  6112. "schema": {
  6113. "allOf": [
  6114. {
  6115. "$ref": "#/definitions/response.Response"
  6116. },
  6117. {
  6118. "type": "object",
  6119. "properties": {
  6120. "data": {
  6121. "$ref": "#/definitions/response.SysUserResponse"
  6122. },
  6123. "msg": {
  6124. "type": "string"
  6125. }
  6126. }
  6127. }
  6128. ]
  6129. }
  6130. }
  6131. }
  6132. }
  6133. },
  6134. "/user/changePassword": {
  6135. "post": {
  6136. "security": [
  6137. {
  6138. "ApiKeyAuth": []
  6139. }
  6140. ],
  6141. "produces": [
  6142. "application/json"
  6143. ],
  6144. "tags": [
  6145. "SysUser"
  6146. ],
  6147. "summary": "用户修改密码",
  6148. "parameters": [
  6149. {
  6150. "description": "用户名, 原密码, 新密码",
  6151. "name": "data",
  6152. "in": "body",
  6153. "required": true,
  6154. "schema": {
  6155. "$ref": "#/definitions/request.ChangePasswordReq"
  6156. }
  6157. }
  6158. ],
  6159. "responses": {
  6160. "200": {
  6161. "description": "用户修改密码",
  6162. "schema": {
  6163. "allOf": [
  6164. {
  6165. "$ref": "#/definitions/response.Response"
  6166. },
  6167. {
  6168. "type": "object",
  6169. "properties": {
  6170. "msg": {
  6171. "type": "string"
  6172. }
  6173. }
  6174. }
  6175. ]
  6176. }
  6177. }
  6178. }
  6179. }
  6180. },
  6181. "/user/deleteUser": {
  6182. "delete": {
  6183. "security": [
  6184. {
  6185. "ApiKeyAuth": []
  6186. }
  6187. ],
  6188. "consumes": [
  6189. "application/json"
  6190. ],
  6191. "produces": [
  6192. "application/json"
  6193. ],
  6194. "tags": [
  6195. "SysUser"
  6196. ],
  6197. "summary": "删除用户",
  6198. "parameters": [
  6199. {
  6200. "description": "用户ID",
  6201. "name": "data",
  6202. "in": "body",
  6203. "required": true,
  6204. "schema": {
  6205. "$ref": "#/definitions/request.GetById"
  6206. }
  6207. }
  6208. ],
  6209. "responses": {
  6210. "200": {
  6211. "description": "删除用户",
  6212. "schema": {
  6213. "allOf": [
  6214. {
  6215. "$ref": "#/definitions/response.Response"
  6216. },
  6217. {
  6218. "type": "object",
  6219. "properties": {
  6220. "msg": {
  6221. "type": "string"
  6222. }
  6223. }
  6224. }
  6225. ]
  6226. }
  6227. }
  6228. }
  6229. }
  6230. },
  6231. "/user/getUserInfo": {
  6232. "get": {
  6233. "security": [
  6234. {
  6235. "ApiKeyAuth": []
  6236. }
  6237. ],
  6238. "consumes": [
  6239. "application/json"
  6240. ],
  6241. "produces": [
  6242. "application/json"
  6243. ],
  6244. "tags": [
  6245. "SysUser"
  6246. ],
  6247. "summary": "获取用户信息",
  6248. "responses": {
  6249. "200": {
  6250. "description": "获取用户信息",
  6251. "schema": {
  6252. "allOf": [
  6253. {
  6254. "$ref": "#/definitions/response.Response"
  6255. },
  6256. {
  6257. "type": "object",
  6258. "properties": {
  6259. "data": {
  6260. "type": "object",
  6261. "additionalProperties": true
  6262. },
  6263. "msg": {
  6264. "type": "string"
  6265. }
  6266. }
  6267. }
  6268. ]
  6269. }
  6270. }
  6271. }
  6272. }
  6273. },
  6274. "/user/getUserList": {
  6275. "post": {
  6276. "security": [
  6277. {
  6278. "ApiKeyAuth": []
  6279. }
  6280. ],
  6281. "consumes": [
  6282. "application/json"
  6283. ],
  6284. "produces": [
  6285. "application/json"
  6286. ],
  6287. "tags": [
  6288. "SysUser"
  6289. ],
  6290. "summary": "分页获取用户列表",
  6291. "parameters": [
  6292. {
  6293. "description": "页码, 每页大小",
  6294. "name": "data",
  6295. "in": "body",
  6296. "required": true,
  6297. "schema": {
  6298. "$ref": "#/definitions/request.GetUserList"
  6299. }
  6300. }
  6301. ],
  6302. "responses": {
  6303. "200": {
  6304. "description": "分页获取用户列表,返回包括列表,总数,页码,每页数量",
  6305. "schema": {
  6306. "allOf": [
  6307. {
  6308. "$ref": "#/definitions/response.Response"
  6309. },
  6310. {
  6311. "type": "object",
  6312. "properties": {
  6313. "data": {
  6314. "$ref": "#/definitions/response.PageResult"
  6315. },
  6316. "msg": {
  6317. "type": "string"
  6318. }
  6319. }
  6320. }
  6321. ]
  6322. }
  6323. }
  6324. }
  6325. }
  6326. },
  6327. "/user/resetPassword": {
  6328. "post": {
  6329. "security": [
  6330. {
  6331. "ApiKeyAuth": []
  6332. }
  6333. ],
  6334. "produces": [
  6335. "application/json"
  6336. ],
  6337. "tags": [
  6338. "SysUser"
  6339. ],
  6340. "summary": "重置用户密码",
  6341. "parameters": [
  6342. {
  6343. "description": "ID",
  6344. "name": "data",
  6345. "in": "body",
  6346. "required": true,
  6347. "schema": {
  6348. "$ref": "#/definitions/system.SysUser"
  6349. }
  6350. }
  6351. ],
  6352. "responses": {
  6353. "200": {
  6354. "description": "重置用户密码",
  6355. "schema": {
  6356. "allOf": [
  6357. {
  6358. "$ref": "#/definitions/response.Response"
  6359. },
  6360. {
  6361. "type": "object",
  6362. "properties": {
  6363. "msg": {
  6364. "type": "string"
  6365. }
  6366. }
  6367. }
  6368. ]
  6369. }
  6370. }
  6371. }
  6372. }
  6373. },
  6374. "/user/setUserAuthorities": {
  6375. "post": {
  6376. "security": [
  6377. {
  6378. "ApiKeyAuth": []
  6379. }
  6380. ],
  6381. "consumes": [
  6382. "application/json"
  6383. ],
  6384. "produces": [
  6385. "application/json"
  6386. ],
  6387. "tags": [
  6388. "SysUser"
  6389. ],
  6390. "summary": "设置用户权限",
  6391. "parameters": [
  6392. {
  6393. "description": "用户UUID, 角色ID",
  6394. "name": "data",
  6395. "in": "body",
  6396. "required": true,
  6397. "schema": {
  6398. "$ref": "#/definitions/request.SetUserAuthorities"
  6399. }
  6400. }
  6401. ],
  6402. "responses": {
  6403. "200": {
  6404. "description": "设置用户权限",
  6405. "schema": {
  6406. "allOf": [
  6407. {
  6408. "$ref": "#/definitions/response.Response"
  6409. },
  6410. {
  6411. "type": "object",
  6412. "properties": {
  6413. "msg": {
  6414. "type": "string"
  6415. }
  6416. }
  6417. }
  6418. ]
  6419. }
  6420. }
  6421. }
  6422. }
  6423. },
  6424. "/user/setUserAuthority": {
  6425. "post": {
  6426. "security": [
  6427. {
  6428. "ApiKeyAuth": []
  6429. }
  6430. ],
  6431. "consumes": [
  6432. "application/json"
  6433. ],
  6434. "produces": [
  6435. "application/json"
  6436. ],
  6437. "tags": [
  6438. "SysUser"
  6439. ],
  6440. "summary": "更改用户权限",
  6441. "parameters": [
  6442. {
  6443. "description": "用户UUID, 角色ID",
  6444. "name": "data",
  6445. "in": "body",
  6446. "required": true,
  6447. "schema": {
  6448. "$ref": "#/definitions/request.SetUserAuth"
  6449. }
  6450. }
  6451. ],
  6452. "responses": {
  6453. "200": {
  6454. "description": "设置用户权限",
  6455. "schema": {
  6456. "allOf": [
  6457. {
  6458. "$ref": "#/definitions/response.Response"
  6459. },
  6460. {
  6461. "type": "object",
  6462. "properties": {
  6463. "msg": {
  6464. "type": "string"
  6465. }
  6466. }
  6467. }
  6468. ]
  6469. }
  6470. }
  6471. }
  6472. }
  6473. },
  6474. "/user/setUserInfo": {
  6475. "put": {
  6476. "security": [
  6477. {
  6478. "ApiKeyAuth": []
  6479. }
  6480. ],
  6481. "consumes": [
  6482. "application/json"
  6483. ],
  6484. "produces": [
  6485. "application/json"
  6486. ],
  6487. "tags": [
  6488. "SysUser"
  6489. ],
  6490. "summary": "设置用户信息",
  6491. "parameters": [
  6492. {
  6493. "description": "ID, 用户名, 昵称, 头像链接",
  6494. "name": "data",
  6495. "in": "body",
  6496. "required": true,
  6497. "schema": {
  6498. "$ref": "#/definitions/system.SysUser"
  6499. }
  6500. }
  6501. ],
  6502. "responses": {
  6503. "200": {
  6504. "description": "设置用户信息",
  6505. "schema": {
  6506. "allOf": [
  6507. {
  6508. "$ref": "#/definitions/response.Response"
  6509. },
  6510. {
  6511. "type": "object",
  6512. "properties": {
  6513. "data": {
  6514. "type": "object",
  6515. "additionalProperties": true
  6516. },
  6517. "msg": {
  6518. "type": "string"
  6519. }
  6520. }
  6521. }
  6522. ]
  6523. }
  6524. }
  6525. }
  6526. }
  6527. }
  6528. },
  6529. "definitions": {
  6530. "common.JSONMap": {
  6531. "type": "object",
  6532. "additionalProperties": true
  6533. },
  6534. "config.AliyunOSS": {
  6535. "type": "object",
  6536. "properties": {
  6537. "access-key-id": {
  6538. "type": "string"
  6539. },
  6540. "access-key-secret": {
  6541. "type": "string"
  6542. },
  6543. "base-path": {
  6544. "type": "string"
  6545. },
  6546. "bucket-name": {
  6547. "type": "string"
  6548. },
  6549. "bucket-url": {
  6550. "type": "string"
  6551. },
  6552. "endpoint": {
  6553. "type": "string"
  6554. }
  6555. }
  6556. },
  6557. "config.Autocode": {
  6558. "type": "object",
  6559. "properties": {
  6560. "ai-path": {
  6561. "type": "string"
  6562. },
  6563. "module": {
  6564. "type": "string"
  6565. },
  6566. "root": {
  6567. "type": "string"
  6568. },
  6569. "server": {
  6570. "type": "string"
  6571. },
  6572. "web": {
  6573. "type": "string"
  6574. }
  6575. }
  6576. },
  6577. "config.AwsS3": {
  6578. "type": "object",
  6579. "properties": {
  6580. "base-url": {
  6581. "type": "string"
  6582. },
  6583. "bucket": {
  6584. "type": "string"
  6585. },
  6586. "disable-ssl": {
  6587. "type": "boolean"
  6588. },
  6589. "endpoint": {
  6590. "type": "string"
  6591. },
  6592. "path-prefix": {
  6593. "type": "string"
  6594. },
  6595. "region": {
  6596. "type": "string"
  6597. },
  6598. "s3-force-path-style": {
  6599. "type": "boolean"
  6600. },
  6601. "secret-id": {
  6602. "type": "string"
  6603. },
  6604. "secret-key": {
  6605. "type": "string"
  6606. }
  6607. }
  6608. },
  6609. "config.CORS": {
  6610. "type": "object",
  6611. "properties": {
  6612. "mode": {
  6613. "type": "string"
  6614. },
  6615. "whitelist": {
  6616. "type": "array",
  6617. "items": {
  6618. "$ref": "#/definitions/config.CORSWhitelist"
  6619. }
  6620. }
  6621. }
  6622. },
  6623. "config.CORSWhitelist": {
  6624. "type": "object",
  6625. "properties": {
  6626. "allow-credentials": {
  6627. "type": "boolean"
  6628. },
  6629. "allow-headers": {
  6630. "type": "string"
  6631. },
  6632. "allow-methods": {
  6633. "type": "string"
  6634. },
  6635. "allow-origin": {
  6636. "type": "string"
  6637. },
  6638. "expose-headers": {
  6639. "type": "string"
  6640. }
  6641. }
  6642. },
  6643. "config.Captcha": {
  6644. "type": "object",
  6645. "properties": {
  6646. "img-height": {
  6647. "description": "验证码高度",
  6648. "type": "integer"
  6649. },
  6650. "img-width": {
  6651. "description": "验证码宽度",
  6652. "type": "integer"
  6653. },
  6654. "key-long": {
  6655. "description": "验证码长度",
  6656. "type": "integer"
  6657. },
  6658. "open-captcha": {
  6659. "description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码",
  6660. "type": "integer"
  6661. },
  6662. "open-captcha-timeout": {
  6663. "description": "防爆破验证码超时时间,单位:s(秒)",
  6664. "type": "integer"
  6665. }
  6666. }
  6667. },
  6668. "config.CloudflareR2": {
  6669. "type": "object",
  6670. "properties": {
  6671. "access-key-id": {
  6672. "type": "string"
  6673. },
  6674. "account-id": {
  6675. "type": "string"
  6676. },
  6677. "base-url": {
  6678. "type": "string"
  6679. },
  6680. "bucket": {
  6681. "type": "string"
  6682. },
  6683. "path": {
  6684. "type": "string"
  6685. },
  6686. "secret-access-key": {
  6687. "type": "string"
  6688. }
  6689. }
  6690. },
  6691. "config.DiskList": {
  6692. "type": "object",
  6693. "properties": {
  6694. "mount-point": {
  6695. "type": "string"
  6696. }
  6697. }
  6698. },
  6699. "config.Excel": {
  6700. "type": "object",
  6701. "properties": {
  6702. "dir": {
  6703. "type": "string"
  6704. }
  6705. }
  6706. },
  6707. "config.HuaWeiObs": {
  6708. "type": "object",
  6709. "properties": {
  6710. "access-key": {
  6711. "type": "string"
  6712. },
  6713. "bucket": {
  6714. "type": "string"
  6715. },
  6716. "endpoint": {
  6717. "type": "string"
  6718. },
  6719. "path": {
  6720. "type": "string"
  6721. },
  6722. "secret-key": {
  6723. "type": "string"
  6724. }
  6725. }
  6726. },
  6727. "config.JWT": {
  6728. "type": "object",
  6729. "properties": {
  6730. "buffer-time": {
  6731. "description": "缓冲时间",
  6732. "type": "string"
  6733. },
  6734. "expires-time": {
  6735. "description": "过期时间",
  6736. "type": "string"
  6737. },
  6738. "issuer": {
  6739. "description": "签发者",
  6740. "type": "string"
  6741. },
  6742. "signing-key": {
  6743. "description": "jwt签名",
  6744. "type": "string"
  6745. }
  6746. }
  6747. },
  6748. "config.Local": {
  6749. "type": "object",
  6750. "properties": {
  6751. "path": {
  6752. "description": "本地文件访问路径",
  6753. "type": "string"
  6754. },
  6755. "store-path": {
  6756. "description": "本地文件存储路径",
  6757. "type": "string"
  6758. }
  6759. }
  6760. },
  6761. "config.Minio": {
  6762. "type": "object",
  6763. "properties": {
  6764. "access-key-id": {
  6765. "type": "string"
  6766. },
  6767. "access-key-secret": {
  6768. "type": "string"
  6769. },
  6770. "base-path": {
  6771. "type": "string"
  6772. },
  6773. "bucket-name": {
  6774. "type": "string"
  6775. },
  6776. "bucket-url": {
  6777. "type": "string"
  6778. },
  6779. "endpoint": {
  6780. "type": "string"
  6781. },
  6782. "use-ssl": {
  6783. "type": "boolean"
  6784. }
  6785. }
  6786. },
  6787. "config.Mongo": {
  6788. "type": "object",
  6789. "properties": {
  6790. "auth-source": {
  6791. "description": "验证数据库",
  6792. "type": "string"
  6793. },
  6794. "coll": {
  6795. "description": "collection name",
  6796. "type": "string"
  6797. },
  6798. "connect-timeout-ms": {
  6799. "description": "连接超时时间",
  6800. "type": "integer"
  6801. },
  6802. "database": {
  6803. "description": "database name",
  6804. "type": "string"
  6805. },
  6806. "hosts": {
  6807. "description": "主机列表",
  6808. "type": "array",
  6809. "items": {
  6810. "$ref": "#/definitions/config.MongoHost"
  6811. }
  6812. },
  6813. "is-zap": {
  6814. "description": "是否开启zap日志",
  6815. "type": "boolean"
  6816. },
  6817. "max-pool-size": {
  6818. "description": "最大连接池",
  6819. "type": "integer"
  6820. },
  6821. "min-pool-size": {
  6822. "description": "最小连接池",
  6823. "type": "integer"
  6824. },
  6825. "options": {
  6826. "description": "mongodb options",
  6827. "type": "string"
  6828. },
  6829. "password": {
  6830. "description": "密码",
  6831. "type": "string"
  6832. },
  6833. "socket-timeout-ms": {
  6834. "description": "socket超时时间",
  6835. "type": "integer"
  6836. },
  6837. "username": {
  6838. "description": "用户名",
  6839. "type": "string"
  6840. }
  6841. }
  6842. },
  6843. "config.MongoHost": {
  6844. "type": "object",
  6845. "properties": {
  6846. "host": {
  6847. "description": "ip地址",
  6848. "type": "string"
  6849. },
  6850. "port": {
  6851. "description": "端口",
  6852. "type": "string"
  6853. }
  6854. }
  6855. },
  6856. "config.Mssql": {
  6857. "type": "object",
  6858. "properties": {
  6859. "config": {
  6860. "description": "高级配置",
  6861. "type": "string"
  6862. },
  6863. "db-name": {
  6864. "description": "数据库名",
  6865. "type": "string"
  6866. },
  6867. "engine": {
  6868. "description": "数据库引擎,默认InnoDB",
  6869. "type": "string",
  6870. "default": "InnoDB"
  6871. },
  6872. "log-mode": {
  6873. "description": "是否开启Gorm全局日志",
  6874. "type": "string"
  6875. },
  6876. "log-zap": {
  6877. "description": "是否通过zap写入日志文件",
  6878. "type": "boolean"
  6879. },
  6880. "max-idle-conns": {
  6881. "description": "空闲中的最大连接数",
  6882. "type": "integer"
  6883. },
  6884. "max-open-conns": {
  6885. "description": "打开到数据库的最大连接数",
  6886. "type": "integer"
  6887. },
  6888. "password": {
  6889. "description": "数据库密码",
  6890. "type": "string"
  6891. },
  6892. "path": {
  6893. "description": "数据库地址",
  6894. "type": "string"
  6895. },
  6896. "port": {
  6897. "description": "数据库端口",
  6898. "type": "string"
  6899. },
  6900. "prefix": {
  6901. "description": "数据库前缀",
  6902. "type": "string"
  6903. },
  6904. "singular": {
  6905. "description": "是否开启全局禁用复数,true表示开启",
  6906. "type": "boolean"
  6907. },
  6908. "username": {
  6909. "description": "数据库账号",
  6910. "type": "string"
  6911. }
  6912. }
  6913. },
  6914. "config.Mysql": {
  6915. "type": "object",
  6916. "properties": {
  6917. "config": {
  6918. "description": "高级配置",
  6919. "type": "string"
  6920. },
  6921. "db-name": {
  6922. "description": "数据库名",
  6923. "type": "string"
  6924. },
  6925. "engine": {
  6926. "description": "数据库引擎,默认InnoDB",
  6927. "type": "string",
  6928. "default": "InnoDB"
  6929. },
  6930. "log-mode": {
  6931. "description": "是否开启Gorm全局日志",
  6932. "type": "string"
  6933. },
  6934. "log-zap": {
  6935. "description": "是否通过zap写入日志文件",
  6936. "type": "boolean"
  6937. },
  6938. "max-idle-conns": {
  6939. "description": "空闲中的最大连接数",
  6940. "type": "integer"
  6941. },
  6942. "max-open-conns": {
  6943. "description": "打开到数据库的最大连接数",
  6944. "type": "integer"
  6945. },
  6946. "password": {
  6947. "description": "数据库密码",
  6948. "type": "string"
  6949. },
  6950. "path": {
  6951. "description": "数据库地址",
  6952. "type": "string"
  6953. },
  6954. "port": {
  6955. "description": "数据库端口",
  6956. "type": "string"
  6957. },
  6958. "prefix": {
  6959. "description": "数据库前缀",
  6960. "type": "string"
  6961. },
  6962. "singular": {
  6963. "description": "是否开启全局禁用复数,true表示开启",
  6964. "type": "boolean"
  6965. },
  6966. "username": {
  6967. "description": "数据库账号",
  6968. "type": "string"
  6969. }
  6970. }
  6971. },
  6972. "config.Oracle": {
  6973. "type": "object",
  6974. "properties": {
  6975. "config": {
  6976. "description": "高级配置",
  6977. "type": "string"
  6978. },
  6979. "db-name": {
  6980. "description": "数据库名",
  6981. "type": "string"
  6982. },
  6983. "engine": {
  6984. "description": "数据库引擎,默认InnoDB",
  6985. "type": "string",
  6986. "default": "InnoDB"
  6987. },
  6988. "log-mode": {
  6989. "description": "是否开启Gorm全局日志",
  6990. "type": "string"
  6991. },
  6992. "log-zap": {
  6993. "description": "是否通过zap写入日志文件",
  6994. "type": "boolean"
  6995. },
  6996. "max-idle-conns": {
  6997. "description": "空闲中的最大连接数",
  6998. "type": "integer"
  6999. },
  7000. "max-open-conns": {
  7001. "description": "打开到数据库的最大连接数",
  7002. "type": "integer"
  7003. },
  7004. "password": {
  7005. "description": "数据库密码",
  7006. "type": "string"
  7007. },
  7008. "path": {
  7009. "description": "数据库地址",
  7010. "type": "string"
  7011. },
  7012. "port": {
  7013. "description": "数据库端口",
  7014. "type": "string"
  7015. },
  7016. "prefix": {
  7017. "description": "数据库前缀",
  7018. "type": "string"
  7019. },
  7020. "singular": {
  7021. "description": "是否开启全局禁用复数,true表示开启",
  7022. "type": "boolean"
  7023. },
  7024. "username": {
  7025. "description": "数据库账号",
  7026. "type": "string"
  7027. }
  7028. }
  7029. },
  7030. "config.Pgsql": {
  7031. "type": "object",
  7032. "properties": {
  7033. "config": {
  7034. "description": "高级配置",
  7035. "type": "string"
  7036. },
  7037. "db-name": {
  7038. "description": "数据库名",
  7039. "type": "string"
  7040. },
  7041. "engine": {
  7042. "description": "数据库引擎,默认InnoDB",
  7043. "type": "string",
  7044. "default": "InnoDB"
  7045. },
  7046. "log-mode": {
  7047. "description": "是否开启Gorm全局日志",
  7048. "type": "string"
  7049. },
  7050. "log-zap": {
  7051. "description": "是否通过zap写入日志文件",
  7052. "type": "boolean"
  7053. },
  7054. "max-idle-conns": {
  7055. "description": "空闲中的最大连接数",
  7056. "type": "integer"
  7057. },
  7058. "max-open-conns": {
  7059. "description": "打开到数据库的最大连接数",
  7060. "type": "integer"
  7061. },
  7062. "password": {
  7063. "description": "数据库密码",
  7064. "type": "string"
  7065. },
  7066. "path": {
  7067. "description": "数据库地址",
  7068. "type": "string"
  7069. },
  7070. "port": {
  7071. "description": "数据库端口",
  7072. "type": "string"
  7073. },
  7074. "prefix": {
  7075. "description": "数据库前缀",
  7076. "type": "string"
  7077. },
  7078. "singular": {
  7079. "description": "是否开启全局禁用复数,true表示开启",
  7080. "type": "boolean"
  7081. },
  7082. "username": {
  7083. "description": "数据库账号",
  7084. "type": "string"
  7085. }
  7086. }
  7087. },
  7088. "config.Qiniu": {
  7089. "type": "object",
  7090. "properties": {
  7091. "access-key": {
  7092. "description": "秘钥AK",
  7093. "type": "string"
  7094. },
  7095. "bucket": {
  7096. "description": "空间名称",
  7097. "type": "string"
  7098. },
  7099. "img-path": {
  7100. "description": "CDN加速域名",
  7101. "type": "string"
  7102. },
  7103. "secret-key": {
  7104. "description": "秘钥SK",
  7105. "type": "string"
  7106. },
  7107. "use-cdn-domains": {
  7108. "description": "上传是否使用CDN上传加速",
  7109. "type": "boolean"
  7110. },
  7111. "use-https": {
  7112. "description": "是否使用https",
  7113. "type": "boolean"
  7114. },
  7115. "zone": {
  7116. "description": "存储区域",
  7117. "type": "string"
  7118. }
  7119. }
  7120. },
  7121. "config.Redis": {
  7122. "type": "object",
  7123. "properties": {
  7124. "addr": {
  7125. "description": "服务器地址:端口",
  7126. "type": "string"
  7127. },
  7128. "clusterAddrs": {
  7129. "description": "集群模式下的节点地址列表",
  7130. "type": "array",
  7131. "items": {
  7132. "type": "string"
  7133. }
  7134. },
  7135. "db": {
  7136. "description": "单实例模式下redis的哪个数据库",
  7137. "type": "integer"
  7138. },
  7139. "name": {
  7140. "description": "代表当前实例的名字",
  7141. "type": "string"
  7142. },
  7143. "password": {
  7144. "description": "密码",
  7145. "type": "string"
  7146. },
  7147. "useCluster": {
  7148. "description": "是否使用集群模式",
  7149. "type": "boolean"
  7150. }
  7151. }
  7152. },
  7153. "config.Server": {
  7154. "type": "object",
  7155. "properties": {
  7156. "aliyun-oss": {
  7157. "$ref": "#/definitions/config.AliyunOSS"
  7158. },
  7159. "autocode": {
  7160. "description": "auto",
  7161. "allOf": [
  7162. {
  7163. "$ref": "#/definitions/config.Autocode"
  7164. }
  7165. ]
  7166. },
  7167. "aws-s3": {
  7168. "$ref": "#/definitions/config.AwsS3"
  7169. },
  7170. "captcha": {
  7171. "$ref": "#/definitions/config.Captcha"
  7172. },
  7173. "cloudflare-r2": {
  7174. "$ref": "#/definitions/config.CloudflareR2"
  7175. },
  7176. "cors": {
  7177. "description": "跨域配置",
  7178. "allOf": [
  7179. {
  7180. "$ref": "#/definitions/config.CORS"
  7181. }
  7182. ]
  7183. },
  7184. "db-list": {
  7185. "type": "array",
  7186. "items": {
  7187. "$ref": "#/definitions/config.SpecializedDB"
  7188. }
  7189. },
  7190. "disk-list": {
  7191. "type": "array",
  7192. "items": {
  7193. "$ref": "#/definitions/config.DiskList"
  7194. }
  7195. },
  7196. "email": {
  7197. "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email"
  7198. },
  7199. "excel": {
  7200. "$ref": "#/definitions/config.Excel"
  7201. },
  7202. "hua-wei-obs": {
  7203. "$ref": "#/definitions/config.HuaWeiObs"
  7204. },
  7205. "jwt": {
  7206. "$ref": "#/definitions/config.JWT"
  7207. },
  7208. "local": {
  7209. "description": "oss",
  7210. "allOf": [
  7211. {
  7212. "$ref": "#/definitions/config.Local"
  7213. }
  7214. ]
  7215. },
  7216. "minio": {
  7217. "$ref": "#/definitions/config.Minio"
  7218. },
  7219. "mongo": {
  7220. "$ref": "#/definitions/config.Mongo"
  7221. },
  7222. "mssql": {
  7223. "$ref": "#/definitions/config.Mssql"
  7224. },
  7225. "mysql": {
  7226. "description": "gorm",
  7227. "allOf": [
  7228. {
  7229. "$ref": "#/definitions/config.Mysql"
  7230. }
  7231. ]
  7232. },
  7233. "oracle": {
  7234. "$ref": "#/definitions/config.Oracle"
  7235. },
  7236. "pgsql": {
  7237. "$ref": "#/definitions/config.Pgsql"
  7238. },
  7239. "qiniu": {
  7240. "$ref": "#/definitions/config.Qiniu"
  7241. },
  7242. "redis": {
  7243. "$ref": "#/definitions/config.Redis"
  7244. },
  7245. "redis-list": {
  7246. "type": "array",
  7247. "items": {
  7248. "$ref": "#/definitions/config.Redis"
  7249. }
  7250. },
  7251. "sqlite": {
  7252. "$ref": "#/definitions/config.Sqlite"
  7253. },
  7254. "system": {
  7255. "$ref": "#/definitions/config.System"
  7256. },
  7257. "tencent-cos": {
  7258. "$ref": "#/definitions/config.TencentCOS"
  7259. },
  7260. "zap": {
  7261. "$ref": "#/definitions/config.Zap"
  7262. }
  7263. }
  7264. },
  7265. "config.SpecializedDB": {
  7266. "type": "object",
  7267. "properties": {
  7268. "alias-name": {
  7269. "type": "string"
  7270. },
  7271. "config": {
  7272. "description": "高级配置",
  7273. "type": "string"
  7274. },
  7275. "db-name": {
  7276. "description": "数据库名",
  7277. "type": "string"
  7278. },
  7279. "disable": {
  7280. "type": "boolean"
  7281. },
  7282. "engine": {
  7283. "description": "数据库引擎,默认InnoDB",
  7284. "type": "string",
  7285. "default": "InnoDB"
  7286. },
  7287. "log-mode": {
  7288. "description": "是否开启Gorm全局日志",
  7289. "type": "string"
  7290. },
  7291. "log-zap": {
  7292. "description": "是否通过zap写入日志文件",
  7293. "type": "boolean"
  7294. },
  7295. "max-idle-conns": {
  7296. "description": "空闲中的最大连接数",
  7297. "type": "integer"
  7298. },
  7299. "max-open-conns": {
  7300. "description": "打开到数据库的最大连接数",
  7301. "type": "integer"
  7302. },
  7303. "password": {
  7304. "description": "数据库密码",
  7305. "type": "string"
  7306. },
  7307. "path": {
  7308. "description": "数据库地址",
  7309. "type": "string"
  7310. },
  7311. "port": {
  7312. "description": "数据库端口",
  7313. "type": "string"
  7314. },
  7315. "prefix": {
  7316. "description": "数据库前缀",
  7317. "type": "string"
  7318. },
  7319. "singular": {
  7320. "description": "是否开启全局禁用复数,true表示开启",
  7321. "type": "boolean"
  7322. },
  7323. "type": {
  7324. "type": "string"
  7325. },
  7326. "username": {
  7327. "description": "数据库账号",
  7328. "type": "string"
  7329. }
  7330. }
  7331. },
  7332. "config.Sqlite": {
  7333. "type": "object",
  7334. "properties": {
  7335. "config": {
  7336. "description": "高级配置",
  7337. "type": "string"
  7338. },
  7339. "db-name": {
  7340. "description": "数据库名",
  7341. "type": "string"
  7342. },
  7343. "engine": {
  7344. "description": "数据库引擎,默认InnoDB",
  7345. "type": "string",
  7346. "default": "InnoDB"
  7347. },
  7348. "log-mode": {
  7349. "description": "是否开启Gorm全局日志",
  7350. "type": "string"
  7351. },
  7352. "log-zap": {
  7353. "description": "是否通过zap写入日志文件",
  7354. "type": "boolean"
  7355. },
  7356. "max-idle-conns": {
  7357. "description": "空闲中的最大连接数",
  7358. "type": "integer"
  7359. },
  7360. "max-open-conns": {
  7361. "description": "打开到数据库的最大连接数",
  7362. "type": "integer"
  7363. },
  7364. "password": {
  7365. "description": "数据库密码",
  7366. "type": "string"
  7367. },
  7368. "path": {
  7369. "description": "数据库地址",
  7370. "type": "string"
  7371. },
  7372. "port": {
  7373. "description": "数据库端口",
  7374. "type": "string"
  7375. },
  7376. "prefix": {
  7377. "description": "数据库前缀",
  7378. "type": "string"
  7379. },
  7380. "singular": {
  7381. "description": "是否开启全局禁用复数,true表示开启",
  7382. "type": "boolean"
  7383. },
  7384. "username": {
  7385. "description": "数据库账号",
  7386. "type": "string"
  7387. }
  7388. }
  7389. },
  7390. "config.System": {
  7391. "type": "object",
  7392. "properties": {
  7393. "addr": {
  7394. "description": "端口值",
  7395. "type": "integer"
  7396. },
  7397. "db-type": {
  7398. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  7399. "type": "string"
  7400. },
  7401. "iplimit-count": {
  7402. "type": "integer"
  7403. },
  7404. "iplimit-time": {
  7405. "type": "integer"
  7406. },
  7407. "oss-type": {
  7408. "description": "Oss类型",
  7409. "type": "string"
  7410. },
  7411. "router-prefix": {
  7412. "type": "string"
  7413. },
  7414. "use-mongo": {
  7415. "description": "使用mongo",
  7416. "type": "boolean"
  7417. },
  7418. "use-multipoint": {
  7419. "description": "多点登录拦截",
  7420. "type": "boolean"
  7421. },
  7422. "use-redis": {
  7423. "description": "使用redis",
  7424. "type": "boolean"
  7425. },
  7426. "use-strict-auth": {
  7427. "description": "使用树形角色分配模式",
  7428. "type": "boolean"
  7429. }
  7430. }
  7431. },
  7432. "config.TencentCOS": {
  7433. "type": "object",
  7434. "properties": {
  7435. "base-url": {
  7436. "type": "string"
  7437. },
  7438. "bucket": {
  7439. "type": "string"
  7440. },
  7441. "path-prefix": {
  7442. "type": "string"
  7443. },
  7444. "region": {
  7445. "type": "string"
  7446. },
  7447. "secret-id": {
  7448. "type": "string"
  7449. },
  7450. "secret-key": {
  7451. "type": "string"
  7452. }
  7453. }
  7454. },
  7455. "config.Zap": {
  7456. "type": "object",
  7457. "properties": {
  7458. "director": {
  7459. "description": "日志文件夹",
  7460. "type": "string"
  7461. },
  7462. "encode-level": {
  7463. "description": "编码级",
  7464. "type": "string"
  7465. },
  7466. "format": {
  7467. "description": "输出",
  7468. "type": "string"
  7469. },
  7470. "level": {
  7471. "description": "级别",
  7472. "type": "string"
  7473. },
  7474. "log-in-console": {
  7475. "description": "输出控制台",
  7476. "type": "boolean"
  7477. },
  7478. "prefix": {
  7479. "description": "日志前缀",
  7480. "type": "string"
  7481. },
  7482. "retention-day": {
  7483. "description": "日志保留天数",
  7484. "type": "integer"
  7485. },
  7486. "show-line": {
  7487. "description": "显示行",
  7488. "type": "boolean"
  7489. },
  7490. "stacktrace-key": {
  7491. "description": "栈名",
  7492. "type": "string"
  7493. }
  7494. }
  7495. },
  7496. "example.ExaAttachmentCategory": {
  7497. "type": "object",
  7498. "properties": {
  7499. "ID": {
  7500. "description": "主键ID",
  7501. "type": "integer"
  7502. },
  7503. "children": {
  7504. "type": "array",
  7505. "items": {
  7506. "$ref": "#/definitions/example.ExaAttachmentCategory"
  7507. }
  7508. },
  7509. "createdAt": {
  7510. "description": "创建时间",
  7511. "type": "string"
  7512. },
  7513. "name": {
  7514. "type": "string"
  7515. },
  7516. "pid": {
  7517. "type": "integer"
  7518. },
  7519. "updatedAt": {
  7520. "description": "更新时间",
  7521. "type": "string"
  7522. }
  7523. }
  7524. },
  7525. "example.ExaCustomer": {
  7526. "type": "object",
  7527. "properties": {
  7528. "ID": {
  7529. "description": "主键ID",
  7530. "type": "integer"
  7531. },
  7532. "createdAt": {
  7533. "description": "创建时间",
  7534. "type": "string"
  7535. },
  7536. "customerName": {
  7537. "description": "客户名",
  7538. "type": "string"
  7539. },
  7540. "customerPhoneData": {
  7541. "description": "客户手机号",
  7542. "type": "string"
  7543. },
  7544. "sysUser": {
  7545. "description": "管理详情",
  7546. "allOf": [
  7547. {
  7548. "$ref": "#/definitions/system.SysUser"
  7549. }
  7550. ]
  7551. },
  7552. "sysUserAuthorityID": {
  7553. "description": "管理角色ID",
  7554. "type": "integer"
  7555. },
  7556. "sysUserId": {
  7557. "description": "管理ID",
  7558. "type": "integer"
  7559. },
  7560. "updatedAt": {
  7561. "description": "更新时间",
  7562. "type": "string"
  7563. }
  7564. }
  7565. },
  7566. "example.ExaFile": {
  7567. "type": "object",
  7568. "properties": {
  7569. "ID": {
  7570. "description": "主键ID",
  7571. "type": "integer"
  7572. },
  7573. "chunkTotal": {
  7574. "type": "integer"
  7575. },
  7576. "createdAt": {
  7577. "description": "创建时间",
  7578. "type": "string"
  7579. },
  7580. "exaFileChunk": {
  7581. "type": "array",
  7582. "items": {
  7583. "$ref": "#/definitions/example.ExaFileChunk"
  7584. }
  7585. },
  7586. "fileMd5": {
  7587. "type": "string"
  7588. },
  7589. "fileName": {
  7590. "type": "string"
  7591. },
  7592. "filePath": {
  7593. "type": "string"
  7594. },
  7595. "isFinish": {
  7596. "type": "boolean"
  7597. },
  7598. "updatedAt": {
  7599. "description": "更新时间",
  7600. "type": "string"
  7601. }
  7602. }
  7603. },
  7604. "example.ExaFileChunk": {
  7605. "type": "object",
  7606. "properties": {
  7607. "ID": {
  7608. "description": "主键ID",
  7609. "type": "integer"
  7610. },
  7611. "createdAt": {
  7612. "description": "创建时间",
  7613. "type": "string"
  7614. },
  7615. "exaFileID": {
  7616. "type": "integer"
  7617. },
  7618. "fileChunkNumber": {
  7619. "type": "integer"
  7620. },
  7621. "fileChunkPath": {
  7622. "type": "string"
  7623. },
  7624. "updatedAt": {
  7625. "description": "更新时间",
  7626. "type": "string"
  7627. }
  7628. }
  7629. },
  7630. "example.ExaFileUploadAndDownload": {
  7631. "type": "object",
  7632. "properties": {
  7633. "ID": {
  7634. "description": "主键ID",
  7635. "type": "integer"
  7636. },
  7637. "classId": {
  7638. "description": "分类id",
  7639. "type": "integer"
  7640. },
  7641. "createdAt": {
  7642. "description": "创建时间",
  7643. "type": "string"
  7644. },
  7645. "key": {
  7646. "description": "编号",
  7647. "type": "string"
  7648. },
  7649. "name": {
  7650. "description": "文件名",
  7651. "type": "string"
  7652. },
  7653. "tag": {
  7654. "description": "文件标签",
  7655. "type": "string"
  7656. },
  7657. "updatedAt": {
  7658. "description": "更新时间",
  7659. "type": "string"
  7660. },
  7661. "url": {
  7662. "description": "文件地址",
  7663. "type": "string"
  7664. }
  7665. }
  7666. },
  7667. "github_com_flipped-aurora_gin-vue-admin_server_config.Email": {
  7668. "type": "object",
  7669. "properties": {
  7670. "from": {
  7671. "description": "发件人 你自己要发邮件的邮箱",
  7672. "type": "string"
  7673. },
  7674. "host": {
  7675. "description": "服务器地址 例如 smtp.qq.com 请前往QQ或者你要发邮件的邮箱查看其smtp协议",
  7676. "type": "string"
  7677. },
  7678. "is-ssl": {
  7679. "description": "是否SSL 是否开启SSL",
  7680. "type": "boolean"
  7681. },
  7682. "nickname": {
  7683. "description": "昵称 发件人昵称 通常为自己的邮箱",
  7684. "type": "string"
  7685. },
  7686. "port": {
  7687. "description": "端口 请前往QQ或者你要发邮件的邮箱查看其smtp协议 大多为 465",
  7688. "type": "integer"
  7689. },
  7690. "secret": {
  7691. "description": "密钥 用于登录的密钥 最好不要用邮箱密码 去邮箱smtp申请一个用于登录的密钥",
  7692. "type": "string"
  7693. },
  7694. "to": {
  7695. "description": "收件人:多个以英文逗号分隔 例:a@qq.com b@qq.com 正式开发中请把此项目作为参数使用",
  7696. "type": "string"
  7697. }
  7698. }
  7699. },
  7700. "model.Info": {
  7701. "type": "object",
  7702. "properties": {
  7703. "ID": {
  7704. "description": "主键ID",
  7705. "type": "integer"
  7706. },
  7707. "attachments": {
  7708. "description": "附件",
  7709. "type": "array",
  7710. "items": {
  7711. "type": "object"
  7712. }
  7713. },
  7714. "content": {
  7715. "description": "内容",
  7716. "type": "string"
  7717. },
  7718. "createdAt": {
  7719. "description": "创建时间",
  7720. "type": "string"
  7721. },
  7722. "title": {
  7723. "description": "标题",
  7724. "type": "string"
  7725. },
  7726. "updatedAt": {
  7727. "description": "更新时间",
  7728. "type": "string"
  7729. },
  7730. "userID": {
  7731. "description": "作者",
  7732. "type": "integer"
  7733. }
  7734. }
  7735. },
  7736. "request.AddMenuAuthorityInfo": {
  7737. "type": "object",
  7738. "properties": {
  7739. "authorityId": {
  7740. "description": "角色ID",
  7741. "type": "integer"
  7742. },
  7743. "menus": {
  7744. "type": "array",
  7745. "items": {
  7746. "$ref": "#/definitions/system.SysBaseMenu"
  7747. }
  7748. }
  7749. }
  7750. },
  7751. "request.AutoCode": {
  7752. "type": "object",
  7753. "properties": {
  7754. "abbreviation": {
  7755. "description": "Struct简称",
  7756. "type": "string",
  7757. "example": "Struct简称"
  7758. },
  7759. "autoCreateApiToSql": {
  7760. "description": "是否自动创建api",
  7761. "type": "boolean",
  7762. "example": false
  7763. },
  7764. "autoCreateBtnAuth": {
  7765. "description": "是否自动创建按钮权限",
  7766. "type": "boolean",
  7767. "example": false
  7768. },
  7769. "autoCreateMenuToSql": {
  7770. "description": "是否自动创建menu",
  7771. "type": "boolean",
  7772. "example": false
  7773. },
  7774. "autoCreateResource": {
  7775. "description": "是否自动创建资源标识",
  7776. "type": "boolean",
  7777. "example": false
  7778. },
  7779. "autoMigrate": {
  7780. "description": "是否自动迁移表结构",
  7781. "type": "boolean",
  7782. "example": false
  7783. },
  7784. "businessDB": {
  7785. "description": "业务数据库",
  7786. "type": "string",
  7787. "example": "业务数据库"
  7788. },
  7789. "description": {
  7790. "description": "Struct中文名称",
  7791. "type": "string",
  7792. "example": "Struct中文名称"
  7793. },
  7794. "fields": {
  7795. "type": "array",
  7796. "items": {
  7797. "$ref": "#/definitions/request.AutoCodeField"
  7798. }
  7799. },
  7800. "generateServer": {
  7801. "description": "是否生成server",
  7802. "type": "boolean",
  7803. "example": true
  7804. },
  7805. "generateWeb": {
  7806. "description": "是否生成web",
  7807. "type": "boolean",
  7808. "example": true
  7809. },
  7810. "gvaModel": {
  7811. "description": "是否使用gva默认Model",
  7812. "type": "boolean",
  7813. "example": false
  7814. },
  7815. "humpPackageName": {
  7816. "description": "go文件名称",
  7817. "type": "string",
  7818. "example": "go文件名称"
  7819. },
  7820. "isAdd": {
  7821. "description": "是否新增",
  7822. "type": "boolean",
  7823. "example": false
  7824. },
  7825. "isTree": {
  7826. "description": "是否树形结构",
  7827. "type": "boolean",
  7828. "example": false
  7829. },
  7830. "onlyTemplate": {
  7831. "description": "是否只生成模板",
  7832. "type": "boolean",
  7833. "example": false
  7834. },
  7835. "package": {
  7836. "type": "string"
  7837. },
  7838. "packageName": {
  7839. "description": "文件名称",
  7840. "type": "string",
  7841. "example": "文件名称"
  7842. },
  7843. "primaryField": {
  7844. "$ref": "#/definitions/request.AutoCodeField"
  7845. },
  7846. "structName": {
  7847. "description": "Struct名称",
  7848. "type": "string",
  7849. "example": "Struct名称"
  7850. },
  7851. "tableName": {
  7852. "description": "表名",
  7853. "type": "string",
  7854. "example": "表名"
  7855. },
  7856. "treeJson": {
  7857. "description": "展示的树json字段",
  7858. "type": "string",
  7859. "example": "展示的树json字段"
  7860. }
  7861. }
  7862. },
  7863. "request.AutoCodeField": {
  7864. "type": "object",
  7865. "properties": {
  7866. "checkDataSource": {
  7867. "description": "是否检查数据源",
  7868. "type": "boolean"
  7869. },
  7870. "clearable": {
  7871. "description": "是否可清空",
  7872. "type": "boolean"
  7873. },
  7874. "columnName": {
  7875. "description": "数据库字段",
  7876. "type": "string"
  7877. },
  7878. "comment": {
  7879. "description": "数据库字段描述",
  7880. "type": "string"
  7881. },
  7882. "dataSource": {
  7883. "description": "数据源",
  7884. "allOf": [
  7885. {
  7886. "$ref": "#/definitions/request.DataSource"
  7887. }
  7888. ]
  7889. },
  7890. "dataTypeLong": {
  7891. "description": "数据库字段长度",
  7892. "type": "string"
  7893. },
  7894. "defaultValue": {
  7895. "description": "是否必填",
  7896. "type": "string"
  7897. },
  7898. "desc": {
  7899. "description": "是否前端详情",
  7900. "type": "boolean"
  7901. },
  7902. "dictType": {
  7903. "description": "字典",
  7904. "type": "string"
  7905. },
  7906. "errorText": {
  7907. "description": "校验失败文字",
  7908. "type": "string"
  7909. },
  7910. "excel": {
  7911. "description": "是否导入/导出",
  7912. "type": "boolean"
  7913. },
  7914. "fieldDesc": {
  7915. "description": "中文名",
  7916. "type": "string"
  7917. },
  7918. "fieldIndexType": {
  7919. "description": "索引类型",
  7920. "type": "string"
  7921. },
  7922. "fieldJson": {
  7923. "description": "FieldJson",
  7924. "type": "string"
  7925. },
  7926. "fieldName": {
  7927. "description": "Field名",
  7928. "type": "string"
  7929. },
  7930. "fieldSearchHide": {
  7931. "description": "是否隐藏查询条件",
  7932. "type": "boolean"
  7933. },
  7934. "fieldSearchType": {
  7935. "description": "搜索条件",
  7936. "type": "string"
  7937. },
  7938. "fieldType": {
  7939. "description": "Field数据类型",
  7940. "type": "string"
  7941. },
  7942. "form": {
  7943. "description": "Front bool ` + "`" + `json:\"front\"` + "`" + ` // 是否前端可见",
  7944. "type": "boolean"
  7945. },
  7946. "primaryKey": {
  7947. "description": "是否主键",
  7948. "type": "boolean"
  7949. },
  7950. "require": {
  7951. "description": "是否必填",
  7952. "type": "boolean"
  7953. },
  7954. "sort": {
  7955. "description": "是否增加排序",
  7956. "type": "boolean"
  7957. },
  7958. "table": {
  7959. "description": "是否前端表格列",
  7960. "type": "boolean"
  7961. }
  7962. }
  7963. },
  7964. "request.CasbinInReceive": {
  7965. "type": "object",
  7966. "properties": {
  7967. "authorityId": {
  7968. "description": "权限id",
  7969. "type": "integer"
  7970. },
  7971. "casbinInfos": {
  7972. "type": "array",
  7973. "items": {
  7974. "$ref": "#/definitions/request.CasbinInfo"
  7975. }
  7976. }
  7977. }
  7978. },
  7979. "request.CasbinInfo": {
  7980. "type": "object",
  7981. "properties": {
  7982. "method": {
  7983. "description": "方法",
  7984. "type": "string"
  7985. },
  7986. "path": {
  7987. "description": "路径",
  7988. "type": "string"
  7989. }
  7990. }
  7991. },
  7992. "request.ChangePasswordReq": {
  7993. "type": "object",
  7994. "properties": {
  7995. "newPassword": {
  7996. "description": "新密码",
  7997. "type": "string"
  7998. },
  7999. "password": {
  8000. "description": "密码",
  8001. "type": "string"
  8002. }
  8003. }
  8004. },
  8005. "request.DataSource": {
  8006. "type": "object",
  8007. "properties": {
  8008. "association": {
  8009. "description": "关联关系 1 一对一 2 一对多",
  8010. "type": "integer"
  8011. },
  8012. "dbName": {
  8013. "type": "string"
  8014. },
  8015. "hasDeletedAt": {
  8016. "type": "boolean"
  8017. },
  8018. "label": {
  8019. "type": "string"
  8020. },
  8021. "table": {
  8022. "type": "string"
  8023. },
  8024. "value": {
  8025. "type": "string"
  8026. }
  8027. }
  8028. },
  8029. "request.Empty": {
  8030. "type": "object"
  8031. },
  8032. "request.ExaAttachmentCategorySearch": {
  8033. "type": "object",
  8034. "properties": {
  8035. "classId": {
  8036. "type": "integer"
  8037. },
  8038. "keyword": {
  8039. "description": "关键字",
  8040. "type": "string"
  8041. },
  8042. "page": {
  8043. "description": "页码",
  8044. "type": "integer"
  8045. },
  8046. "pageSize": {
  8047. "description": "每页大小",
  8048. "type": "integer"
  8049. }
  8050. }
  8051. },
  8052. "request.GetAuthorityId": {
  8053. "type": "object",
  8054. "properties": {
  8055. "authorityId": {
  8056. "description": "角色ID",
  8057. "type": "integer"
  8058. }
  8059. }
  8060. },
  8061. "request.GetById": {
  8062. "type": "object",
  8063. "properties": {
  8064. "id": {
  8065. "description": "主键ID",
  8066. "type": "integer"
  8067. }
  8068. }
  8069. },
  8070. "request.GetUserList": {
  8071. "type": "object",
  8072. "properties": {
  8073. "email": {
  8074. "type": "string"
  8075. },
  8076. "keyword": {
  8077. "description": "关键字",
  8078. "type": "string"
  8079. },
  8080. "nickName": {
  8081. "type": "string"
  8082. },
  8083. "page": {
  8084. "description": "页码",
  8085. "type": "integer"
  8086. },
  8087. "pageSize": {
  8088. "description": "每页大小",
  8089. "type": "integer"
  8090. },
  8091. "phone": {
  8092. "type": "string"
  8093. },
  8094. "username": {
  8095. "type": "string"
  8096. }
  8097. }
  8098. },
  8099. "request.IdsReq": {
  8100. "type": "object",
  8101. "properties": {
  8102. "ids": {
  8103. "type": "array",
  8104. "items": {
  8105. "type": "integer"
  8106. }
  8107. }
  8108. }
  8109. },
  8110. "request.InitDB": {
  8111. "type": "object",
  8112. "required": [
  8113. "adminPassword",
  8114. "dbName"
  8115. ],
  8116. "properties": {
  8117. "adminPassword": {
  8118. "type": "string"
  8119. },
  8120. "dbName": {
  8121. "description": "数据库名",
  8122. "type": "string"
  8123. },
  8124. "dbPath": {
  8125. "description": "sqlite数据库文件路径",
  8126. "type": "string"
  8127. },
  8128. "dbType": {
  8129. "description": "数据库类型",
  8130. "type": "string"
  8131. },
  8132. "host": {
  8133. "description": "服务器地址",
  8134. "type": "string"
  8135. },
  8136. "password": {
  8137. "description": "数据库密码",
  8138. "type": "string"
  8139. },
  8140. "port": {
  8141. "description": "数据库连接端口",
  8142. "type": "string"
  8143. },
  8144. "template": {
  8145. "description": "postgresql指定template",
  8146. "type": "string"
  8147. },
  8148. "userName": {
  8149. "description": "数据库用户名",
  8150. "type": "string"
  8151. }
  8152. }
  8153. },
  8154. "request.Login": {
  8155. "type": "object",
  8156. "properties": {
  8157. "captcha": {
  8158. "description": "验证码",
  8159. "type": "string"
  8160. },
  8161. "captchaId": {
  8162. "description": "验证码ID",
  8163. "type": "string"
  8164. },
  8165. "password": {
  8166. "description": "密码",
  8167. "type": "string"
  8168. },
  8169. "username": {
  8170. "description": "用户名",
  8171. "type": "string"
  8172. }
  8173. }
  8174. },
  8175. "request.PageInfo": {
  8176. "type": "object",
  8177. "properties": {
  8178. "keyword": {
  8179. "description": "关键字",
  8180. "type": "string"
  8181. },
  8182. "page": {
  8183. "description": "页码",
  8184. "type": "integer"
  8185. },
  8186. "pageSize": {
  8187. "description": "每页大小",
  8188. "type": "integer"
  8189. }
  8190. }
  8191. },
  8192. "request.Register": {
  8193. "type": "object",
  8194. "properties": {
  8195. "authorityId": {
  8196. "type": "string",
  8197. "example": "int 角色id"
  8198. },
  8199. "authorityIds": {
  8200. "type": "string",
  8201. "example": "[]uint 角色id"
  8202. },
  8203. "email": {
  8204. "type": "string",
  8205. "example": "电子邮箱"
  8206. },
  8207. "enable": {
  8208. "type": "string",
  8209. "example": "int 是否启用"
  8210. },
  8211. "headerImg": {
  8212. "type": "string",
  8213. "example": "头像链接"
  8214. },
  8215. "nickName": {
  8216. "type": "string",
  8217. "example": "昵称"
  8218. },
  8219. "passWord": {
  8220. "type": "string",
  8221. "example": "密码"
  8222. },
  8223. "phone": {
  8224. "type": "string",
  8225. "example": "电话号码"
  8226. },
  8227. "userName": {
  8228. "type": "string",
  8229. "example": "用户名"
  8230. }
  8231. }
  8232. },
  8233. "request.SearchApiParams": {
  8234. "type": "object",
  8235. "properties": {
  8236. "ID": {
  8237. "description": "主键ID",
  8238. "type": "integer"
  8239. },
  8240. "apiGroup": {
  8241. "description": "api组",
  8242. "type": "string"
  8243. },
  8244. "createdAt": {
  8245. "description": "创建时间",
  8246. "type": "string"
  8247. },
  8248. "desc": {
  8249. "description": "排序方式:升序false(默认)|降序true",
  8250. "type": "boolean"
  8251. },
  8252. "description": {
  8253. "description": "api中文描述",
  8254. "type": "string"
  8255. },
  8256. "keyword": {
  8257. "description": "关键字",
  8258. "type": "string"
  8259. },
  8260. "method": {
  8261. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  8262. "type": "string"
  8263. },
  8264. "orderKey": {
  8265. "description": "排序",
  8266. "type": "string"
  8267. },
  8268. "page": {
  8269. "description": "页码",
  8270. "type": "integer"
  8271. },
  8272. "pageSize": {
  8273. "description": "每页大小",
  8274. "type": "integer"
  8275. },
  8276. "path": {
  8277. "description": "api路径",
  8278. "type": "string"
  8279. },
  8280. "updatedAt": {
  8281. "description": "更新时间",
  8282. "type": "string"
  8283. }
  8284. }
  8285. },
  8286. "request.SetUserAuth": {
  8287. "type": "object",
  8288. "properties": {
  8289. "authorityId": {
  8290. "description": "角色ID",
  8291. "type": "integer"
  8292. }
  8293. }
  8294. },
  8295. "request.SetUserAuthorities": {
  8296. "type": "object",
  8297. "properties": {
  8298. "authorityIds": {
  8299. "description": "角色ID",
  8300. "type": "array",
  8301. "items": {
  8302. "type": "integer"
  8303. }
  8304. },
  8305. "id": {
  8306. "type": "integer"
  8307. }
  8308. }
  8309. },
  8310. "request.SysAuthorityBtnReq": {
  8311. "type": "object",
  8312. "properties": {
  8313. "authorityId": {
  8314. "type": "integer"
  8315. },
  8316. "menuID": {
  8317. "type": "integer"
  8318. },
  8319. "selected": {
  8320. "type": "array",
  8321. "items": {
  8322. "type": "integer"
  8323. }
  8324. }
  8325. }
  8326. },
  8327. "request.SysAutoCodePackageCreate": {
  8328. "type": "object",
  8329. "properties": {
  8330. "desc": {
  8331. "type": "string",
  8332. "example": "描述"
  8333. },
  8334. "label": {
  8335. "type": "string",
  8336. "example": "展示名"
  8337. },
  8338. "packageName": {
  8339. "type": "string",
  8340. "example": "包名"
  8341. },
  8342. "template": {
  8343. "type": "string",
  8344. "example": "模版"
  8345. }
  8346. }
  8347. },
  8348. "request.SysAutoHistoryRollBack": {
  8349. "type": "object",
  8350. "properties": {
  8351. "deleteApi": {
  8352. "description": "是否删除接口",
  8353. "type": "boolean"
  8354. },
  8355. "deleteMenu": {
  8356. "description": "是否删除菜单",
  8357. "type": "boolean"
  8358. },
  8359. "deleteTable": {
  8360. "description": "是否删除表",
  8361. "type": "boolean"
  8362. },
  8363. "id": {
  8364. "description": "主键ID",
  8365. "type": "integer"
  8366. }
  8367. }
  8368. },
  8369. "response.Email": {
  8370. "type": "object",
  8371. "properties": {
  8372. "body": {
  8373. "description": "邮件内容",
  8374. "type": "string"
  8375. },
  8376. "subject": {
  8377. "description": "邮件标题",
  8378. "type": "string"
  8379. },
  8380. "to": {
  8381. "description": "邮件发送给谁",
  8382. "type": "string"
  8383. }
  8384. }
  8385. },
  8386. "response.ExaCustomerResponse": {
  8387. "type": "object",
  8388. "properties": {
  8389. "customer": {
  8390. "$ref": "#/definitions/example.ExaCustomer"
  8391. }
  8392. }
  8393. },
  8394. "response.ExaFileResponse": {
  8395. "type": "object",
  8396. "properties": {
  8397. "file": {
  8398. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  8399. }
  8400. }
  8401. },
  8402. "response.FilePathResponse": {
  8403. "type": "object",
  8404. "properties": {
  8405. "filePath": {
  8406. "type": "string"
  8407. }
  8408. }
  8409. },
  8410. "response.FileResponse": {
  8411. "type": "object",
  8412. "properties": {
  8413. "file": {
  8414. "$ref": "#/definitions/example.ExaFile"
  8415. }
  8416. }
  8417. },
  8418. "response.LoginResponse": {
  8419. "type": "object",
  8420. "properties": {
  8421. "expiresAt": {
  8422. "type": "integer"
  8423. },
  8424. "token": {
  8425. "type": "string"
  8426. },
  8427. "user": {
  8428. "$ref": "#/definitions/system.SysUser"
  8429. }
  8430. }
  8431. },
  8432. "response.PageResult": {
  8433. "type": "object",
  8434. "properties": {
  8435. "list": {},
  8436. "page": {
  8437. "type": "integer"
  8438. },
  8439. "pageSize": {
  8440. "type": "integer"
  8441. },
  8442. "total": {
  8443. "type": "integer"
  8444. }
  8445. }
  8446. },
  8447. "response.PolicyPathResponse": {
  8448. "type": "object",
  8449. "properties": {
  8450. "paths": {
  8451. "type": "array",
  8452. "items": {
  8453. "$ref": "#/definitions/request.CasbinInfo"
  8454. }
  8455. }
  8456. }
  8457. },
  8458. "response.Response": {
  8459. "type": "object",
  8460. "properties": {
  8461. "code": {
  8462. "type": "integer"
  8463. },
  8464. "data": {},
  8465. "msg": {
  8466. "type": "string"
  8467. }
  8468. }
  8469. },
  8470. "response.SysAPIListResponse": {
  8471. "type": "object",
  8472. "properties": {
  8473. "apis": {
  8474. "type": "array",
  8475. "items": {
  8476. "$ref": "#/definitions/system.SysApi"
  8477. }
  8478. }
  8479. }
  8480. },
  8481. "response.SysAPIResponse": {
  8482. "type": "object",
  8483. "properties": {
  8484. "api": {
  8485. "$ref": "#/definitions/system.SysApi"
  8486. }
  8487. }
  8488. },
  8489. "response.SysAuthorityBtnRes": {
  8490. "type": "object",
  8491. "properties": {
  8492. "selected": {
  8493. "type": "array",
  8494. "items": {
  8495. "type": "integer"
  8496. }
  8497. }
  8498. }
  8499. },
  8500. "response.SysAuthorityCopyResponse": {
  8501. "type": "object",
  8502. "properties": {
  8503. "authority": {
  8504. "$ref": "#/definitions/system.SysAuthority"
  8505. },
  8506. "oldAuthorityId": {
  8507. "description": "旧角色ID",
  8508. "type": "integer"
  8509. }
  8510. }
  8511. },
  8512. "response.SysAuthorityResponse": {
  8513. "type": "object",
  8514. "properties": {
  8515. "authority": {
  8516. "$ref": "#/definitions/system.SysAuthority"
  8517. }
  8518. }
  8519. },
  8520. "response.SysBaseMenuResponse": {
  8521. "type": "object",
  8522. "properties": {
  8523. "menu": {
  8524. "$ref": "#/definitions/system.SysBaseMenu"
  8525. }
  8526. }
  8527. },
  8528. "response.SysBaseMenusResponse": {
  8529. "type": "object",
  8530. "properties": {
  8531. "menus": {
  8532. "type": "array",
  8533. "items": {
  8534. "$ref": "#/definitions/system.SysBaseMenu"
  8535. }
  8536. }
  8537. }
  8538. },
  8539. "response.SysCaptchaResponse": {
  8540. "type": "object",
  8541. "properties": {
  8542. "captchaId": {
  8543. "type": "string"
  8544. },
  8545. "captchaLength": {
  8546. "type": "integer"
  8547. },
  8548. "openCaptcha": {
  8549. "type": "boolean"
  8550. },
  8551. "picPath": {
  8552. "type": "string"
  8553. }
  8554. }
  8555. },
  8556. "response.SysConfigResponse": {
  8557. "type": "object",
  8558. "properties": {
  8559. "config": {
  8560. "$ref": "#/definitions/config.Server"
  8561. }
  8562. }
  8563. },
  8564. "response.SysMenusResponse": {
  8565. "type": "object",
  8566. "properties": {
  8567. "menus": {
  8568. "type": "array",
  8569. "items": {
  8570. "$ref": "#/definitions/system.SysMenu"
  8571. }
  8572. }
  8573. }
  8574. },
  8575. "response.SysUserResponse": {
  8576. "type": "object",
  8577. "properties": {
  8578. "user": {
  8579. "$ref": "#/definitions/system.SysUser"
  8580. }
  8581. }
  8582. },
  8583. "system.Condition": {
  8584. "type": "object",
  8585. "properties": {
  8586. "ID": {
  8587. "description": "主键ID",
  8588. "type": "integer"
  8589. },
  8590. "column": {
  8591. "type": "string"
  8592. },
  8593. "createdAt": {
  8594. "description": "创建时间",
  8595. "type": "string"
  8596. },
  8597. "from": {
  8598. "type": "string"
  8599. },
  8600. "operator": {
  8601. "type": "string"
  8602. },
  8603. "templateID": {
  8604. "type": "string"
  8605. },
  8606. "updatedAt": {
  8607. "description": "更新时间",
  8608. "type": "string"
  8609. }
  8610. }
  8611. },
  8612. "system.JoinTemplate": {
  8613. "type": "object",
  8614. "properties": {
  8615. "ID": {
  8616. "description": "主键ID",
  8617. "type": "integer"
  8618. },
  8619. "createdAt": {
  8620. "description": "创建时间",
  8621. "type": "string"
  8622. },
  8623. "joins": {
  8624. "type": "string"
  8625. },
  8626. "on": {
  8627. "type": "string"
  8628. },
  8629. "table": {
  8630. "type": "string"
  8631. },
  8632. "templateID": {
  8633. "type": "string"
  8634. },
  8635. "updatedAt": {
  8636. "description": "更新时间",
  8637. "type": "string"
  8638. }
  8639. }
  8640. },
  8641. "system.Meta": {
  8642. "type": "object",
  8643. "properties": {
  8644. "activeName": {
  8645. "type": "string"
  8646. },
  8647. "closeTab": {
  8648. "description": "自动关闭tab",
  8649. "type": "boolean"
  8650. },
  8651. "defaultMenu": {
  8652. "description": "是否是基础路由(开发中)",
  8653. "type": "boolean"
  8654. },
  8655. "icon": {
  8656. "description": "菜单图标",
  8657. "type": "string"
  8658. },
  8659. "keepAlive": {
  8660. "description": "是否缓存",
  8661. "type": "boolean"
  8662. },
  8663. "title": {
  8664. "description": "菜单名",
  8665. "type": "string"
  8666. }
  8667. }
  8668. },
  8669. "system.SysApi": {
  8670. "type": "object",
  8671. "properties": {
  8672. "ID": {
  8673. "description": "主键ID",
  8674. "type": "integer"
  8675. },
  8676. "apiGroup": {
  8677. "description": "api组",
  8678. "type": "string"
  8679. },
  8680. "createdAt": {
  8681. "description": "创建时间",
  8682. "type": "string"
  8683. },
  8684. "description": {
  8685. "description": "api中文描述",
  8686. "type": "string"
  8687. },
  8688. "method": {
  8689. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  8690. "type": "string"
  8691. },
  8692. "path": {
  8693. "description": "api路径",
  8694. "type": "string"
  8695. },
  8696. "updatedAt": {
  8697. "description": "更新时间",
  8698. "type": "string"
  8699. }
  8700. }
  8701. },
  8702. "system.SysAuthority": {
  8703. "type": "object",
  8704. "properties": {
  8705. "authorityId": {
  8706. "description": "角色ID",
  8707. "type": "integer"
  8708. },
  8709. "authorityName": {
  8710. "description": "角色名",
  8711. "type": "string"
  8712. },
  8713. "children": {
  8714. "type": "array",
  8715. "items": {
  8716. "$ref": "#/definitions/system.SysAuthority"
  8717. }
  8718. },
  8719. "createdAt": {
  8720. "description": "创建时间",
  8721. "type": "string"
  8722. },
  8723. "dataAuthorityId": {
  8724. "type": "array",
  8725. "items": {
  8726. "$ref": "#/definitions/system.SysAuthority"
  8727. }
  8728. },
  8729. "defaultRouter": {
  8730. "description": "默认菜单(默认dashboard)",
  8731. "type": "string"
  8732. },
  8733. "deletedAt": {
  8734. "type": "string"
  8735. },
  8736. "menus": {
  8737. "type": "array",
  8738. "items": {
  8739. "$ref": "#/definitions/system.SysBaseMenu"
  8740. }
  8741. },
  8742. "parentId": {
  8743. "description": "父角色ID",
  8744. "type": "integer"
  8745. },
  8746. "updatedAt": {
  8747. "description": "更新时间",
  8748. "type": "string"
  8749. }
  8750. }
  8751. },
  8752. "system.SysBaseMenu": {
  8753. "type": "object",
  8754. "properties": {
  8755. "ID": {
  8756. "description": "主键ID",
  8757. "type": "integer"
  8758. },
  8759. "authoritys": {
  8760. "type": "array",
  8761. "items": {
  8762. "$ref": "#/definitions/system.SysAuthority"
  8763. }
  8764. },
  8765. "children": {
  8766. "type": "array",
  8767. "items": {
  8768. "$ref": "#/definitions/system.SysBaseMenu"
  8769. }
  8770. },
  8771. "component": {
  8772. "description": "对应前端文件路径",
  8773. "type": "string"
  8774. },
  8775. "createdAt": {
  8776. "description": "创建时间",
  8777. "type": "string"
  8778. },
  8779. "hidden": {
  8780. "description": "是否在列表隐藏",
  8781. "type": "boolean"
  8782. },
  8783. "menuBtn": {
  8784. "type": "array",
  8785. "items": {
  8786. "$ref": "#/definitions/system.SysBaseMenuBtn"
  8787. }
  8788. },
  8789. "meta": {
  8790. "description": "附加属性",
  8791. "allOf": [
  8792. {
  8793. "$ref": "#/definitions/system.Meta"
  8794. }
  8795. ]
  8796. },
  8797. "name": {
  8798. "description": "路由name",
  8799. "type": "string"
  8800. },
  8801. "parameters": {
  8802. "type": "array",
  8803. "items": {
  8804. "$ref": "#/definitions/system.SysBaseMenuParameter"
  8805. }
  8806. },
  8807. "parentId": {
  8808. "description": "父菜单ID",
  8809. "type": "integer"
  8810. },
  8811. "path": {
  8812. "description": "路由path",
  8813. "type": "string"
  8814. },
  8815. "sort": {
  8816. "description": "排序标记",
  8817. "type": "integer"
  8818. },
  8819. "updatedAt": {
  8820. "description": "更新时间",
  8821. "type": "string"
  8822. }
  8823. }
  8824. },
  8825. "system.SysBaseMenuBtn": {
  8826. "type": "object",
  8827. "properties": {
  8828. "ID": {
  8829. "description": "主键ID",
  8830. "type": "integer"
  8831. },
  8832. "createdAt": {
  8833. "description": "创建时间",
  8834. "type": "string"
  8835. },
  8836. "desc": {
  8837. "type": "string"
  8838. },
  8839. "name": {
  8840. "type": "string"
  8841. },
  8842. "sysBaseMenuID": {
  8843. "type": "integer"
  8844. },
  8845. "updatedAt": {
  8846. "description": "更新时间",
  8847. "type": "string"
  8848. }
  8849. }
  8850. },
  8851. "system.SysBaseMenuParameter": {
  8852. "type": "object",
  8853. "properties": {
  8854. "ID": {
  8855. "description": "主键ID",
  8856. "type": "integer"
  8857. },
  8858. "createdAt": {
  8859. "description": "创建时间",
  8860. "type": "string"
  8861. },
  8862. "key": {
  8863. "description": "地址栏携带参数的key",
  8864. "type": "string"
  8865. },
  8866. "sysBaseMenuID": {
  8867. "type": "integer"
  8868. },
  8869. "type": {
  8870. "description": "地址栏携带参数为params还是query",
  8871. "type": "string"
  8872. },
  8873. "updatedAt": {
  8874. "description": "更新时间",
  8875. "type": "string"
  8876. },
  8877. "value": {
  8878. "description": "地址栏携带参数的值",
  8879. "type": "string"
  8880. }
  8881. }
  8882. },
  8883. "system.SysDictionary": {
  8884. "type": "object",
  8885. "properties": {
  8886. "ID": {
  8887. "description": "主键ID",
  8888. "type": "integer"
  8889. },
  8890. "createdAt": {
  8891. "description": "创建时间",
  8892. "type": "string"
  8893. },
  8894. "desc": {
  8895. "description": "描述",
  8896. "type": "string"
  8897. },
  8898. "name": {
  8899. "description": "字典名(中)",
  8900. "type": "string"
  8901. },
  8902. "status": {
  8903. "description": "状态",
  8904. "type": "boolean"
  8905. },
  8906. "sysDictionaryDetails": {
  8907. "type": "array",
  8908. "items": {
  8909. "$ref": "#/definitions/system.SysDictionaryDetail"
  8910. }
  8911. },
  8912. "type": {
  8913. "description": "字典名(英)",
  8914. "type": "string"
  8915. },
  8916. "updatedAt": {
  8917. "description": "更新时间",
  8918. "type": "string"
  8919. }
  8920. }
  8921. },
  8922. "system.SysDictionaryDetail": {
  8923. "type": "object",
  8924. "properties": {
  8925. "ID": {
  8926. "description": "主键ID",
  8927. "type": "integer"
  8928. },
  8929. "createdAt": {
  8930. "description": "创建时间",
  8931. "type": "string"
  8932. },
  8933. "extend": {
  8934. "description": "扩展值",
  8935. "type": "string"
  8936. },
  8937. "label": {
  8938. "description": "展示值",
  8939. "type": "string"
  8940. },
  8941. "sort": {
  8942. "description": "排序标记",
  8943. "type": "integer"
  8944. },
  8945. "status": {
  8946. "description": "启用状态",
  8947. "type": "boolean"
  8948. },
  8949. "sysDictionaryID": {
  8950. "description": "关联标记",
  8951. "type": "integer"
  8952. },
  8953. "updatedAt": {
  8954. "description": "更新时间",
  8955. "type": "string"
  8956. },
  8957. "value": {
  8958. "description": "字典值",
  8959. "type": "string"
  8960. }
  8961. }
  8962. },
  8963. "system.SysExportTemplate": {
  8964. "type": "object",
  8965. "properties": {
  8966. "ID": {
  8967. "description": "主键ID",
  8968. "type": "integer"
  8969. },
  8970. "conditions": {
  8971. "type": "array",
  8972. "items": {
  8973. "$ref": "#/definitions/system.Condition"
  8974. }
  8975. },
  8976. "createdAt": {
  8977. "description": "创建时间",
  8978. "type": "string"
  8979. },
  8980. "dbName": {
  8981. "description": "数据库名称",
  8982. "type": "string"
  8983. },
  8984. "joinTemplate": {
  8985. "type": "array",
  8986. "items": {
  8987. "$ref": "#/definitions/system.JoinTemplate"
  8988. }
  8989. },
  8990. "limit": {
  8991. "type": "integer"
  8992. },
  8993. "name": {
  8994. "description": "模板名称",
  8995. "type": "string"
  8996. },
  8997. "order": {
  8998. "type": "string"
  8999. },
  9000. "tableName": {
  9001. "description": "表名称",
  9002. "type": "string"
  9003. },
  9004. "templateID": {
  9005. "description": "模板标识",
  9006. "type": "string"
  9007. },
  9008. "templateInfo": {
  9009. "description": "模板信息",
  9010. "type": "string"
  9011. },
  9012. "updatedAt": {
  9013. "description": "更新时间",
  9014. "type": "string"
  9015. }
  9016. }
  9017. },
  9018. "system.SysMenu": {
  9019. "type": "object",
  9020. "properties": {
  9021. "ID": {
  9022. "description": "主键ID",
  9023. "type": "integer"
  9024. },
  9025. "authoritys": {
  9026. "type": "array",
  9027. "items": {
  9028. "$ref": "#/definitions/system.SysAuthority"
  9029. }
  9030. },
  9031. "btns": {
  9032. "type": "object",
  9033. "additionalProperties": {
  9034. "type": "integer"
  9035. }
  9036. },
  9037. "children": {
  9038. "type": "array",
  9039. "items": {
  9040. "$ref": "#/definitions/system.SysMenu"
  9041. }
  9042. },
  9043. "component": {
  9044. "description": "对应前端文件路径",
  9045. "type": "string"
  9046. },
  9047. "createdAt": {
  9048. "description": "创建时间",
  9049. "type": "string"
  9050. },
  9051. "hidden": {
  9052. "description": "是否在列表隐藏",
  9053. "type": "boolean"
  9054. },
  9055. "menuBtn": {
  9056. "type": "array",
  9057. "items": {
  9058. "$ref": "#/definitions/system.SysBaseMenuBtn"
  9059. }
  9060. },
  9061. "menuId": {
  9062. "type": "integer"
  9063. },
  9064. "meta": {
  9065. "description": "附加属性",
  9066. "allOf": [
  9067. {
  9068. "$ref": "#/definitions/system.Meta"
  9069. }
  9070. ]
  9071. },
  9072. "name": {
  9073. "description": "路由name",
  9074. "type": "string"
  9075. },
  9076. "parameters": {
  9077. "type": "array",
  9078. "items": {
  9079. "$ref": "#/definitions/system.SysBaseMenuParameter"
  9080. }
  9081. },
  9082. "parentId": {
  9083. "description": "父菜单ID",
  9084. "type": "integer"
  9085. },
  9086. "path": {
  9087. "description": "路由path",
  9088. "type": "string"
  9089. },
  9090. "sort": {
  9091. "description": "排序标记",
  9092. "type": "integer"
  9093. },
  9094. "updatedAt": {
  9095. "description": "更新时间",
  9096. "type": "string"
  9097. }
  9098. }
  9099. },
  9100. "system.SysOperationRecord": {
  9101. "type": "object",
  9102. "properties": {
  9103. "ID": {
  9104. "description": "主键ID",
  9105. "type": "integer"
  9106. },
  9107. "agent": {
  9108. "description": "代理",
  9109. "type": "string"
  9110. },
  9111. "body": {
  9112. "description": "请求Body",
  9113. "type": "string"
  9114. },
  9115. "createdAt": {
  9116. "description": "创建时间",
  9117. "type": "string"
  9118. },
  9119. "error_message": {
  9120. "description": "错误信息",
  9121. "type": "string"
  9122. },
  9123. "ip": {
  9124. "description": "请求ip",
  9125. "type": "string"
  9126. },
  9127. "latency": {
  9128. "description": "延迟",
  9129. "type": "string"
  9130. },
  9131. "method": {
  9132. "description": "请求方法",
  9133. "type": "string"
  9134. },
  9135. "path": {
  9136. "description": "请求路径",
  9137. "type": "string"
  9138. },
  9139. "resp": {
  9140. "description": "响应Body",
  9141. "type": "string"
  9142. },
  9143. "status": {
  9144. "description": "请求状态",
  9145. "type": "integer"
  9146. },
  9147. "updatedAt": {
  9148. "description": "更新时间",
  9149. "type": "string"
  9150. },
  9151. "user": {
  9152. "$ref": "#/definitions/system.SysUser"
  9153. },
  9154. "user_id": {
  9155. "description": "用户id",
  9156. "type": "integer"
  9157. }
  9158. }
  9159. },
  9160. "system.SysParams": {
  9161. "type": "object",
  9162. "required": [
  9163. "key",
  9164. "name",
  9165. "value"
  9166. ],
  9167. "properties": {
  9168. "ID": {
  9169. "description": "主键ID",
  9170. "type": "integer"
  9171. },
  9172. "createdAt": {
  9173. "description": "创建时间",
  9174. "type": "string"
  9175. },
  9176. "desc": {
  9177. "description": "参数说明",
  9178. "type": "string"
  9179. },
  9180. "key": {
  9181. "description": "参数键",
  9182. "type": "string"
  9183. },
  9184. "name": {
  9185. "description": "参数名称",
  9186. "type": "string"
  9187. },
  9188. "updatedAt": {
  9189. "description": "更新时间",
  9190. "type": "string"
  9191. },
  9192. "value": {
  9193. "description": "参数值",
  9194. "type": "string"
  9195. }
  9196. }
  9197. },
  9198. "system.SysUser": {
  9199. "type": "object",
  9200. "properties": {
  9201. "ID": {
  9202. "description": "主键ID",
  9203. "type": "integer"
  9204. },
  9205. "authorities": {
  9206. "description": "多用户角色",
  9207. "type": "array",
  9208. "items": {
  9209. "$ref": "#/definitions/system.SysAuthority"
  9210. }
  9211. },
  9212. "authority": {
  9213. "description": "用户角色",
  9214. "allOf": [
  9215. {
  9216. "$ref": "#/definitions/system.SysAuthority"
  9217. }
  9218. ]
  9219. },
  9220. "authorityId": {
  9221. "description": "用户角色ID",
  9222. "type": "integer"
  9223. },
  9224. "createdAt": {
  9225. "description": "创建时间",
  9226. "type": "string"
  9227. },
  9228. "email": {
  9229. "description": "用户邮箱",
  9230. "type": "string"
  9231. },
  9232. "enable": {
  9233. "description": "用户是否被冻结 1正常 2冻结",
  9234. "type": "integer"
  9235. },
  9236. "headerImg": {
  9237. "description": "用户头像",
  9238. "type": "string"
  9239. },
  9240. "nickName": {
  9241. "description": "用户昵称",
  9242. "type": "string"
  9243. },
  9244. "originSetting": {
  9245. "description": "配置",
  9246. "allOf": [
  9247. {
  9248. "$ref": "#/definitions/common.JSONMap"
  9249. }
  9250. ]
  9251. },
  9252. "phone": {
  9253. "description": "用户手机号",
  9254. "type": "string"
  9255. },
  9256. "updatedAt": {
  9257. "description": "更新时间",
  9258. "type": "string"
  9259. },
  9260. "userName": {
  9261. "description": "用户登录名",
  9262. "type": "string"
  9263. },
  9264. "uuid": {
  9265. "description": "用户UUID",
  9266. "type": "string"
  9267. }
  9268. }
  9269. },
  9270. "system.System": {
  9271. "type": "object",
  9272. "properties": {
  9273. "config": {
  9274. "$ref": "#/definitions/config.Server"
  9275. }
  9276. }
  9277. }
  9278. },
  9279. "securityDefinitions": {
  9280. "ApiKeyAuth": {
  9281. "type": "apiKey",
  9282. "name": "x-token",
  9283. "in": "header"
  9284. }
  9285. },
  9286. "tags": [
  9287. {
  9288. "name": "Base"
  9289. },
  9290. {
  9291. "description": "用户",
  9292. "name": "SysUser"
  9293. }
  9294. ]
  9295. }`
  9296. // SwaggerInfo holds exported Swagger Info so clients can modify it
  9297. var SwaggerInfo = &swag.Spec{
  9298. Version: global.Version,
  9299. Host: "",
  9300. BasePath: "",
  9301. Schemes: []string{},
  9302. Title: "Gin-Vue-Admin Swagger API接口文档",
  9303. Description: "使用gin+vue进行极速开发的全栈开发基础平台",
  9304. InfoInstanceName: "swagger",
  9305. SwaggerTemplate: docTemplate,
  9306. }
  9307. func init() {
  9308. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  9309. }