admin_docs.go 217 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624
  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. "redirect_url"
  5572. ],
  5573. "properties": {
  5574. "auto_register": {
  5575. "type": "boolean"
  5576. },
  5577. "client_id": {
  5578. "type": "string"
  5579. },
  5580. "client_secret": {
  5581. "type": "string"
  5582. },
  5583. "id": {
  5584. "type": "integer"
  5585. },
  5586. "issuer": {
  5587. "type": "string"
  5588. },
  5589. "oauth_type": {
  5590. "type": "string"
  5591. },
  5592. "op": {
  5593. "type": "string"
  5594. },
  5595. "pkce_enable": {
  5596. "type": "boolean"
  5597. },
  5598. "pkce_method": {
  5599. "type": "string"
  5600. },
  5601. "redirect_url": {
  5602. "type": "string"
  5603. },
  5604. "scopes": {
  5605. "type": "string"
  5606. }
  5607. }
  5608. },
  5609. "admin.PeerBatchDeleteForm": {
  5610. "type": "object",
  5611. "required": [
  5612. "row_ids"
  5613. ],
  5614. "properties": {
  5615. "row_ids": {
  5616. "type": "array",
  5617. "items": {
  5618. "type": "integer"
  5619. }
  5620. }
  5621. }
  5622. },
  5623. "admin.PeerForm": {
  5624. "type": "object",
  5625. "properties": {
  5626. "cpu": {
  5627. "type": "string"
  5628. },
  5629. "group_id": {
  5630. "type": "integer"
  5631. },
  5632. "hostname": {
  5633. "type": "string"
  5634. },
  5635. "id": {
  5636. "type": "string"
  5637. },
  5638. "memory": {
  5639. "type": "string"
  5640. },
  5641. "os": {
  5642. "type": "string"
  5643. },
  5644. "row_id": {
  5645. "type": "integer"
  5646. },
  5647. "username": {
  5648. "type": "string"
  5649. },
  5650. "uuid": {
  5651. "type": "string"
  5652. },
  5653. "version": {
  5654. "type": "string"
  5655. }
  5656. }
  5657. },
  5658. "admin.PeerShareRecordBatchDeleteForm": {
  5659. "type": "object",
  5660. "required": [
  5661. "ids"
  5662. ],
  5663. "properties": {
  5664. "ids": {
  5665. "type": "array",
  5666. "items": {
  5667. "type": "integer"
  5668. }
  5669. }
  5670. }
  5671. },
  5672. "admin.ShareByWebClientForm": {
  5673. "type": "object",
  5674. "required": [
  5675. "id",
  5676. "password",
  5677. "password_type"
  5678. ],
  5679. "properties": {
  5680. "expire": {
  5681. "type": "integer"
  5682. },
  5683. "id": {
  5684. "type": "string"
  5685. },
  5686. "password": {
  5687. "type": "string"
  5688. },
  5689. "password_type": {
  5690. "description": "只能是once,fixed",
  5691. "type": "string",
  5692. "enum": [
  5693. "once",
  5694. "fixed"
  5695. ]
  5696. }
  5697. }
  5698. },
  5699. "admin.ShareRecordForm": {
  5700. "type": "object",
  5701. "properties": {
  5702. "id": {
  5703. "type": "integer"
  5704. },
  5705. "user_id": {
  5706. "type": "integer"
  5707. }
  5708. }
  5709. },
  5710. "admin.TagForm": {
  5711. "type": "object",
  5712. "required": [
  5713. "color",
  5714. "name"
  5715. ],
  5716. "properties": {
  5717. "collection_id": {
  5718. "type": "integer"
  5719. },
  5720. "color": {
  5721. "type": "integer"
  5722. },
  5723. "id": {
  5724. "type": "integer"
  5725. },
  5726. "name": {
  5727. "type": "string"
  5728. },
  5729. "user_id": {
  5730. "type": "integer"
  5731. }
  5732. }
  5733. },
  5734. "admin.UserForm": {
  5735. "type": "object",
  5736. "required": [
  5737. "group_id",
  5738. "status",
  5739. "username"
  5740. ],
  5741. "properties": {
  5742. "avatar": {
  5743. "type": "string"
  5744. },
  5745. "email": {
  5746. "description": "validate:\"required,email\" email不强制",
  5747. "type": "string"
  5748. },
  5749. "group_id": {
  5750. "type": "integer"
  5751. },
  5752. "id": {
  5753. "type": "integer"
  5754. },
  5755. "is_admin": {
  5756. "type": "boolean"
  5757. },
  5758. "nickname": {
  5759. "description": "Password string ` + "`" + `json:\"password\" validate:\"required,gte=4,lte=20\"` + "`" + `",
  5760. "type": "string"
  5761. },
  5762. "status": {
  5763. "minimum": 0,
  5764. "allOf": [
  5765. {
  5766. "$ref": "#/definitions/model.StatusCode"
  5767. }
  5768. ]
  5769. },
  5770. "username": {
  5771. "type": "string",
  5772. "maxLength": 32,
  5773. "minLength": 2
  5774. }
  5775. }
  5776. },
  5777. "admin.UserOauthItem": {
  5778. "type": "object",
  5779. "properties": {
  5780. "op": {
  5781. "type": "string"
  5782. },
  5783. "status": {
  5784. "type": "integer"
  5785. }
  5786. }
  5787. },
  5788. "admin.UserPasswordForm": {
  5789. "type": "object",
  5790. "required": [
  5791. "id",
  5792. "password"
  5793. ],
  5794. "properties": {
  5795. "id": {
  5796. "type": "integer"
  5797. },
  5798. "password": {
  5799. "type": "string",
  5800. "maxLength": 32,
  5801. "minLength": 4
  5802. }
  5803. }
  5804. },
  5805. "admin.UserTokenBatchDeleteForm": {
  5806. "type": "object",
  5807. "required": [
  5808. "ids"
  5809. ],
  5810. "properties": {
  5811. "ids": {
  5812. "type": "array",
  5813. "items": {
  5814. "type": "integer"
  5815. }
  5816. }
  5817. }
  5818. },
  5819. "github_com_lejianwen_rustdesk-api_v2_http_request_admin.Login": {
  5820. "type": "object",
  5821. "required": [
  5822. "password",
  5823. "username"
  5824. ],
  5825. "properties": {
  5826. "captcha": {
  5827. "type": "string"
  5828. },
  5829. "captcha_id": {
  5830. "type": "string"
  5831. },
  5832. "password": {
  5833. "type": "string"
  5834. },
  5835. "platform": {
  5836. "type": "string"
  5837. },
  5838. "username": {
  5839. "type": "string"
  5840. }
  5841. }
  5842. },
  5843. "model.AddressBook": {
  5844. "type": "object",
  5845. "properties": {
  5846. "alias": {
  5847. "type": "string"
  5848. },
  5849. "collection": {
  5850. "$ref": "#/definitions/model.AddressBookCollection"
  5851. },
  5852. "collection_id": {
  5853. "type": "integer"
  5854. },
  5855. "created_at": {
  5856. "type": "string"
  5857. },
  5858. "forceAlwaysRelay": {
  5859. "type": "boolean"
  5860. },
  5861. "hash": {
  5862. "type": "string"
  5863. },
  5864. "hostname": {
  5865. "type": "string"
  5866. },
  5867. "id": {
  5868. "type": "string"
  5869. },
  5870. "loginName": {
  5871. "type": "string"
  5872. },
  5873. "online": {
  5874. "type": "boolean"
  5875. },
  5876. "password": {
  5877. "type": "string"
  5878. },
  5879. "platform": {
  5880. "type": "string"
  5881. },
  5882. "rdpPort": {
  5883. "type": "string"
  5884. },
  5885. "rdpUsername": {
  5886. "type": "string"
  5887. },
  5888. "row_id": {
  5889. "type": "integer"
  5890. },
  5891. "sameServer": {
  5892. "type": "boolean"
  5893. },
  5894. "tags": {
  5895. "type": "array",
  5896. "items": {
  5897. "type": "string"
  5898. }
  5899. },
  5900. "updated_at": {
  5901. "type": "string"
  5902. },
  5903. "user_id": {
  5904. "type": "integer"
  5905. },
  5906. "username": {
  5907. "type": "string"
  5908. }
  5909. }
  5910. },
  5911. "model.AddressBookCollection": {
  5912. "type": "object",
  5913. "required": [
  5914. "name"
  5915. ],
  5916. "properties": {
  5917. "created_at": {
  5918. "type": "string"
  5919. },
  5920. "id": {
  5921. "type": "integer"
  5922. },
  5923. "name": {
  5924. "type": "string"
  5925. },
  5926. "updated_at": {
  5927. "type": "string"
  5928. },
  5929. "user_id": {
  5930. "type": "integer"
  5931. }
  5932. }
  5933. },
  5934. "model.AddressBookCollectionList": {
  5935. "type": "object",
  5936. "properties": {
  5937. "list": {
  5938. "type": "array",
  5939. "items": {
  5940. "$ref": "#/definitions/model.AddressBookCollection"
  5941. }
  5942. },
  5943. "page": {
  5944. "type": "integer"
  5945. },
  5946. "page_size": {
  5947. "type": "integer"
  5948. },
  5949. "total": {
  5950. "type": "integer"
  5951. }
  5952. }
  5953. },
  5954. "model.AddressBookCollectionRule": {
  5955. "type": "object",
  5956. "required": [
  5957. "collection_id",
  5958. "rule",
  5959. "to_id",
  5960. "type"
  5961. ],
  5962. "properties": {
  5963. "collection_id": {
  5964. "type": "integer"
  5965. },
  5966. "created_at": {
  5967. "type": "string"
  5968. },
  5969. "id": {
  5970. "type": "integer"
  5971. },
  5972. "rule": {
  5973. "description": "0: 无 1: 读 2: 读写 3: 完全控制",
  5974. "type": "integer",
  5975. "maximum": 3,
  5976. "minimum": 1
  5977. },
  5978. "to_id": {
  5979. "type": "integer"
  5980. },
  5981. "type": {
  5982. "description": "1: 个人 2: 群组",
  5983. "type": "integer",
  5984. "maximum": 2,
  5985. "minimum": 1
  5986. },
  5987. "updated_at": {
  5988. "type": "string"
  5989. },
  5990. "user_id": {
  5991. "type": "integer"
  5992. }
  5993. }
  5994. },
  5995. "model.AddressBookList": {
  5996. "type": "object",
  5997. "properties": {
  5998. "list": {
  5999. "type": "array",
  6000. "items": {
  6001. "$ref": "#/definitions/model.AddressBook"
  6002. }
  6003. },
  6004. "page": {
  6005. "type": "integer"
  6006. },
  6007. "page_size": {
  6008. "type": "integer"
  6009. },
  6010. "total": {
  6011. "type": "integer"
  6012. }
  6013. }
  6014. },
  6015. "model.AuditConn": {
  6016. "type": "object",
  6017. "properties": {
  6018. "action": {
  6019. "type": "string"
  6020. },
  6021. "close_time": {
  6022. "type": "integer"
  6023. },
  6024. "conn_id": {
  6025. "type": "integer"
  6026. },
  6027. "created_at": {
  6028. "type": "string"
  6029. },
  6030. "from_name": {
  6031. "type": "string"
  6032. },
  6033. "from_peer": {
  6034. "type": "string"
  6035. },
  6036. "id": {
  6037. "type": "integer"
  6038. },
  6039. "ip": {
  6040. "type": "string"
  6041. },
  6042. "peer_id": {
  6043. "type": "string"
  6044. },
  6045. "session_id": {
  6046. "type": "string"
  6047. },
  6048. "type": {
  6049. "type": "integer"
  6050. },
  6051. "updated_at": {
  6052. "type": "string"
  6053. },
  6054. "uuid": {
  6055. "type": "string"
  6056. }
  6057. }
  6058. },
  6059. "model.AuditConnList": {
  6060. "type": "object",
  6061. "properties": {
  6062. "list": {
  6063. "type": "array",
  6064. "items": {
  6065. "$ref": "#/definitions/model.AuditConn"
  6066. }
  6067. },
  6068. "page": {
  6069. "type": "integer"
  6070. },
  6071. "page_size": {
  6072. "type": "integer"
  6073. },
  6074. "total": {
  6075. "type": "integer"
  6076. }
  6077. }
  6078. },
  6079. "model.AuditFile": {
  6080. "type": "object",
  6081. "properties": {
  6082. "created_at": {
  6083. "type": "string"
  6084. },
  6085. "from_name": {
  6086. "type": "string"
  6087. },
  6088. "from_peer": {
  6089. "type": "string"
  6090. },
  6091. "id": {
  6092. "type": "integer"
  6093. },
  6094. "info": {
  6095. "type": "string"
  6096. },
  6097. "ip": {
  6098. "type": "string"
  6099. },
  6100. "is_file": {
  6101. "type": "boolean"
  6102. },
  6103. "num": {
  6104. "type": "integer"
  6105. },
  6106. "path": {
  6107. "type": "string"
  6108. },
  6109. "peer_id": {
  6110. "type": "string"
  6111. },
  6112. "type": {
  6113. "type": "integer"
  6114. },
  6115. "updated_at": {
  6116. "type": "string"
  6117. },
  6118. "uuid": {
  6119. "type": "string"
  6120. }
  6121. }
  6122. },
  6123. "model.AuditFileList": {
  6124. "type": "object",
  6125. "properties": {
  6126. "list": {
  6127. "type": "array",
  6128. "items": {
  6129. "$ref": "#/definitions/model.AuditFile"
  6130. }
  6131. },
  6132. "page": {
  6133. "type": "integer"
  6134. },
  6135. "page_size": {
  6136. "type": "integer"
  6137. },
  6138. "total": {
  6139. "type": "integer"
  6140. }
  6141. }
  6142. },
  6143. "model.DeviceGroup": {
  6144. "type": "object",
  6145. "properties": {
  6146. "created_at": {
  6147. "type": "string"
  6148. },
  6149. "id": {
  6150. "type": "integer"
  6151. },
  6152. "name": {
  6153. "type": "string"
  6154. },
  6155. "updated_at": {
  6156. "type": "string"
  6157. }
  6158. }
  6159. },
  6160. "model.Group": {
  6161. "type": "object",
  6162. "properties": {
  6163. "created_at": {
  6164. "type": "string"
  6165. },
  6166. "id": {
  6167. "type": "integer"
  6168. },
  6169. "name": {
  6170. "type": "string"
  6171. },
  6172. "type": {
  6173. "type": "integer"
  6174. },
  6175. "updated_at": {
  6176. "type": "string"
  6177. }
  6178. }
  6179. },
  6180. "model.GroupList": {
  6181. "type": "object",
  6182. "properties": {
  6183. "list": {
  6184. "type": "array",
  6185. "items": {
  6186. "$ref": "#/definitions/model.Group"
  6187. }
  6188. },
  6189. "page": {
  6190. "type": "integer"
  6191. },
  6192. "page_size": {
  6193. "type": "integer"
  6194. },
  6195. "total": {
  6196. "type": "integer"
  6197. }
  6198. }
  6199. },
  6200. "model.LoginLog": {
  6201. "type": "object",
  6202. "properties": {
  6203. "client": {
  6204. "description": "webadmin,webclient,app,",
  6205. "type": "string"
  6206. },
  6207. "created_at": {
  6208. "type": "string"
  6209. },
  6210. "device_id": {
  6211. "type": "string"
  6212. },
  6213. "id": {
  6214. "type": "integer"
  6215. },
  6216. "ip": {
  6217. "type": "string"
  6218. },
  6219. "is_deleted": {
  6220. "type": "integer"
  6221. },
  6222. "platform": {
  6223. "description": "windows,linux,mac,android,ios",
  6224. "type": "string"
  6225. },
  6226. "type": {
  6227. "description": "account,oauth",
  6228. "type": "string"
  6229. },
  6230. "updated_at": {
  6231. "type": "string"
  6232. },
  6233. "user_id": {
  6234. "type": "integer"
  6235. },
  6236. "user_token_id": {
  6237. "type": "integer"
  6238. },
  6239. "uuid": {
  6240. "type": "string"
  6241. }
  6242. }
  6243. },
  6244. "model.LoginLogList": {
  6245. "type": "object",
  6246. "properties": {
  6247. "list": {
  6248. "type": "array",
  6249. "items": {
  6250. "$ref": "#/definitions/model.LoginLog"
  6251. }
  6252. },
  6253. "page": {
  6254. "type": "integer"
  6255. },
  6256. "page_size": {
  6257. "type": "integer"
  6258. },
  6259. "total": {
  6260. "type": "integer"
  6261. }
  6262. }
  6263. },
  6264. "model.Oauth": {
  6265. "type": "object",
  6266. "properties": {
  6267. "auto_register": {
  6268. "type": "boolean"
  6269. },
  6270. "client_id": {
  6271. "type": "string"
  6272. },
  6273. "client_secret": {
  6274. "type": "string"
  6275. },
  6276. "created_at": {
  6277. "type": "string"
  6278. },
  6279. "id": {
  6280. "type": "integer"
  6281. },
  6282. "issuer": {
  6283. "type": "string"
  6284. },
  6285. "oauth_type": {
  6286. "type": "string"
  6287. },
  6288. "op": {
  6289. "type": "string"
  6290. },
  6291. "pkce_enable": {
  6292. "type": "boolean"
  6293. },
  6294. "pkce_method": {
  6295. "type": "string"
  6296. },
  6297. "redirect_url": {
  6298. "type": "string"
  6299. },
  6300. "scopes": {
  6301. "type": "string"
  6302. },
  6303. "updated_at": {
  6304. "type": "string"
  6305. }
  6306. }
  6307. },
  6308. "model.OauthList": {
  6309. "type": "object",
  6310. "properties": {
  6311. "list": {
  6312. "type": "array",
  6313. "items": {
  6314. "$ref": "#/definitions/model.Oauth"
  6315. }
  6316. },
  6317. "page": {
  6318. "type": "integer"
  6319. },
  6320. "page_size": {
  6321. "type": "integer"
  6322. },
  6323. "total": {
  6324. "type": "integer"
  6325. }
  6326. }
  6327. },
  6328. "model.Peer": {
  6329. "type": "object",
  6330. "properties": {
  6331. "cpu": {
  6332. "type": "string"
  6333. },
  6334. "created_at": {
  6335. "type": "string"
  6336. },
  6337. "group_id": {
  6338. "type": "integer"
  6339. },
  6340. "hostname": {
  6341. "type": "string"
  6342. },
  6343. "id": {
  6344. "type": "string"
  6345. },
  6346. "last_online_ip": {
  6347. "type": "string"
  6348. },
  6349. "last_online_time": {
  6350. "type": "integer"
  6351. },
  6352. "memory": {
  6353. "type": "string"
  6354. },
  6355. "os": {
  6356. "type": "string"
  6357. },
  6358. "row_id": {
  6359. "type": "integer"
  6360. },
  6361. "updated_at": {
  6362. "type": "string"
  6363. },
  6364. "user": {
  6365. "$ref": "#/definitions/model.User"
  6366. },
  6367. "user_id": {
  6368. "type": "integer"
  6369. },
  6370. "username": {
  6371. "type": "string"
  6372. },
  6373. "uuid": {
  6374. "type": "string"
  6375. },
  6376. "version": {
  6377. "type": "string"
  6378. }
  6379. }
  6380. },
  6381. "model.PeerList": {
  6382. "type": "object",
  6383. "properties": {
  6384. "list": {
  6385. "type": "array",
  6386. "items": {
  6387. "$ref": "#/definitions/model.Peer"
  6388. }
  6389. },
  6390. "page": {
  6391. "type": "integer"
  6392. },
  6393. "page_size": {
  6394. "type": "integer"
  6395. },
  6396. "total": {
  6397. "type": "integer"
  6398. }
  6399. }
  6400. },
  6401. "model.StatusCode": {
  6402. "type": "integer",
  6403. "enum": [
  6404. 1,
  6405. 2
  6406. ],
  6407. "x-enum-comments": {
  6408. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  6409. "COMMON_STATUS_ENABLE": "通用状态 启用"
  6410. },
  6411. "x-enum-varnames": [
  6412. "COMMON_STATUS_ENABLE",
  6413. "COMMON_STATUS_DISABLED"
  6414. ]
  6415. },
  6416. "model.Tag": {
  6417. "type": "object",
  6418. "properties": {
  6419. "collection": {
  6420. "$ref": "#/definitions/model.AddressBookCollection"
  6421. },
  6422. "collection_id": {
  6423. "type": "integer"
  6424. },
  6425. "color": {
  6426. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  6427. "type": "integer"
  6428. },
  6429. "created_at": {
  6430. "type": "string"
  6431. },
  6432. "id": {
  6433. "type": "integer"
  6434. },
  6435. "name": {
  6436. "type": "string"
  6437. },
  6438. "updated_at": {
  6439. "type": "string"
  6440. },
  6441. "user_id": {
  6442. "type": "integer"
  6443. }
  6444. }
  6445. },
  6446. "model.TagList": {
  6447. "type": "object",
  6448. "properties": {
  6449. "list": {
  6450. "type": "array",
  6451. "items": {
  6452. "$ref": "#/definitions/model.Tag"
  6453. }
  6454. },
  6455. "page": {
  6456. "type": "integer"
  6457. },
  6458. "page_size": {
  6459. "type": "integer"
  6460. },
  6461. "total": {
  6462. "type": "integer"
  6463. }
  6464. }
  6465. },
  6466. "model.User": {
  6467. "type": "object",
  6468. "properties": {
  6469. "avatar": {
  6470. "type": "string"
  6471. },
  6472. "created_at": {
  6473. "type": "string"
  6474. },
  6475. "email": {
  6476. "type": "string"
  6477. },
  6478. "group_id": {
  6479. "type": "integer"
  6480. },
  6481. "id": {
  6482. "type": "integer"
  6483. },
  6484. "is_admin": {
  6485. "type": "boolean"
  6486. },
  6487. "nickname": {
  6488. "type": "string"
  6489. },
  6490. "status": {
  6491. "$ref": "#/definitions/model.StatusCode"
  6492. },
  6493. "updated_at": {
  6494. "type": "string"
  6495. },
  6496. "username": {
  6497. "type": "string"
  6498. }
  6499. }
  6500. },
  6501. "model.UserList": {
  6502. "type": "object",
  6503. "properties": {
  6504. "list": {
  6505. "type": "array",
  6506. "items": {
  6507. "$ref": "#/definitions/model.User"
  6508. }
  6509. },
  6510. "page": {
  6511. "type": "integer"
  6512. },
  6513. "page_size": {
  6514. "type": "integer"
  6515. },
  6516. "total": {
  6517. "type": "integer"
  6518. }
  6519. }
  6520. },
  6521. "model.UserToken": {
  6522. "type": "object",
  6523. "properties": {
  6524. "created_at": {
  6525. "type": "string"
  6526. },
  6527. "device_id": {
  6528. "type": "string"
  6529. },
  6530. "device_uuid": {
  6531. "type": "string"
  6532. },
  6533. "expired_at": {
  6534. "type": "integer"
  6535. },
  6536. "id": {
  6537. "type": "integer"
  6538. },
  6539. "token": {
  6540. "type": "string"
  6541. },
  6542. "updated_at": {
  6543. "type": "string"
  6544. },
  6545. "user_id": {
  6546. "type": "integer"
  6547. }
  6548. }
  6549. },
  6550. "model.UserTokenList": {
  6551. "type": "object",
  6552. "properties": {
  6553. "list": {
  6554. "type": "array",
  6555. "items": {
  6556. "$ref": "#/definitions/model.UserToken"
  6557. }
  6558. },
  6559. "page": {
  6560. "type": "integer"
  6561. },
  6562. "page_size": {
  6563. "type": "integer"
  6564. },
  6565. "total": {
  6566. "type": "integer"
  6567. }
  6568. }
  6569. },
  6570. "response.ErrorResponse": {
  6571. "type": "object",
  6572. "properties": {
  6573. "error": {
  6574. "type": "string"
  6575. }
  6576. }
  6577. },
  6578. "response.Response": {
  6579. "type": "object",
  6580. "properties": {
  6581. "code": {
  6582. "type": "integer"
  6583. },
  6584. "data": {},
  6585. "message": {
  6586. "type": "string"
  6587. }
  6588. }
  6589. }
  6590. },
  6591. "securityDefinitions": {
  6592. "BearerAuth": {
  6593. "type": "apiKey",
  6594. "name": "Authorization",
  6595. "in": "header"
  6596. },
  6597. "token": {
  6598. "type": "apiKey",
  6599. "name": "api-token",
  6600. "in": "header"
  6601. }
  6602. }
  6603. }`
  6604. // SwaggerInfoadmin holds exported Swagger Info so clients can modify it
  6605. var SwaggerInfoadmin = &swag.Spec{
  6606. Version: "1.0",
  6607. Host: "",
  6608. BasePath: "/api",
  6609. Schemes: []string{},
  6610. Title: "管理系统API",
  6611. Description: "接口",
  6612. InfoInstanceName: "admin",
  6613. SwaggerTemplate: docTemplateadmin,
  6614. LeftDelim: "{{",
  6615. RightDelim: "}}",
  6616. }
  6617. func init() {
  6618. swag.Register(SwaggerInfoadmin.InstanceName(), SwaggerInfoadmin)
  6619. }