admin_docs.go 217 KB

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