docs.go 315 KB

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