admin_docs.go 201 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162
  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/app-config": {
  983. "get": {
  984. "security": [
  985. {
  986. "token": []
  987. }
  988. ],
  989. "description": "APP服务配置",
  990. "consumes": [
  991. "application/json"
  992. ],
  993. "produces": [
  994. "application/json"
  995. ],
  996. "tags": [
  997. "ADMIN"
  998. ],
  999. "summary": "APP服务配置",
  1000. "responses": {
  1001. "200": {
  1002. "description": "OK",
  1003. "schema": {
  1004. "$ref": "#/definitions/response.Response"
  1005. }
  1006. },
  1007. "500": {
  1008. "description": "Internal Server Error",
  1009. "schema": {
  1010. "$ref": "#/definitions/response.Response"
  1011. }
  1012. }
  1013. }
  1014. }
  1015. },
  1016. "/admin/audit_conn/batchDelete": {
  1017. "post": {
  1018. "security": [
  1019. {
  1020. "token": []
  1021. }
  1022. ],
  1023. "description": "链接日志批量删除",
  1024. "consumes": [
  1025. "application/json"
  1026. ],
  1027. "produces": [
  1028. "application/json"
  1029. ],
  1030. "tags": [
  1031. "链接日志"
  1032. ],
  1033. "summary": "链接日志批量删除",
  1034. "parameters": [
  1035. {
  1036. "description": "链接日志",
  1037. "name": "body",
  1038. "in": "body",
  1039. "required": true,
  1040. "schema": {
  1041. "$ref": "#/definitions/admin.AuditConnLogIds"
  1042. }
  1043. }
  1044. ],
  1045. "responses": {
  1046. "200": {
  1047. "description": "OK",
  1048. "schema": {
  1049. "$ref": "#/definitions/response.Response"
  1050. }
  1051. },
  1052. "500": {
  1053. "description": "Internal Server Error",
  1054. "schema": {
  1055. "$ref": "#/definitions/response.Response"
  1056. }
  1057. }
  1058. }
  1059. }
  1060. },
  1061. "/admin/audit_conn/delete": {
  1062. "post": {
  1063. "security": [
  1064. {
  1065. "token": []
  1066. }
  1067. ],
  1068. "description": "链接日志删除",
  1069. "consumes": [
  1070. "application/json"
  1071. ],
  1072. "produces": [
  1073. "application/json"
  1074. ],
  1075. "tags": [
  1076. "链接日志"
  1077. ],
  1078. "summary": "链接日志删除",
  1079. "parameters": [
  1080. {
  1081. "description": "链接日志信息",
  1082. "name": "body",
  1083. "in": "body",
  1084. "required": true,
  1085. "schema": {
  1086. "$ref": "#/definitions/model.AuditConn"
  1087. }
  1088. }
  1089. ],
  1090. "responses": {
  1091. "200": {
  1092. "description": "OK",
  1093. "schema": {
  1094. "$ref": "#/definitions/response.Response"
  1095. }
  1096. },
  1097. "500": {
  1098. "description": "Internal Server Error",
  1099. "schema": {
  1100. "$ref": "#/definitions/response.Response"
  1101. }
  1102. }
  1103. }
  1104. }
  1105. },
  1106. "/admin/audit_conn/list": {
  1107. "get": {
  1108. "security": [
  1109. {
  1110. "token": []
  1111. }
  1112. ],
  1113. "description": "链接日志列表",
  1114. "consumes": [
  1115. "application/json"
  1116. ],
  1117. "produces": [
  1118. "application/json"
  1119. ],
  1120. "tags": [
  1121. "链接日志"
  1122. ],
  1123. "summary": "链接日志列表",
  1124. "parameters": [
  1125. {
  1126. "type": "integer",
  1127. "description": "页码",
  1128. "name": "page",
  1129. "in": "query"
  1130. },
  1131. {
  1132. "type": "integer",
  1133. "description": "页大小",
  1134. "name": "page_size",
  1135. "in": "query"
  1136. },
  1137. {
  1138. "type": "integer",
  1139. "description": "目标设备",
  1140. "name": "peer_id",
  1141. "in": "query"
  1142. },
  1143. {
  1144. "type": "integer",
  1145. "description": "来源设备",
  1146. "name": "from_peer",
  1147. "in": "query"
  1148. }
  1149. ],
  1150. "responses": {
  1151. "200": {
  1152. "description": "OK",
  1153. "schema": {
  1154. "allOf": [
  1155. {
  1156. "$ref": "#/definitions/response.Response"
  1157. },
  1158. {
  1159. "type": "object",
  1160. "properties": {
  1161. "data": {
  1162. "$ref": "#/definitions/model.AuditConnList"
  1163. }
  1164. }
  1165. }
  1166. ]
  1167. }
  1168. },
  1169. "500": {
  1170. "description": "Internal Server Error",
  1171. "schema": {
  1172. "$ref": "#/definitions/response.Response"
  1173. }
  1174. }
  1175. }
  1176. }
  1177. },
  1178. "/admin/audit_file/batchDelete": {
  1179. "post": {
  1180. "security": [
  1181. {
  1182. "token": []
  1183. }
  1184. ],
  1185. "description": "文件日志批量删除",
  1186. "consumes": [
  1187. "application/json"
  1188. ],
  1189. "produces": [
  1190. "application/json"
  1191. ],
  1192. "tags": [
  1193. "文件日志"
  1194. ],
  1195. "summary": "文件日志批量删除",
  1196. "parameters": [
  1197. {
  1198. "description": "文件日志",
  1199. "name": "body",
  1200. "in": "body",
  1201. "required": true,
  1202. "schema": {
  1203. "$ref": "#/definitions/admin.AuditFileLogIds"
  1204. }
  1205. }
  1206. ],
  1207. "responses": {
  1208. "200": {
  1209. "description": "OK",
  1210. "schema": {
  1211. "$ref": "#/definitions/response.Response"
  1212. }
  1213. },
  1214. "500": {
  1215. "description": "Internal Server Error",
  1216. "schema": {
  1217. "$ref": "#/definitions/response.Response"
  1218. }
  1219. }
  1220. }
  1221. }
  1222. },
  1223. "/admin/audit_file/delete": {
  1224. "post": {
  1225. "security": [
  1226. {
  1227. "token": []
  1228. }
  1229. ],
  1230. "description": "文件日志删除",
  1231. "consumes": [
  1232. "application/json"
  1233. ],
  1234. "produces": [
  1235. "application/json"
  1236. ],
  1237. "tags": [
  1238. "文件日志"
  1239. ],
  1240. "summary": "文件日志删除",
  1241. "parameters": [
  1242. {
  1243. "description": "文件日志信息",
  1244. "name": "body",
  1245. "in": "body",
  1246. "required": true,
  1247. "schema": {
  1248. "$ref": "#/definitions/model.AuditFile"
  1249. }
  1250. }
  1251. ],
  1252. "responses": {
  1253. "200": {
  1254. "description": "OK",
  1255. "schema": {
  1256. "$ref": "#/definitions/response.Response"
  1257. }
  1258. },
  1259. "500": {
  1260. "description": "Internal Server Error",
  1261. "schema": {
  1262. "$ref": "#/definitions/response.Response"
  1263. }
  1264. }
  1265. }
  1266. }
  1267. },
  1268. "/admin/audit_file/list": {
  1269. "get": {
  1270. "security": [
  1271. {
  1272. "token": []
  1273. }
  1274. ],
  1275. "description": "文件日志列表",
  1276. "consumes": [
  1277. "application/json"
  1278. ],
  1279. "produces": [
  1280. "application/json"
  1281. ],
  1282. "tags": [
  1283. "文件日志"
  1284. ],
  1285. "summary": "文件日志列表",
  1286. "parameters": [
  1287. {
  1288. "type": "integer",
  1289. "description": "页码",
  1290. "name": "page",
  1291. "in": "query"
  1292. },
  1293. {
  1294. "type": "integer",
  1295. "description": "页大小",
  1296. "name": "page_size",
  1297. "in": "query"
  1298. },
  1299. {
  1300. "type": "integer",
  1301. "description": "目标设备",
  1302. "name": "peer_id",
  1303. "in": "query"
  1304. },
  1305. {
  1306. "type": "integer",
  1307. "description": "来源设备",
  1308. "name": "from_peer",
  1309. "in": "query"
  1310. }
  1311. ],
  1312. "responses": {
  1313. "200": {
  1314. "description": "OK",
  1315. "schema": {
  1316. "allOf": [
  1317. {
  1318. "$ref": "#/definitions/response.Response"
  1319. },
  1320. {
  1321. "type": "object",
  1322. "properties": {
  1323. "data": {
  1324. "$ref": "#/definitions/model.AuditFileList"
  1325. }
  1326. }
  1327. }
  1328. ]
  1329. }
  1330. },
  1331. "500": {
  1332. "description": "Internal Server Error",
  1333. "schema": {
  1334. "$ref": "#/definitions/response.Response"
  1335. }
  1336. }
  1337. }
  1338. }
  1339. },
  1340. "/admin/config/admin": {
  1341. "get": {
  1342. "security": [
  1343. {
  1344. "token": []
  1345. }
  1346. ],
  1347. "description": "ADMIN服务配置",
  1348. "consumes": [
  1349. "application/json"
  1350. ],
  1351. "produces": [
  1352. "application/json"
  1353. ],
  1354. "tags": [
  1355. "ADMIN"
  1356. ],
  1357. "summary": "ADMIN服务配置",
  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/app": {
  1375. "get": {
  1376. "security": [
  1377. {
  1378. "token": []
  1379. }
  1380. ],
  1381. "description": "APP服务配置",
  1382. "consumes": [
  1383. "application/json"
  1384. ],
  1385. "produces": [
  1386. "application/json"
  1387. ],
  1388. "tags": [
  1389. "ADMIN"
  1390. ],
  1391. "summary": "APP服务配置",
  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/config/server": {
  1409. "get": {
  1410. "security": [
  1411. {
  1412. "token": []
  1413. }
  1414. ],
  1415. "description": "服务配置,给webclient提供api-server",
  1416. "consumes": [
  1417. "application/json"
  1418. ],
  1419. "produces": [
  1420. "application/json"
  1421. ],
  1422. "tags": [
  1423. "ADMIN"
  1424. ],
  1425. "summary": "RUSTDESK服务配置",
  1426. "responses": {
  1427. "200": {
  1428. "description": "OK",
  1429. "schema": {
  1430. "$ref": "#/definitions/response.Response"
  1431. }
  1432. },
  1433. "500": {
  1434. "description": "Internal Server Error",
  1435. "schema": {
  1436. "$ref": "#/definitions/response.Response"
  1437. }
  1438. }
  1439. }
  1440. }
  1441. },
  1442. "/admin/file/oss_token": {
  1443. "get": {
  1444. "security": [
  1445. {
  1446. "token": []
  1447. }
  1448. ],
  1449. "description": "获取ossToken",
  1450. "consumes": [
  1451. "application/json"
  1452. ],
  1453. "produces": [
  1454. "application/json"
  1455. ],
  1456. "tags": [
  1457. "文件"
  1458. ],
  1459. "summary": "获取ossToken",
  1460. "responses": {
  1461. "200": {
  1462. "description": "OK",
  1463. "schema": {
  1464. "$ref": "#/definitions/response.Response"
  1465. }
  1466. },
  1467. "500": {
  1468. "description": "Internal Server Error",
  1469. "schema": {
  1470. "$ref": "#/definitions/response.Response"
  1471. }
  1472. }
  1473. }
  1474. }
  1475. },
  1476. "/admin/file/upload": {
  1477. "post": {
  1478. "security": [
  1479. {
  1480. "token": []
  1481. }
  1482. ],
  1483. "description": "上传文件到本地",
  1484. "consumes": [
  1485. "multipart/form-data"
  1486. ],
  1487. "produces": [
  1488. "application/json"
  1489. ],
  1490. "tags": [
  1491. "文件"
  1492. ],
  1493. "summary": "上传文件到本地",
  1494. "parameters": [
  1495. {
  1496. "type": "file",
  1497. "description": "上传文件示例",
  1498. "name": "file",
  1499. "in": "formData",
  1500. "required": true
  1501. }
  1502. ],
  1503. "responses": {
  1504. "200": {
  1505. "description": "OK",
  1506. "schema": {
  1507. "$ref": "#/definitions/response.Response"
  1508. }
  1509. },
  1510. "500": {
  1511. "description": "Internal Server Error",
  1512. "schema": {
  1513. "$ref": "#/definitions/response.Response"
  1514. }
  1515. }
  1516. }
  1517. }
  1518. },
  1519. "/admin/group/create": {
  1520. "post": {
  1521. "security": [
  1522. {
  1523. "token": []
  1524. }
  1525. ],
  1526. "description": "创建群组",
  1527. "consumes": [
  1528. "application/json"
  1529. ],
  1530. "produces": [
  1531. "application/json"
  1532. ],
  1533. "tags": [
  1534. "群组"
  1535. ],
  1536. "summary": "创建群组",
  1537. "parameters": [
  1538. {
  1539. "description": "群组信息",
  1540. "name": "body",
  1541. "in": "body",
  1542. "required": true,
  1543. "schema": {
  1544. "$ref": "#/definitions/admin.GroupForm"
  1545. }
  1546. }
  1547. ],
  1548. "responses": {
  1549. "200": {
  1550. "description": "OK",
  1551. "schema": {
  1552. "allOf": [
  1553. {
  1554. "$ref": "#/definitions/response.Response"
  1555. },
  1556. {
  1557. "type": "object",
  1558. "properties": {
  1559. "data": {
  1560. "$ref": "#/definitions/model.Group"
  1561. }
  1562. }
  1563. }
  1564. ]
  1565. }
  1566. },
  1567. "500": {
  1568. "description": "Internal Server Error",
  1569. "schema": {
  1570. "$ref": "#/definitions/response.Response"
  1571. }
  1572. }
  1573. }
  1574. }
  1575. },
  1576. "/admin/group/delete": {
  1577. "post": {
  1578. "security": [
  1579. {
  1580. "token": []
  1581. }
  1582. ],
  1583. "description": "群组删除",
  1584. "consumes": [
  1585. "application/json"
  1586. ],
  1587. "produces": [
  1588. "application/json"
  1589. ],
  1590. "tags": [
  1591. "群组"
  1592. ],
  1593. "summary": "群组删除",
  1594. "parameters": [
  1595. {
  1596. "description": "群组信息",
  1597. "name": "body",
  1598. "in": "body",
  1599. "required": true,
  1600. "schema": {
  1601. "$ref": "#/definitions/admin.GroupForm"
  1602. }
  1603. }
  1604. ],
  1605. "responses": {
  1606. "200": {
  1607. "description": "OK",
  1608. "schema": {
  1609. "$ref": "#/definitions/response.Response"
  1610. }
  1611. },
  1612. "500": {
  1613. "description": "Internal Server Error",
  1614. "schema": {
  1615. "$ref": "#/definitions/response.Response"
  1616. }
  1617. }
  1618. }
  1619. }
  1620. },
  1621. "/admin/group/detail/{id}": {
  1622. "get": {
  1623. "security": [
  1624. {
  1625. "token": []
  1626. }
  1627. ],
  1628. "description": "群组详情",
  1629. "consumes": [
  1630. "application/json"
  1631. ],
  1632. "produces": [
  1633. "application/json"
  1634. ],
  1635. "tags": [
  1636. "群组"
  1637. ],
  1638. "summary": "群组详情",
  1639. "parameters": [
  1640. {
  1641. "type": "integer",
  1642. "description": "ID",
  1643. "name": "id",
  1644. "in": "path",
  1645. "required": true
  1646. }
  1647. ],
  1648. "responses": {
  1649. "200": {
  1650. "description": "OK",
  1651. "schema": {
  1652. "allOf": [
  1653. {
  1654. "$ref": "#/definitions/response.Response"
  1655. },
  1656. {
  1657. "type": "object",
  1658. "properties": {
  1659. "data": {
  1660. "$ref": "#/definitions/model.Group"
  1661. }
  1662. }
  1663. }
  1664. ]
  1665. }
  1666. },
  1667. "500": {
  1668. "description": "Internal Server Error",
  1669. "schema": {
  1670. "$ref": "#/definitions/response.Response"
  1671. }
  1672. }
  1673. }
  1674. }
  1675. },
  1676. "/admin/group/list": {
  1677. "get": {
  1678. "security": [
  1679. {
  1680. "token": []
  1681. }
  1682. ],
  1683. "description": "群组列表",
  1684. "consumes": [
  1685. "application/json"
  1686. ],
  1687. "produces": [
  1688. "application/json"
  1689. ],
  1690. "tags": [
  1691. "群组"
  1692. ],
  1693. "summary": "群组列表",
  1694. "parameters": [
  1695. {
  1696. "type": "integer",
  1697. "description": "页码",
  1698. "name": "page",
  1699. "in": "query"
  1700. },
  1701. {
  1702. "type": "integer",
  1703. "description": "页大小",
  1704. "name": "page_size",
  1705. "in": "query"
  1706. }
  1707. ],
  1708. "responses": {
  1709. "200": {
  1710. "description": "OK",
  1711. "schema": {
  1712. "allOf": [
  1713. {
  1714. "$ref": "#/definitions/response.Response"
  1715. },
  1716. {
  1717. "type": "object",
  1718. "properties": {
  1719. "data": {
  1720. "$ref": "#/definitions/model.GroupList"
  1721. }
  1722. }
  1723. }
  1724. ]
  1725. }
  1726. },
  1727. "500": {
  1728. "description": "Internal Server Error",
  1729. "schema": {
  1730. "$ref": "#/definitions/response.Response"
  1731. }
  1732. }
  1733. }
  1734. }
  1735. },
  1736. "/admin/group/update": {
  1737. "post": {
  1738. "security": [
  1739. {
  1740. "token": []
  1741. }
  1742. ],
  1743. "description": "群组编辑",
  1744. "consumes": [
  1745. "application/json"
  1746. ],
  1747. "produces": [
  1748. "application/json"
  1749. ],
  1750. "tags": [
  1751. "群组"
  1752. ],
  1753. "summary": "群组编辑",
  1754. "parameters": [
  1755. {
  1756. "description": "群组信息",
  1757. "name": "body",
  1758. "in": "body",
  1759. "required": true,
  1760. "schema": {
  1761. "$ref": "#/definitions/admin.GroupForm"
  1762. }
  1763. }
  1764. ],
  1765. "responses": {
  1766. "200": {
  1767. "description": "OK",
  1768. "schema": {
  1769. "allOf": [
  1770. {
  1771. "$ref": "#/definitions/response.Response"
  1772. },
  1773. {
  1774. "type": "object",
  1775. "properties": {
  1776. "data": {
  1777. "$ref": "#/definitions/model.Group"
  1778. }
  1779. }
  1780. }
  1781. ]
  1782. }
  1783. },
  1784. "500": {
  1785. "description": "Internal Server Error",
  1786. "schema": {
  1787. "$ref": "#/definitions/response.Response"
  1788. }
  1789. }
  1790. }
  1791. }
  1792. },
  1793. "/admin/login": {
  1794. "post": {
  1795. "security": [
  1796. {
  1797. "token": []
  1798. }
  1799. ],
  1800. "description": "登录",
  1801. "consumes": [
  1802. "application/json"
  1803. ],
  1804. "produces": [
  1805. "application/json"
  1806. ],
  1807. "tags": [
  1808. "登录"
  1809. ],
  1810. "summary": "登录",
  1811. "parameters": [
  1812. {
  1813. "description": "登录信息",
  1814. "name": "body",
  1815. "in": "body",
  1816. "required": true,
  1817. "schema": {
  1818. "$ref": "#/definitions/Gwen_http_request_admin.Login"
  1819. }
  1820. }
  1821. ],
  1822. "responses": {
  1823. "200": {
  1824. "description": "OK",
  1825. "schema": {
  1826. "allOf": [
  1827. {
  1828. "$ref": "#/definitions/response.Response"
  1829. },
  1830. {
  1831. "type": "object",
  1832. "properties": {
  1833. "data": {
  1834. "$ref": "#/definitions/admin.LoginPayload"
  1835. }
  1836. }
  1837. }
  1838. ]
  1839. }
  1840. },
  1841. "500": {
  1842. "description": "Internal Server Error",
  1843. "schema": {
  1844. "$ref": "#/definitions/response.Response"
  1845. }
  1846. }
  1847. }
  1848. }
  1849. },
  1850. "/admin/login-options": {
  1851. "post": {
  1852. "description": "登录选项",
  1853. "consumes": [
  1854. "application/json"
  1855. ],
  1856. "produces": [
  1857. "application/json"
  1858. ],
  1859. "tags": [
  1860. "登录"
  1861. ],
  1862. "summary": "登录选项",
  1863. "responses": {
  1864. "200": {
  1865. "description": "OK",
  1866. "schema": {
  1867. "type": "array",
  1868. "items": {
  1869. "type": "string"
  1870. }
  1871. }
  1872. },
  1873. "500": {
  1874. "description": "Internal Server Error",
  1875. "schema": {
  1876. "$ref": "#/definitions/response.ErrorResponse"
  1877. }
  1878. }
  1879. }
  1880. }
  1881. },
  1882. "/admin/login_log/delete": {
  1883. "post": {
  1884. "security": [
  1885. {
  1886. "token": []
  1887. }
  1888. ],
  1889. "description": "登录日志批量删除",
  1890. "consumes": [
  1891. "application/json"
  1892. ],
  1893. "produces": [
  1894. "application/json"
  1895. ],
  1896. "tags": [
  1897. "登录日志"
  1898. ],
  1899. "summary": "登录日志批量删除",
  1900. "parameters": [
  1901. {
  1902. "description": "登录日志",
  1903. "name": "body",
  1904. "in": "body",
  1905. "required": true,
  1906. "schema": {
  1907. "$ref": "#/definitions/admin.LoginLogIds"
  1908. }
  1909. }
  1910. ],
  1911. "responses": {
  1912. "200": {
  1913. "description": "OK",
  1914. "schema": {
  1915. "$ref": "#/definitions/response.Response"
  1916. }
  1917. },
  1918. "500": {
  1919. "description": "Internal Server Error",
  1920. "schema": {
  1921. "$ref": "#/definitions/response.Response"
  1922. }
  1923. }
  1924. }
  1925. }
  1926. },
  1927. "/admin/login_log/detail/{id}": {
  1928. "get": {
  1929. "security": [
  1930. {
  1931. "token": []
  1932. }
  1933. ],
  1934. "description": "登录日志详情",
  1935. "consumes": [
  1936. "application/json"
  1937. ],
  1938. "produces": [
  1939. "application/json"
  1940. ],
  1941. "tags": [
  1942. "登录日志"
  1943. ],
  1944. "summary": "登录日志详情",
  1945. "parameters": [
  1946. {
  1947. "type": "integer",
  1948. "description": "ID",
  1949. "name": "id",
  1950. "in": "path",
  1951. "required": true
  1952. }
  1953. ],
  1954. "responses": {
  1955. "200": {
  1956. "description": "OK",
  1957. "schema": {
  1958. "allOf": [
  1959. {
  1960. "$ref": "#/definitions/response.Response"
  1961. },
  1962. {
  1963. "type": "object",
  1964. "properties": {
  1965. "data": {
  1966. "$ref": "#/definitions/model.LoginLog"
  1967. }
  1968. }
  1969. }
  1970. ]
  1971. }
  1972. },
  1973. "500": {
  1974. "description": "Internal Server Error",
  1975. "schema": {
  1976. "$ref": "#/definitions/response.Response"
  1977. }
  1978. }
  1979. }
  1980. }
  1981. },
  1982. "/admin/login_log/list": {
  1983. "get": {
  1984. "security": [
  1985. {
  1986. "token": []
  1987. }
  1988. ],
  1989. "description": "登录日志列表",
  1990. "consumes": [
  1991. "application/json"
  1992. ],
  1993. "produces": [
  1994. "application/json"
  1995. ],
  1996. "tags": [
  1997. "登录日志"
  1998. ],
  1999. "summary": "登录日志列表",
  2000. "parameters": [
  2001. {
  2002. "type": "integer",
  2003. "description": "页码",
  2004. "name": "page",
  2005. "in": "query"
  2006. },
  2007. {
  2008. "type": "integer",
  2009. "description": "页大小",
  2010. "name": "page_size",
  2011. "in": "query"
  2012. },
  2013. {
  2014. "type": "integer",
  2015. "description": "用户ID",
  2016. "name": "user_id",
  2017. "in": "query"
  2018. }
  2019. ],
  2020. "responses": {
  2021. "200": {
  2022. "description": "OK",
  2023. "schema": {
  2024. "allOf": [
  2025. {
  2026. "$ref": "#/definitions/response.Response"
  2027. },
  2028. {
  2029. "type": "object",
  2030. "properties": {
  2031. "data": {
  2032. "$ref": "#/definitions/model.LoginLogList"
  2033. }
  2034. }
  2035. }
  2036. ]
  2037. }
  2038. },
  2039. "500": {
  2040. "description": "Internal Server Error",
  2041. "schema": {
  2042. "$ref": "#/definitions/response.Response"
  2043. }
  2044. }
  2045. }
  2046. }
  2047. },
  2048. "/admin/logout": {
  2049. "post": {
  2050. "description": "登出",
  2051. "consumes": [
  2052. "application/json"
  2053. ],
  2054. "produces": [
  2055. "application/json"
  2056. ],
  2057. "tags": [
  2058. "登录"
  2059. ],
  2060. "summary": "登出",
  2061. "responses": {
  2062. "200": {
  2063. "description": "OK",
  2064. "schema": {
  2065. "$ref": "#/definitions/response.Response"
  2066. }
  2067. },
  2068. "500": {
  2069. "description": "Internal Server Error",
  2070. "schema": {
  2071. "$ref": "#/definitions/response.Response"
  2072. }
  2073. }
  2074. }
  2075. }
  2076. },
  2077. "/admin/my/address_book/create": {
  2078. "post": {
  2079. "security": [
  2080. {
  2081. "token": []
  2082. }
  2083. ],
  2084. "description": "创建地址簿",
  2085. "consumes": [
  2086. "application/json"
  2087. ],
  2088. "produces": [
  2089. "application/json"
  2090. ],
  2091. "tags": [
  2092. "我的地址簿"
  2093. ],
  2094. "summary": "创建地址簿",
  2095. "parameters": [
  2096. {
  2097. "description": "地址簿信息",
  2098. "name": "body",
  2099. "in": "body",
  2100. "required": true,
  2101. "schema": {
  2102. "$ref": "#/definitions/admin.AddressBookForm"
  2103. }
  2104. }
  2105. ],
  2106. "responses": {
  2107. "200": {
  2108. "description": "OK",
  2109. "schema": {
  2110. "allOf": [
  2111. {
  2112. "$ref": "#/definitions/response.Response"
  2113. },
  2114. {
  2115. "type": "object",
  2116. "properties": {
  2117. "data": {
  2118. "$ref": "#/definitions/model.AddressBook"
  2119. }
  2120. }
  2121. }
  2122. ]
  2123. }
  2124. },
  2125. "500": {
  2126. "description": "Internal Server Error",
  2127. "schema": {
  2128. "$ref": "#/definitions/response.Response"
  2129. }
  2130. }
  2131. }
  2132. }
  2133. },
  2134. "/admin/my/address_book/delete": {
  2135. "post": {
  2136. "security": [
  2137. {
  2138. "token": []
  2139. }
  2140. ],
  2141. "description": "地址簿删除",
  2142. "consumes": [
  2143. "application/json"
  2144. ],
  2145. "produces": [
  2146. "application/json"
  2147. ],
  2148. "tags": [
  2149. "我的地址簿"
  2150. ],
  2151. "summary": "地址簿删除",
  2152. "parameters": [
  2153. {
  2154. "description": "地址簿信息",
  2155. "name": "body",
  2156. "in": "body",
  2157. "required": true,
  2158. "schema": {
  2159. "$ref": "#/definitions/admin.AddressBookForm"
  2160. }
  2161. }
  2162. ],
  2163. "responses": {
  2164. "200": {
  2165. "description": "OK",
  2166. "schema": {
  2167. "$ref": "#/definitions/response.Response"
  2168. }
  2169. },
  2170. "500": {
  2171. "description": "Internal Server Error",
  2172. "schema": {
  2173. "$ref": "#/definitions/response.Response"
  2174. }
  2175. }
  2176. }
  2177. }
  2178. },
  2179. "/admin/my/address_book/list": {
  2180. "get": {
  2181. "security": [
  2182. {
  2183. "token": []
  2184. }
  2185. ],
  2186. "description": "地址簿列表",
  2187. "consumes": [
  2188. "application/json"
  2189. ],
  2190. "produces": [
  2191. "application/json"
  2192. ],
  2193. "tags": [
  2194. "我的地址簿"
  2195. ],
  2196. "summary": "地址簿列表",
  2197. "parameters": [
  2198. {
  2199. "type": "integer",
  2200. "description": "页码",
  2201. "name": "page",
  2202. "in": "query"
  2203. },
  2204. {
  2205. "type": "integer",
  2206. "description": "页大小",
  2207. "name": "page_size",
  2208. "in": "query"
  2209. },
  2210. {
  2211. "type": "integer",
  2212. "description": "用户id",
  2213. "name": "user_id",
  2214. "in": "query"
  2215. }
  2216. ],
  2217. "responses": {
  2218. "200": {
  2219. "description": "OK",
  2220. "schema": {
  2221. "allOf": [
  2222. {
  2223. "$ref": "#/definitions/response.Response"
  2224. },
  2225. {
  2226. "type": "object",
  2227. "properties": {
  2228. "data": {
  2229. "$ref": "#/definitions/model.AddressBookList"
  2230. }
  2231. }
  2232. }
  2233. ]
  2234. }
  2235. },
  2236. "500": {
  2237. "description": "Internal Server Error",
  2238. "schema": {
  2239. "$ref": "#/definitions/response.Response"
  2240. }
  2241. }
  2242. }
  2243. }
  2244. },
  2245. "/admin/my/address_book/update": {
  2246. "post": {
  2247. "security": [
  2248. {
  2249. "token": []
  2250. }
  2251. ],
  2252. "description": "地址簿编辑",
  2253. "consumes": [
  2254. "application/json"
  2255. ],
  2256. "produces": [
  2257. "application/json"
  2258. ],
  2259. "tags": [
  2260. "我的地址簿"
  2261. ],
  2262. "summary": "地址簿编辑",
  2263. "parameters": [
  2264. {
  2265. "description": "地址簿信息",
  2266. "name": "body",
  2267. "in": "body",
  2268. "required": true,
  2269. "schema": {
  2270. "$ref": "#/definitions/admin.AddressBookForm"
  2271. }
  2272. }
  2273. ],
  2274. "responses": {
  2275. "200": {
  2276. "description": "OK",
  2277. "schema": {
  2278. "allOf": [
  2279. {
  2280. "$ref": "#/definitions/response.Response"
  2281. },
  2282. {
  2283. "type": "object",
  2284. "properties": {
  2285. "data": {
  2286. "$ref": "#/definitions/model.AddressBook"
  2287. }
  2288. }
  2289. }
  2290. ]
  2291. }
  2292. },
  2293. "500": {
  2294. "description": "Internal Server Error",
  2295. "schema": {
  2296. "$ref": "#/definitions/response.Response"
  2297. }
  2298. }
  2299. }
  2300. }
  2301. },
  2302. "/admin/my/address_book_collection/create": {
  2303. "post": {
  2304. "security": [
  2305. {
  2306. "token": []
  2307. }
  2308. ],
  2309. "description": "创建地址簿名称",
  2310. "consumes": [
  2311. "application/json"
  2312. ],
  2313. "produces": [
  2314. "application/json"
  2315. ],
  2316. "tags": [
  2317. "我的地址簿名称"
  2318. ],
  2319. "summary": "创建地址簿名称",
  2320. "parameters": [
  2321. {
  2322. "description": "地址簿名称信息",
  2323. "name": "body",
  2324. "in": "body",
  2325. "required": true,
  2326. "schema": {
  2327. "$ref": "#/definitions/model.AddressBookCollection"
  2328. }
  2329. }
  2330. ],
  2331. "responses": {
  2332. "200": {
  2333. "description": "OK",
  2334. "schema": {
  2335. "allOf": [
  2336. {
  2337. "$ref": "#/definitions/response.Response"
  2338. },
  2339. {
  2340. "type": "object",
  2341. "properties": {
  2342. "data": {
  2343. "$ref": "#/definitions/model.AddressBookCollection"
  2344. }
  2345. }
  2346. }
  2347. ]
  2348. }
  2349. },
  2350. "500": {
  2351. "description": "Internal Server Error",
  2352. "schema": {
  2353. "$ref": "#/definitions/response.Response"
  2354. }
  2355. }
  2356. }
  2357. }
  2358. },
  2359. "/admin/my/address_book_collection/delete": {
  2360. "post": {
  2361. "security": [
  2362. {
  2363. "token": []
  2364. }
  2365. ],
  2366. "description": "地址簿名称删除",
  2367. "consumes": [
  2368. "application/json"
  2369. ],
  2370. "produces": [
  2371. "application/json"
  2372. ],
  2373. "tags": [
  2374. "我的地址簿名称"
  2375. ],
  2376. "summary": "地址簿名称删除",
  2377. "parameters": [
  2378. {
  2379. "description": "地址簿名称信息",
  2380. "name": "body",
  2381. "in": "body",
  2382. "required": true,
  2383. "schema": {
  2384. "$ref": "#/definitions/model.AddressBookCollection"
  2385. }
  2386. }
  2387. ],
  2388. "responses": {
  2389. "200": {
  2390. "description": "OK",
  2391. "schema": {
  2392. "$ref": "#/definitions/response.Response"
  2393. }
  2394. },
  2395. "500": {
  2396. "description": "Internal Server Error",
  2397. "schema": {
  2398. "$ref": "#/definitions/response.Response"
  2399. }
  2400. }
  2401. }
  2402. }
  2403. },
  2404. "/admin/my/address_book_collection/list": {
  2405. "get": {
  2406. "security": [
  2407. {
  2408. "token": []
  2409. }
  2410. ],
  2411. "description": "地址簿名称列表",
  2412. "consumes": [
  2413. "application/json"
  2414. ],
  2415. "produces": [
  2416. "application/json"
  2417. ],
  2418. "tags": [
  2419. "我的地址簿名称"
  2420. ],
  2421. "summary": "地址簿名称列表",
  2422. "parameters": [
  2423. {
  2424. "type": "integer",
  2425. "description": "页码",
  2426. "name": "page",
  2427. "in": "query"
  2428. },
  2429. {
  2430. "type": "integer",
  2431. "description": "页大小",
  2432. "name": "page_size",
  2433. "in": "query"
  2434. }
  2435. ],
  2436. "responses": {
  2437. "200": {
  2438. "description": "OK",
  2439. "schema": {
  2440. "allOf": [
  2441. {
  2442. "$ref": "#/definitions/response.Response"
  2443. },
  2444. {
  2445. "type": "object",
  2446. "properties": {
  2447. "data": {
  2448. "$ref": "#/definitions/model.AddressBookCollectionList"
  2449. }
  2450. }
  2451. }
  2452. ]
  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_collection/update": {
  2465. "post": {
  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. "description": "地址簿名称信息",
  2485. "name": "body",
  2486. "in": "body",
  2487. "required": true,
  2488. "schema": {
  2489. "$ref": "#/definitions/model.AddressBookCollection"
  2490. }
  2491. }
  2492. ],
  2493. "responses": {
  2494. "200": {
  2495. "description": "OK",
  2496. "schema": {
  2497. "allOf": [
  2498. {
  2499. "$ref": "#/definitions/response.Response"
  2500. },
  2501. {
  2502. "type": "object",
  2503. "properties": {
  2504. "data": {
  2505. "$ref": "#/definitions/model.AddressBookCollection"
  2506. }
  2507. }
  2508. }
  2509. ]
  2510. }
  2511. },
  2512. "500": {
  2513. "description": "Internal Server Error",
  2514. "schema": {
  2515. "$ref": "#/definitions/response.Response"
  2516. }
  2517. }
  2518. }
  2519. }
  2520. },
  2521. "/admin/my/address_book_collection_rule/create": {
  2522. "post": {
  2523. "security": [
  2524. {
  2525. "token": []
  2526. }
  2527. ],
  2528. "description": "创建地址簿规则",
  2529. "consumes": [
  2530. "application/json"
  2531. ],
  2532. "produces": [
  2533. "application/json"
  2534. ],
  2535. "tags": [
  2536. "我的地址簿规则"
  2537. ],
  2538. "summary": "创建地址簿规则",
  2539. "parameters": [
  2540. {
  2541. "description": "地址簿规则信息",
  2542. "name": "body",
  2543. "in": "body",
  2544. "required": true,
  2545. "schema": {
  2546. "$ref": "#/definitions/model.AddressBookCollectionRule"
  2547. }
  2548. }
  2549. ],
  2550. "responses": {
  2551. "200": {
  2552. "description": "OK",
  2553. "schema": {
  2554. "allOf": [
  2555. {
  2556. "$ref": "#/definitions/response.Response"
  2557. },
  2558. {
  2559. "type": "object",
  2560. "properties": {
  2561. "data": {
  2562. "$ref": "#/definitions/model.AddressBookCollection"
  2563. }
  2564. }
  2565. }
  2566. ]
  2567. }
  2568. },
  2569. "500": {
  2570. "description": "Internal Server Error",
  2571. "schema": {
  2572. "$ref": "#/definitions/response.Response"
  2573. }
  2574. }
  2575. }
  2576. }
  2577. },
  2578. "/admin/my/address_book_collection_rule/delete": {
  2579. "post": {
  2580. "security": [
  2581. {
  2582. "token": []
  2583. }
  2584. ],
  2585. "description": "地址簿规则删除",
  2586. "consumes": [
  2587. "application/json"
  2588. ],
  2589. "produces": [
  2590. "application/json"
  2591. ],
  2592. "tags": [
  2593. "我的地址簿规则"
  2594. ],
  2595. "summary": "地址簿规则删除",
  2596. "parameters": [
  2597. {
  2598. "description": "地址簿规则信息",
  2599. "name": "body",
  2600. "in": "body",
  2601. "required": true,
  2602. "schema": {
  2603. "$ref": "#/definitions/model.AddressBookCollectionRule"
  2604. }
  2605. }
  2606. ],
  2607. "responses": {
  2608. "200": {
  2609. "description": "OK",
  2610. "schema": {
  2611. "$ref": "#/definitions/response.Response"
  2612. }
  2613. },
  2614. "500": {
  2615. "description": "Internal Server Error",
  2616. "schema": {
  2617. "$ref": "#/definitions/response.Response"
  2618. }
  2619. }
  2620. }
  2621. }
  2622. },
  2623. "/admin/my/address_book_collection_rule/list": {
  2624. "get": {
  2625. "security": [
  2626. {
  2627. "token": []
  2628. }
  2629. ],
  2630. "description": "地址簿规则列表",
  2631. "consumes": [
  2632. "application/json"
  2633. ],
  2634. "produces": [
  2635. "application/json"
  2636. ],
  2637. "tags": [
  2638. "我的地址簿规则"
  2639. ],
  2640. "summary": "地址簿规则列表",
  2641. "parameters": [
  2642. {
  2643. "type": "integer",
  2644. "description": "页码",
  2645. "name": "page",
  2646. "in": "query"
  2647. },
  2648. {
  2649. "type": "integer",
  2650. "description": "页大小",
  2651. "name": "page_size",
  2652. "in": "query"
  2653. },
  2654. {
  2655. "type": "integer",
  2656. "description": "是否是我的",
  2657. "name": "is_my",
  2658. "in": "query"
  2659. },
  2660. {
  2661. "type": "integer",
  2662. "description": "用户id",
  2663. "name": "user_id",
  2664. "in": "query"
  2665. },
  2666. {
  2667. "type": "integer",
  2668. "description": "地址簿集合id",
  2669. "name": "collection_id",
  2670. "in": "query"
  2671. }
  2672. ],
  2673. "responses": {
  2674. "200": {
  2675. "description": "OK",
  2676. "schema": {
  2677. "allOf": [
  2678. {
  2679. "$ref": "#/definitions/response.Response"
  2680. },
  2681. {
  2682. "type": "object",
  2683. "properties": {
  2684. "data": {
  2685. "$ref": "#/definitions/model.AddressBookCollectionList"
  2686. }
  2687. }
  2688. }
  2689. ]
  2690. }
  2691. },
  2692. "500": {
  2693. "description": "Internal Server Error",
  2694. "schema": {
  2695. "$ref": "#/definitions/response.Response"
  2696. }
  2697. }
  2698. }
  2699. }
  2700. },
  2701. "/admin/my/address_book_collection_rule/update": {
  2702. "post": {
  2703. "security": [
  2704. {
  2705. "token": []
  2706. }
  2707. ],
  2708. "description": "地址簿规则编辑",
  2709. "consumes": [
  2710. "application/json"
  2711. ],
  2712. "produces": [
  2713. "application/json"
  2714. ],
  2715. "tags": [
  2716. "我的地址簿规则"
  2717. ],
  2718. "summary": "地址簿规则编辑",
  2719. "parameters": [
  2720. {
  2721. "description": "地址簿规则信息",
  2722. "name": "body",
  2723. "in": "body",
  2724. "required": true,
  2725. "schema": {
  2726. "$ref": "#/definitions/model.AddressBookCollectionRule"
  2727. }
  2728. }
  2729. ],
  2730. "responses": {
  2731. "200": {
  2732. "description": "OK",
  2733. "schema": {
  2734. "allOf": [
  2735. {
  2736. "$ref": "#/definitions/response.Response"
  2737. },
  2738. {
  2739. "type": "object",
  2740. "properties": {
  2741. "data": {
  2742. "$ref": "#/definitions/model.AddressBookCollection"
  2743. }
  2744. }
  2745. }
  2746. ]
  2747. }
  2748. },
  2749. "500": {
  2750. "description": "Internal Server Error",
  2751. "schema": {
  2752. "$ref": "#/definitions/response.Response"
  2753. }
  2754. }
  2755. }
  2756. }
  2757. },
  2758. "/admin/my/peer/list": {
  2759. "get": {
  2760. "security": [
  2761. {
  2762. "token": []
  2763. }
  2764. ],
  2765. "description": "设备列表",
  2766. "consumes": [
  2767. "application/json"
  2768. ],
  2769. "produces": [
  2770. "application/json"
  2771. ],
  2772. "tags": [
  2773. "我的设备"
  2774. ],
  2775. "summary": "设备列表",
  2776. "parameters": [
  2777. {
  2778. "type": "integer",
  2779. "description": "页码",
  2780. "name": "page",
  2781. "in": "query"
  2782. },
  2783. {
  2784. "type": "integer",
  2785. "description": "页大小",
  2786. "name": "page_size",
  2787. "in": "query"
  2788. },
  2789. {
  2790. "type": "integer",
  2791. "description": "时间",
  2792. "name": "time_ago",
  2793. "in": "query"
  2794. },
  2795. {
  2796. "type": "string",
  2797. "description": "ID",
  2798. "name": "id",
  2799. "in": "query"
  2800. },
  2801. {
  2802. "type": "string",
  2803. "description": "主机名",
  2804. "name": "hostname",
  2805. "in": "query"
  2806. },
  2807. {
  2808. "type": "string",
  2809. "description": "uuids 用逗号分隔",
  2810. "name": "uuids",
  2811. "in": "query"
  2812. }
  2813. ],
  2814. "responses": {
  2815. "200": {
  2816. "description": "OK",
  2817. "schema": {
  2818. "allOf": [
  2819. {
  2820. "$ref": "#/definitions/response.Response"
  2821. },
  2822. {
  2823. "type": "object",
  2824. "properties": {
  2825. "data": {
  2826. "$ref": "#/definitions/model.PeerList"
  2827. }
  2828. }
  2829. }
  2830. ]
  2831. }
  2832. },
  2833. "500": {
  2834. "description": "Internal Server Error",
  2835. "schema": {
  2836. "$ref": "#/definitions/response.Response"
  2837. }
  2838. }
  2839. }
  2840. }
  2841. },
  2842. "/admin/my/share_record/batchDelete": {
  2843. "post": {
  2844. "security": [
  2845. {
  2846. "token": []
  2847. }
  2848. ],
  2849. "description": "批量删除我的分享记录",
  2850. "consumes": [
  2851. "application/json"
  2852. ],
  2853. "produces": [
  2854. "application/json"
  2855. ],
  2856. "tags": [
  2857. "我的"
  2858. ],
  2859. "summary": "批量删除我的分享记录",
  2860. "parameters": [
  2861. {
  2862. "description": "id",
  2863. "name": "body",
  2864. "in": "body",
  2865. "required": true,
  2866. "schema": {
  2867. "$ref": "#/definitions/admin.PeerShareRecordBatchDeleteForm"
  2868. }
  2869. }
  2870. ],
  2871. "responses": {
  2872. "200": {
  2873. "description": "OK",
  2874. "schema": {
  2875. "$ref": "#/definitions/response.Response"
  2876. }
  2877. },
  2878. "500": {
  2879. "description": "Internal Server Error",
  2880. "schema": {
  2881. "$ref": "#/definitions/response.Response"
  2882. }
  2883. }
  2884. }
  2885. }
  2886. },
  2887. "/admin/my/share_record/delete": {
  2888. "post": {
  2889. "security": [
  2890. {
  2891. "token": []
  2892. }
  2893. ],
  2894. "description": "分享记录删除",
  2895. "consumes": [
  2896. "application/json"
  2897. ],
  2898. "produces": [
  2899. "application/json"
  2900. ],
  2901. "tags": [
  2902. "我的分享记录"
  2903. ],
  2904. "summary": "分享记录删除",
  2905. "parameters": [
  2906. {
  2907. "description": "分享记录信息",
  2908. "name": "body",
  2909. "in": "body",
  2910. "required": true,
  2911. "schema": {
  2912. "$ref": "#/definitions/admin.ShareRecordForm"
  2913. }
  2914. }
  2915. ],
  2916. "responses": {
  2917. "200": {
  2918. "description": "OK",
  2919. "schema": {
  2920. "$ref": "#/definitions/response.Response"
  2921. }
  2922. },
  2923. "500": {
  2924. "description": "Internal Server Error",
  2925. "schema": {
  2926. "$ref": "#/definitions/response.Response"
  2927. }
  2928. }
  2929. }
  2930. }
  2931. },
  2932. "/admin/my/share_record/list": {
  2933. "get": {
  2934. "security": [
  2935. {
  2936. "token": []
  2937. }
  2938. ],
  2939. "description": "分享记录列表",
  2940. "consumes": [
  2941. "application/json"
  2942. ],
  2943. "produces": [
  2944. "application/json"
  2945. ],
  2946. "tags": [
  2947. "我的分享记录"
  2948. ],
  2949. "summary": "分享记录列表",
  2950. "parameters": [
  2951. {
  2952. "type": "integer",
  2953. "description": "页码",
  2954. "name": "page",
  2955. "in": "query"
  2956. },
  2957. {
  2958. "type": "integer",
  2959. "description": "页大小",
  2960. "name": "page_size",
  2961. "in": "query"
  2962. }
  2963. ],
  2964. "responses": {
  2965. "200": {
  2966. "description": "OK",
  2967. "schema": {
  2968. "$ref": "#/definitions/response.Response"
  2969. }
  2970. },
  2971. "500": {
  2972. "description": "Internal Server Error",
  2973. "schema": {
  2974. "$ref": "#/definitions/response.Response"
  2975. }
  2976. }
  2977. }
  2978. }
  2979. },
  2980. "/admin/my/tag/create": {
  2981. "post": {
  2982. "security": [
  2983. {
  2984. "token": []
  2985. }
  2986. ],
  2987. "description": "创建标签",
  2988. "consumes": [
  2989. "application/json"
  2990. ],
  2991. "produces": [
  2992. "application/json"
  2993. ],
  2994. "tags": [
  2995. "我的标签"
  2996. ],
  2997. "summary": "创建标签",
  2998. "parameters": [
  2999. {
  3000. "description": "标签信息",
  3001. "name": "body",
  3002. "in": "body",
  3003. "required": true,
  3004. "schema": {
  3005. "$ref": "#/definitions/admin.TagForm"
  3006. }
  3007. }
  3008. ],
  3009. "responses": {
  3010. "200": {
  3011. "description": "OK",
  3012. "schema": {
  3013. "allOf": [
  3014. {
  3015. "$ref": "#/definitions/response.Response"
  3016. },
  3017. {
  3018. "type": "object",
  3019. "properties": {
  3020. "data": {
  3021. "$ref": "#/definitions/model.Tag"
  3022. }
  3023. }
  3024. }
  3025. ]
  3026. }
  3027. },
  3028. "500": {
  3029. "description": "Internal Server Error",
  3030. "schema": {
  3031. "$ref": "#/definitions/response.Response"
  3032. }
  3033. }
  3034. }
  3035. }
  3036. },
  3037. "/admin/my/tag/delete": {
  3038. "post": {
  3039. "security": [
  3040. {
  3041. "token": []
  3042. }
  3043. ],
  3044. "description": "标签删除",
  3045. "consumes": [
  3046. "application/json"
  3047. ],
  3048. "produces": [
  3049. "application/json"
  3050. ],
  3051. "tags": [
  3052. "标签"
  3053. ],
  3054. "summary": "标签删除",
  3055. "parameters": [
  3056. {
  3057. "description": "标签信息",
  3058. "name": "body",
  3059. "in": "body",
  3060. "required": true,
  3061. "schema": {
  3062. "$ref": "#/definitions/admin.TagForm"
  3063. }
  3064. }
  3065. ],
  3066. "responses": {
  3067. "200": {
  3068. "description": "OK",
  3069. "schema": {
  3070. "$ref": "#/definitions/response.Response"
  3071. }
  3072. },
  3073. "500": {
  3074. "description": "Internal Server Error",
  3075. "schema": {
  3076. "$ref": "#/definitions/response.Response"
  3077. }
  3078. }
  3079. }
  3080. }
  3081. },
  3082. "/admin/my/tag/list": {
  3083. "get": {
  3084. "security": [
  3085. {
  3086. "token": []
  3087. }
  3088. ],
  3089. "description": "标签列表",
  3090. "consumes": [
  3091. "application/json"
  3092. ],
  3093. "produces": [
  3094. "application/json"
  3095. ],
  3096. "tags": [
  3097. "我的标签"
  3098. ],
  3099. "summary": "标签列表",
  3100. "parameters": [
  3101. {
  3102. "type": "integer",
  3103. "description": "页码",
  3104. "name": "page",
  3105. "in": "query"
  3106. },
  3107. {
  3108. "type": "integer",
  3109. "description": "页大小",
  3110. "name": "page_size",
  3111. "in": "query"
  3112. },
  3113. {
  3114. "type": "integer",
  3115. "description": "是否是我的",
  3116. "name": "is_my",
  3117. "in": "query"
  3118. },
  3119. {
  3120. "type": "integer",
  3121. "description": "用户id",
  3122. "name": "user_id",
  3123. "in": "query"
  3124. }
  3125. ],
  3126. "responses": {
  3127. "200": {
  3128. "description": "OK",
  3129. "schema": {
  3130. "allOf": [
  3131. {
  3132. "$ref": "#/definitions/response.Response"
  3133. },
  3134. {
  3135. "type": "object",
  3136. "properties": {
  3137. "data": {
  3138. "$ref": "#/definitions/model.TagList"
  3139. }
  3140. }
  3141. }
  3142. ]
  3143. }
  3144. },
  3145. "500": {
  3146. "description": "Internal Server Error",
  3147. "schema": {
  3148. "$ref": "#/definitions/response.Response"
  3149. }
  3150. }
  3151. }
  3152. }
  3153. },
  3154. "/admin/my/tag/update": {
  3155. "post": {
  3156. "security": [
  3157. {
  3158. "token": []
  3159. }
  3160. ],
  3161. "description": "标签编辑",
  3162. "consumes": [
  3163. "application/json"
  3164. ],
  3165. "produces": [
  3166. "application/json"
  3167. ],
  3168. "tags": [
  3169. "我的标签"
  3170. ],
  3171. "summary": "标签编辑",
  3172. "parameters": [
  3173. {
  3174. "description": "标签信息",
  3175. "name": "body",
  3176. "in": "body",
  3177. "required": true,
  3178. "schema": {
  3179. "$ref": "#/definitions/admin.TagForm"
  3180. }
  3181. }
  3182. ],
  3183. "responses": {
  3184. "200": {
  3185. "description": "OK",
  3186. "schema": {
  3187. "allOf": [
  3188. {
  3189. "$ref": "#/definitions/response.Response"
  3190. },
  3191. {
  3192. "type": "object",
  3193. "properties": {
  3194. "data": {
  3195. "$ref": "#/definitions/model.Tag"
  3196. }
  3197. }
  3198. }
  3199. ]
  3200. }
  3201. },
  3202. "500": {
  3203. "description": "Internal Server Error",
  3204. "schema": {
  3205. "$ref": "#/definitions/response.Response"
  3206. }
  3207. }
  3208. }
  3209. }
  3210. },
  3211. "/admin/oauth/create": {
  3212. "post": {
  3213. "security": [
  3214. {
  3215. "token": []
  3216. }
  3217. ],
  3218. "description": "创建Oauth",
  3219. "consumes": [
  3220. "application/json"
  3221. ],
  3222. "produces": [
  3223. "application/json"
  3224. ],
  3225. "tags": [
  3226. "Oauth"
  3227. ],
  3228. "summary": "创建Oauth",
  3229. "parameters": [
  3230. {
  3231. "description": "Oauth信息",
  3232. "name": "body",
  3233. "in": "body",
  3234. "required": true,
  3235. "schema": {
  3236. "$ref": "#/definitions/admin.OauthForm"
  3237. }
  3238. }
  3239. ],
  3240. "responses": {
  3241. "200": {
  3242. "description": "OK",
  3243. "schema": {
  3244. "allOf": [
  3245. {
  3246. "$ref": "#/definitions/response.Response"
  3247. },
  3248. {
  3249. "type": "object",
  3250. "properties": {
  3251. "data": {
  3252. "$ref": "#/definitions/model.Oauth"
  3253. }
  3254. }
  3255. }
  3256. ]
  3257. }
  3258. },
  3259. "500": {
  3260. "description": "Internal Server Error",
  3261. "schema": {
  3262. "$ref": "#/definitions/response.Response"
  3263. }
  3264. }
  3265. }
  3266. }
  3267. },
  3268. "/admin/oauth/delete": {
  3269. "post": {
  3270. "security": [
  3271. {
  3272. "token": []
  3273. }
  3274. ],
  3275. "description": "Oauth删除",
  3276. "consumes": [
  3277. "application/json"
  3278. ],
  3279. "produces": [
  3280. "application/json"
  3281. ],
  3282. "tags": [
  3283. "Oauth"
  3284. ],
  3285. "summary": "Oauth删除",
  3286. "parameters": [
  3287. {
  3288. "description": "Oauth信息",
  3289. "name": "body",
  3290. "in": "body",
  3291. "required": true,
  3292. "schema": {
  3293. "$ref": "#/definitions/admin.OauthForm"
  3294. }
  3295. }
  3296. ],
  3297. "responses": {
  3298. "200": {
  3299. "description": "OK",
  3300. "schema": {
  3301. "$ref": "#/definitions/response.Response"
  3302. }
  3303. },
  3304. "500": {
  3305. "description": "Internal Server Error",
  3306. "schema": {
  3307. "$ref": "#/definitions/response.Response"
  3308. }
  3309. }
  3310. }
  3311. }
  3312. },
  3313. "/admin/oauth/detail/{id}": {
  3314. "get": {
  3315. "security": [
  3316. {
  3317. "token": []
  3318. }
  3319. ],
  3320. "description": "Oauth详情",
  3321. "consumes": [
  3322. "application/json"
  3323. ],
  3324. "produces": [
  3325. "application/json"
  3326. ],
  3327. "tags": [
  3328. "Oauth"
  3329. ],
  3330. "summary": "Oauth详情",
  3331. "parameters": [
  3332. {
  3333. "type": "integer",
  3334. "description": "ID",
  3335. "name": "id",
  3336. "in": "path",
  3337. "required": true
  3338. }
  3339. ],
  3340. "responses": {
  3341. "200": {
  3342. "description": "OK",
  3343. "schema": {
  3344. "allOf": [
  3345. {
  3346. "$ref": "#/definitions/response.Response"
  3347. },
  3348. {
  3349. "type": "object",
  3350. "properties": {
  3351. "data": {
  3352. "$ref": "#/definitions/model.Oauth"
  3353. }
  3354. }
  3355. }
  3356. ]
  3357. }
  3358. },
  3359. "500": {
  3360. "description": "Internal Server Error",
  3361. "schema": {
  3362. "$ref": "#/definitions/response.Response"
  3363. }
  3364. }
  3365. }
  3366. }
  3367. },
  3368. "/admin/oauth/list": {
  3369. "get": {
  3370. "security": [
  3371. {
  3372. "token": []
  3373. }
  3374. ],
  3375. "description": "Oauth列表",
  3376. "consumes": [
  3377. "application/json"
  3378. ],
  3379. "produces": [
  3380. "application/json"
  3381. ],
  3382. "tags": [
  3383. "Oauth"
  3384. ],
  3385. "summary": "Oauth列表",
  3386. "parameters": [
  3387. {
  3388. "type": "integer",
  3389. "description": "页码",
  3390. "name": "page",
  3391. "in": "query"
  3392. },
  3393. {
  3394. "type": "integer",
  3395. "description": "页大小",
  3396. "name": "page_size",
  3397. "in": "query"
  3398. }
  3399. ],
  3400. "responses": {
  3401. "200": {
  3402. "description": "OK",
  3403. "schema": {
  3404. "allOf": [
  3405. {
  3406. "$ref": "#/definitions/response.Response"
  3407. },
  3408. {
  3409. "type": "object",
  3410. "properties": {
  3411. "data": {
  3412. "$ref": "#/definitions/model.OauthList"
  3413. }
  3414. }
  3415. }
  3416. ]
  3417. }
  3418. },
  3419. "500": {
  3420. "description": "Internal Server Error",
  3421. "schema": {
  3422. "$ref": "#/definitions/response.Response"
  3423. }
  3424. }
  3425. }
  3426. }
  3427. },
  3428. "/admin/oauth/update": {
  3429. "post": {
  3430. "security": [
  3431. {
  3432. "token": []
  3433. }
  3434. ],
  3435. "description": "Oauth编辑",
  3436. "consumes": [
  3437. "application/json"
  3438. ],
  3439. "produces": [
  3440. "application/json"
  3441. ],
  3442. "tags": [
  3443. "Oauth"
  3444. ],
  3445. "summary": "Oauth编辑",
  3446. "parameters": [
  3447. {
  3448. "description": "Oauth信息",
  3449. "name": "body",
  3450. "in": "body",
  3451. "required": true,
  3452. "schema": {
  3453. "$ref": "#/definitions/admin.OauthForm"
  3454. }
  3455. }
  3456. ],
  3457. "responses": {
  3458. "200": {
  3459. "description": "OK",
  3460. "schema": {
  3461. "allOf": [
  3462. {
  3463. "$ref": "#/definitions/response.Response"
  3464. },
  3465. {
  3466. "type": "object",
  3467. "properties": {
  3468. "data": {
  3469. "$ref": "#/definitions/model.OauthList"
  3470. }
  3471. }
  3472. }
  3473. ]
  3474. }
  3475. },
  3476. "500": {
  3477. "description": "Internal Server Error",
  3478. "schema": {
  3479. "$ref": "#/definitions/response.Response"
  3480. }
  3481. }
  3482. }
  3483. }
  3484. },
  3485. "/admin/oidc/auth": {
  3486. "post": {
  3487. "description": "OidcAuth",
  3488. "consumes": [
  3489. "application/json"
  3490. ],
  3491. "produces": [
  3492. "application/json"
  3493. ],
  3494. "tags": [
  3495. "Oauth"
  3496. ],
  3497. "summary": "OidcAuth",
  3498. "responses": {}
  3499. }
  3500. },
  3501. "/admin/oidc/auth-query": {
  3502. "get": {
  3503. "description": "OidcAuthQuery",
  3504. "consumes": [
  3505. "application/json"
  3506. ],
  3507. "produces": [
  3508. "application/json"
  3509. ],
  3510. "tags": [
  3511. "Oauth"
  3512. ],
  3513. "summary": "OidcAuthQuery",
  3514. "responses": {
  3515. "200": {
  3516. "description": "OK",
  3517. "schema": {
  3518. "allOf": [
  3519. {
  3520. "$ref": "#/definitions/response.Response"
  3521. },
  3522. {
  3523. "type": "object",
  3524. "properties": {
  3525. "data": {
  3526. "$ref": "#/definitions/admin.LoginPayload"
  3527. }
  3528. }
  3529. }
  3530. ]
  3531. }
  3532. },
  3533. "500": {
  3534. "description": "Internal Server Error",
  3535. "schema": {
  3536. "$ref": "#/definitions/response.Response"
  3537. }
  3538. }
  3539. }
  3540. }
  3541. },
  3542. "/admin/peer/batchDelete": {
  3543. "post": {
  3544. "security": [
  3545. {
  3546. "token": []
  3547. }
  3548. ],
  3549. "description": "批量设备删除",
  3550. "consumes": [
  3551. "application/json"
  3552. ],
  3553. "produces": [
  3554. "application/json"
  3555. ],
  3556. "tags": [
  3557. "设备"
  3558. ],
  3559. "summary": "批量设备删除",
  3560. "parameters": [
  3561. {
  3562. "description": "设备id",
  3563. "name": "body",
  3564. "in": "body",
  3565. "required": true,
  3566. "schema": {
  3567. "$ref": "#/definitions/admin.PeerBatchDeleteForm"
  3568. }
  3569. }
  3570. ],
  3571. "responses": {
  3572. "200": {
  3573. "description": "OK",
  3574. "schema": {
  3575. "$ref": "#/definitions/response.Response"
  3576. }
  3577. },
  3578. "500": {
  3579. "description": "Internal Server Error",
  3580. "schema": {
  3581. "$ref": "#/definitions/response.Response"
  3582. }
  3583. }
  3584. }
  3585. }
  3586. },
  3587. "/admin/peer/create": {
  3588. "post": {
  3589. "security": [
  3590. {
  3591. "token": []
  3592. }
  3593. ],
  3594. "description": "创建设备",
  3595. "consumes": [
  3596. "application/json"
  3597. ],
  3598. "produces": [
  3599. "application/json"
  3600. ],
  3601. "tags": [
  3602. "设备"
  3603. ],
  3604. "summary": "创建设备",
  3605. "parameters": [
  3606. {
  3607. "description": "设备信息",
  3608. "name": "body",
  3609. "in": "body",
  3610. "required": true,
  3611. "schema": {
  3612. "$ref": "#/definitions/admin.PeerForm"
  3613. }
  3614. }
  3615. ],
  3616. "responses": {
  3617. "200": {
  3618. "description": "OK",
  3619. "schema": {
  3620. "allOf": [
  3621. {
  3622. "$ref": "#/definitions/response.Response"
  3623. },
  3624. {
  3625. "type": "object",
  3626. "properties": {
  3627. "data": {
  3628. "$ref": "#/definitions/model.Peer"
  3629. }
  3630. }
  3631. }
  3632. ]
  3633. }
  3634. },
  3635. "500": {
  3636. "description": "Internal Server Error",
  3637. "schema": {
  3638. "$ref": "#/definitions/response.Response"
  3639. }
  3640. }
  3641. }
  3642. }
  3643. },
  3644. "/admin/peer/delete": {
  3645. "post": {
  3646. "security": [
  3647. {
  3648. "token": []
  3649. }
  3650. ],
  3651. "description": "设备删除",
  3652. "consumes": [
  3653. "application/json"
  3654. ],
  3655. "produces": [
  3656. "application/json"
  3657. ],
  3658. "tags": [
  3659. "设备"
  3660. ],
  3661. "summary": "设备删除",
  3662. "parameters": [
  3663. {
  3664. "description": "设备信息",
  3665. "name": "body",
  3666. "in": "body",
  3667. "required": true,
  3668. "schema": {
  3669. "$ref": "#/definitions/admin.PeerForm"
  3670. }
  3671. }
  3672. ],
  3673. "responses": {
  3674. "200": {
  3675. "description": "OK",
  3676. "schema": {
  3677. "$ref": "#/definitions/response.Response"
  3678. }
  3679. },
  3680. "500": {
  3681. "description": "Internal Server Error",
  3682. "schema": {
  3683. "$ref": "#/definitions/response.Response"
  3684. }
  3685. }
  3686. }
  3687. }
  3688. },
  3689. "/admin/peer/detail/{id}": {
  3690. "get": {
  3691. "security": [
  3692. {
  3693. "token": []
  3694. }
  3695. ],
  3696. "description": "设备详情",
  3697. "consumes": [
  3698. "application/json"
  3699. ],
  3700. "produces": [
  3701. "application/json"
  3702. ],
  3703. "tags": [
  3704. "设备"
  3705. ],
  3706. "summary": "设备详情",
  3707. "parameters": [
  3708. {
  3709. "type": "integer",
  3710. "description": "ID",
  3711. "name": "id",
  3712. "in": "path",
  3713. "required": true
  3714. }
  3715. ],
  3716. "responses": {
  3717. "200": {
  3718. "description": "OK",
  3719. "schema": {
  3720. "allOf": [
  3721. {
  3722. "$ref": "#/definitions/response.Response"
  3723. },
  3724. {
  3725. "type": "object",
  3726. "properties": {
  3727. "data": {
  3728. "$ref": "#/definitions/model.Peer"
  3729. }
  3730. }
  3731. }
  3732. ]
  3733. }
  3734. },
  3735. "500": {
  3736. "description": "Internal Server Error",
  3737. "schema": {
  3738. "$ref": "#/definitions/response.Response"
  3739. }
  3740. }
  3741. }
  3742. }
  3743. },
  3744. "/admin/peer/list": {
  3745. "get": {
  3746. "security": [
  3747. {
  3748. "token": []
  3749. }
  3750. ],
  3751. "description": "设备列表",
  3752. "consumes": [
  3753. "application/json"
  3754. ],
  3755. "produces": [
  3756. "application/json"
  3757. ],
  3758. "tags": [
  3759. "设备"
  3760. ],
  3761. "summary": "设备列表",
  3762. "parameters": [
  3763. {
  3764. "type": "integer",
  3765. "description": "页码",
  3766. "name": "page",
  3767. "in": "query"
  3768. },
  3769. {
  3770. "type": "integer",
  3771. "description": "页大小",
  3772. "name": "page_size",
  3773. "in": "query"
  3774. },
  3775. {
  3776. "type": "integer",
  3777. "description": "时间",
  3778. "name": "time_ago",
  3779. "in": "query"
  3780. },
  3781. {
  3782. "type": "string",
  3783. "description": "ID",
  3784. "name": "id",
  3785. "in": "query"
  3786. },
  3787. {
  3788. "type": "string",
  3789. "description": "主机名",
  3790. "name": "hostname",
  3791. "in": "query"
  3792. },
  3793. {
  3794. "type": "string",
  3795. "description": "uuids 用逗号分隔",
  3796. "name": "uuids",
  3797. "in": "query"
  3798. }
  3799. ],
  3800. "responses": {
  3801. "200": {
  3802. "description": "OK",
  3803. "schema": {
  3804. "allOf": [
  3805. {
  3806. "$ref": "#/definitions/response.Response"
  3807. },
  3808. {
  3809. "type": "object",
  3810. "properties": {
  3811. "data": {
  3812. "$ref": "#/definitions/model.PeerList"
  3813. }
  3814. }
  3815. }
  3816. ]
  3817. }
  3818. },
  3819. "500": {
  3820. "description": "Internal Server Error",
  3821. "schema": {
  3822. "$ref": "#/definitions/response.Response"
  3823. }
  3824. }
  3825. }
  3826. }
  3827. },
  3828. "/admin/peer/update": {
  3829. "post": {
  3830. "security": [
  3831. {
  3832. "token": []
  3833. }
  3834. ],
  3835. "description": "设备编辑",
  3836. "consumes": [
  3837. "application/json"
  3838. ],
  3839. "produces": [
  3840. "application/json"
  3841. ],
  3842. "tags": [
  3843. "设备"
  3844. ],
  3845. "summary": "设备编辑",
  3846. "parameters": [
  3847. {
  3848. "description": "设备信息",
  3849. "name": "body",
  3850. "in": "body",
  3851. "required": true,
  3852. "schema": {
  3853. "$ref": "#/definitions/admin.PeerForm"
  3854. }
  3855. }
  3856. ],
  3857. "responses": {
  3858. "200": {
  3859. "description": "OK",
  3860. "schema": {
  3861. "allOf": [
  3862. {
  3863. "$ref": "#/definitions/response.Response"
  3864. },
  3865. {
  3866. "type": "object",
  3867. "properties": {
  3868. "data": {
  3869. "$ref": "#/definitions/model.Peer"
  3870. }
  3871. }
  3872. }
  3873. ]
  3874. }
  3875. },
  3876. "500": {
  3877. "description": "Internal Server Error",
  3878. "schema": {
  3879. "$ref": "#/definitions/response.Response"
  3880. }
  3881. }
  3882. }
  3883. }
  3884. },
  3885. "/admin/server-config": {
  3886. "get": {
  3887. "security": [
  3888. {
  3889. "token": []
  3890. }
  3891. ],
  3892. "description": "服务配置,给webclient提供api-server",
  3893. "consumes": [
  3894. "application/json"
  3895. ],
  3896. "produces": [
  3897. "application/json"
  3898. ],
  3899. "tags": [
  3900. "ADMIN"
  3901. ],
  3902. "summary": "RUSTDESK服务配置",
  3903. "responses": {
  3904. "200": {
  3905. "description": "OK",
  3906. "schema": {
  3907. "$ref": "#/definitions/response.Response"
  3908. }
  3909. },
  3910. "500": {
  3911. "description": "Internal Server Error",
  3912. "schema": {
  3913. "$ref": "#/definitions/response.Response"
  3914. }
  3915. }
  3916. }
  3917. }
  3918. },
  3919. "/admin/share_record/batchDelete": {
  3920. "post": {
  3921. "security": [
  3922. {
  3923. "token": []
  3924. }
  3925. ],
  3926. "description": "批量分享记录",
  3927. "consumes": [
  3928. "application/json"
  3929. ],
  3930. "produces": [
  3931. "application/json"
  3932. ],
  3933. "tags": [
  3934. "分享记录"
  3935. ],
  3936. "summary": "批量分享记录",
  3937. "parameters": [
  3938. {
  3939. "description": "id",
  3940. "name": "body",
  3941. "in": "body",
  3942. "required": true,
  3943. "schema": {
  3944. "$ref": "#/definitions/admin.PeerShareRecordBatchDeleteForm"
  3945. }
  3946. }
  3947. ],
  3948. "responses": {
  3949. "200": {
  3950. "description": "OK",
  3951. "schema": {
  3952. "$ref": "#/definitions/response.Response"
  3953. }
  3954. },
  3955. "500": {
  3956. "description": "Internal Server Error",
  3957. "schema": {
  3958. "$ref": "#/definitions/response.Response"
  3959. }
  3960. }
  3961. }
  3962. }
  3963. },
  3964. "/admin/share_record/delete": {
  3965. "post": {
  3966. "security": [
  3967. {
  3968. "token": []
  3969. }
  3970. ],
  3971. "description": "分享记录删除",
  3972. "consumes": [
  3973. "application/json"
  3974. ],
  3975. "produces": [
  3976. "application/json"
  3977. ],
  3978. "tags": [
  3979. "分享记录"
  3980. ],
  3981. "summary": "分享记录删除",
  3982. "parameters": [
  3983. {
  3984. "description": "分享记录信息",
  3985. "name": "body",
  3986. "in": "body",
  3987. "required": true,
  3988. "schema": {
  3989. "$ref": "#/definitions/admin.ShareRecordForm"
  3990. }
  3991. }
  3992. ],
  3993. "responses": {
  3994. "200": {
  3995. "description": "OK",
  3996. "schema": {
  3997. "$ref": "#/definitions/response.Response"
  3998. }
  3999. },
  4000. "500": {
  4001. "description": "Internal Server Error",
  4002. "schema": {
  4003. "$ref": "#/definitions/response.Response"
  4004. }
  4005. }
  4006. }
  4007. }
  4008. },
  4009. "/admin/share_record/list": {
  4010. "get": {
  4011. "security": [
  4012. {
  4013. "token": []
  4014. }
  4015. ],
  4016. "description": "分享记录列表",
  4017. "consumes": [
  4018. "application/json"
  4019. ],
  4020. "produces": [
  4021. "application/json"
  4022. ],
  4023. "tags": [
  4024. "分享记录"
  4025. ],
  4026. "summary": "分享记录列表",
  4027. "parameters": [
  4028. {
  4029. "type": "integer",
  4030. "description": "用户ID",
  4031. "name": "user_id",
  4032. "in": "query"
  4033. },
  4034. {
  4035. "type": "integer",
  4036. "description": "页码",
  4037. "name": "page",
  4038. "in": "query"
  4039. },
  4040. {
  4041. "type": "integer",
  4042. "description": "页大小",
  4043. "name": "page_size",
  4044. "in": "query"
  4045. }
  4046. ],
  4047. "responses": {
  4048. "200": {
  4049. "description": "OK",
  4050. "schema": {
  4051. "$ref": "#/definitions/response.Response"
  4052. }
  4053. },
  4054. "500": {
  4055. "description": "Internal Server Error",
  4056. "schema": {
  4057. "$ref": "#/definitions/response.Response"
  4058. }
  4059. }
  4060. }
  4061. }
  4062. },
  4063. "/admin/tag/create": {
  4064. "post": {
  4065. "security": [
  4066. {
  4067. "token": []
  4068. }
  4069. ],
  4070. "description": "创建标签",
  4071. "consumes": [
  4072. "application/json"
  4073. ],
  4074. "produces": [
  4075. "application/json"
  4076. ],
  4077. "tags": [
  4078. "标签"
  4079. ],
  4080. "summary": "创建标签",
  4081. "parameters": [
  4082. {
  4083. "description": "标签信息",
  4084. "name": "body",
  4085. "in": "body",
  4086. "required": true,
  4087. "schema": {
  4088. "$ref": "#/definitions/admin.TagForm"
  4089. }
  4090. }
  4091. ],
  4092. "responses": {
  4093. "200": {
  4094. "description": "OK",
  4095. "schema": {
  4096. "allOf": [
  4097. {
  4098. "$ref": "#/definitions/response.Response"
  4099. },
  4100. {
  4101. "type": "object",
  4102. "properties": {
  4103. "data": {
  4104. "$ref": "#/definitions/model.Tag"
  4105. }
  4106. }
  4107. }
  4108. ]
  4109. }
  4110. },
  4111. "500": {
  4112. "description": "Internal Server Error",
  4113. "schema": {
  4114. "$ref": "#/definitions/response.Response"
  4115. }
  4116. }
  4117. }
  4118. }
  4119. },
  4120. "/admin/tag/delete": {
  4121. "post": {
  4122. "security": [
  4123. {
  4124. "token": []
  4125. }
  4126. ],
  4127. "description": "标签删除",
  4128. "consumes": [
  4129. "application/json"
  4130. ],
  4131. "produces": [
  4132. "application/json"
  4133. ],
  4134. "tags": [
  4135. "标签"
  4136. ],
  4137. "summary": "标签删除",
  4138. "parameters": [
  4139. {
  4140. "description": "标签信息",
  4141. "name": "body",
  4142. "in": "body",
  4143. "required": true,
  4144. "schema": {
  4145. "$ref": "#/definitions/admin.TagForm"
  4146. }
  4147. }
  4148. ],
  4149. "responses": {
  4150. "200": {
  4151. "description": "OK",
  4152. "schema": {
  4153. "$ref": "#/definitions/response.Response"
  4154. }
  4155. },
  4156. "500": {
  4157. "description": "Internal Server Error",
  4158. "schema": {
  4159. "$ref": "#/definitions/response.Response"
  4160. }
  4161. }
  4162. }
  4163. }
  4164. },
  4165. "/admin/tag/detail/{id}": {
  4166. "get": {
  4167. "security": [
  4168. {
  4169. "token": []
  4170. }
  4171. ],
  4172. "description": "标签详情",
  4173. "consumes": [
  4174. "application/json"
  4175. ],
  4176. "produces": [
  4177. "application/json"
  4178. ],
  4179. "tags": [
  4180. "标签"
  4181. ],
  4182. "summary": "标签详情",
  4183. "parameters": [
  4184. {
  4185. "type": "integer",
  4186. "description": "ID",
  4187. "name": "id",
  4188. "in": "path",
  4189. "required": true
  4190. }
  4191. ],
  4192. "responses": {
  4193. "200": {
  4194. "description": "OK",
  4195. "schema": {
  4196. "allOf": [
  4197. {
  4198. "$ref": "#/definitions/response.Response"
  4199. },
  4200. {
  4201. "type": "object",
  4202. "properties": {
  4203. "data": {
  4204. "$ref": "#/definitions/model.Tag"
  4205. }
  4206. }
  4207. }
  4208. ]
  4209. }
  4210. },
  4211. "500": {
  4212. "description": "Internal Server Error",
  4213. "schema": {
  4214. "$ref": "#/definitions/response.Response"
  4215. }
  4216. }
  4217. }
  4218. }
  4219. },
  4220. "/admin/tag/list": {
  4221. "get": {
  4222. "security": [
  4223. {
  4224. "token": []
  4225. }
  4226. ],
  4227. "description": "标签列表",
  4228. "consumes": [
  4229. "application/json"
  4230. ],
  4231. "produces": [
  4232. "application/json"
  4233. ],
  4234. "tags": [
  4235. "标签"
  4236. ],
  4237. "summary": "标签列表",
  4238. "parameters": [
  4239. {
  4240. "type": "integer",
  4241. "description": "页码",
  4242. "name": "page",
  4243. "in": "query"
  4244. },
  4245. {
  4246. "type": "integer",
  4247. "description": "页大小",
  4248. "name": "page_size",
  4249. "in": "query"
  4250. },
  4251. {
  4252. "type": "integer",
  4253. "description": "是否是我的",
  4254. "name": "is_my",
  4255. "in": "query"
  4256. },
  4257. {
  4258. "type": "integer",
  4259. "description": "用户id",
  4260. "name": "user_id",
  4261. "in": "query"
  4262. }
  4263. ],
  4264. "responses": {
  4265. "200": {
  4266. "description": "OK",
  4267. "schema": {
  4268. "allOf": [
  4269. {
  4270. "$ref": "#/definitions/response.Response"
  4271. },
  4272. {
  4273. "type": "object",
  4274. "properties": {
  4275. "data": {
  4276. "$ref": "#/definitions/model.TagList"
  4277. }
  4278. }
  4279. }
  4280. ]
  4281. }
  4282. },
  4283. "500": {
  4284. "description": "Internal Server Error",
  4285. "schema": {
  4286. "$ref": "#/definitions/response.Response"
  4287. }
  4288. }
  4289. }
  4290. }
  4291. },
  4292. "/admin/tag/update": {
  4293. "post": {
  4294. "security": [
  4295. {
  4296. "token": []
  4297. }
  4298. ],
  4299. "description": "标签编辑",
  4300. "consumes": [
  4301. "application/json"
  4302. ],
  4303. "produces": [
  4304. "application/json"
  4305. ],
  4306. "tags": [
  4307. "标签"
  4308. ],
  4309. "summary": "标签编辑",
  4310. "parameters": [
  4311. {
  4312. "description": "标签信息",
  4313. "name": "body",
  4314. "in": "body",
  4315. "required": true,
  4316. "schema": {
  4317. "$ref": "#/definitions/admin.TagForm"
  4318. }
  4319. }
  4320. ],
  4321. "responses": {
  4322. "200": {
  4323. "description": "OK",
  4324. "schema": {
  4325. "allOf": [
  4326. {
  4327. "$ref": "#/definitions/response.Response"
  4328. },
  4329. {
  4330. "type": "object",
  4331. "properties": {
  4332. "data": {
  4333. "$ref": "#/definitions/model.Tag"
  4334. }
  4335. }
  4336. }
  4337. ]
  4338. }
  4339. },
  4340. "500": {
  4341. "description": "Internal Server Error",
  4342. "schema": {
  4343. "$ref": "#/definitions/response.Response"
  4344. }
  4345. }
  4346. }
  4347. }
  4348. },
  4349. "/admin/user/changeCurPwd": {
  4350. "post": {
  4351. "security": [
  4352. {
  4353. "token": []
  4354. }
  4355. ],
  4356. "description": "修改当前用户密码",
  4357. "consumes": [
  4358. "application/json"
  4359. ],
  4360. "produces": [
  4361. "application/json"
  4362. ],
  4363. "tags": [
  4364. "用户"
  4365. ],
  4366. "summary": "修改当前用户密码",
  4367. "parameters": [
  4368. {
  4369. "description": "用户信息",
  4370. "name": "body",
  4371. "in": "body",
  4372. "required": true,
  4373. "schema": {
  4374. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  4375. }
  4376. }
  4377. ],
  4378. "responses": {
  4379. "200": {
  4380. "description": "OK",
  4381. "schema": {
  4382. "$ref": "#/definitions/response.Response"
  4383. }
  4384. },
  4385. "500": {
  4386. "description": "Internal Server Error",
  4387. "schema": {
  4388. "$ref": "#/definitions/response.Response"
  4389. }
  4390. }
  4391. }
  4392. }
  4393. },
  4394. "/admin/user/create": {
  4395. "post": {
  4396. "security": [
  4397. {
  4398. "token": []
  4399. }
  4400. ],
  4401. "description": "创建管理员",
  4402. "consumes": [
  4403. "application/json"
  4404. ],
  4405. "produces": [
  4406. "application/json"
  4407. ],
  4408. "tags": [
  4409. "用户"
  4410. ],
  4411. "summary": "创建管理员",
  4412. "parameters": [
  4413. {
  4414. "description": "管理员信息",
  4415. "name": "body",
  4416. "in": "body",
  4417. "required": true,
  4418. "schema": {
  4419. "$ref": "#/definitions/admin.UserForm"
  4420. }
  4421. }
  4422. ],
  4423. "responses": {
  4424. "200": {
  4425. "description": "OK",
  4426. "schema": {
  4427. "allOf": [
  4428. {
  4429. "$ref": "#/definitions/response.Response"
  4430. },
  4431. {
  4432. "type": "object",
  4433. "properties": {
  4434. "data": {
  4435. "$ref": "#/definitions/model.User"
  4436. }
  4437. }
  4438. }
  4439. ]
  4440. }
  4441. },
  4442. "500": {
  4443. "description": "Internal Server Error",
  4444. "schema": {
  4445. "$ref": "#/definitions/response.Response"
  4446. }
  4447. }
  4448. }
  4449. }
  4450. },
  4451. "/admin/user/current": {
  4452. "get": {
  4453. "security": [
  4454. {
  4455. "token": []
  4456. }
  4457. ],
  4458. "description": "当前用户",
  4459. "consumes": [
  4460. "application/json"
  4461. ],
  4462. "produces": [
  4463. "application/json"
  4464. ],
  4465. "tags": [
  4466. "用户"
  4467. ],
  4468. "summary": "当前用户",
  4469. "responses": {
  4470. "200": {
  4471. "description": "OK",
  4472. "schema": {
  4473. "allOf": [
  4474. {
  4475. "$ref": "#/definitions/response.Response"
  4476. },
  4477. {
  4478. "type": "object",
  4479. "properties": {
  4480. "data": {
  4481. "$ref": "#/definitions/admin.LoginPayload"
  4482. }
  4483. }
  4484. }
  4485. ]
  4486. }
  4487. },
  4488. "500": {
  4489. "description": "Internal Server Error",
  4490. "schema": {
  4491. "$ref": "#/definitions/response.Response"
  4492. }
  4493. }
  4494. }
  4495. }
  4496. },
  4497. "/admin/user/delete": {
  4498. "post": {
  4499. "security": [
  4500. {
  4501. "token": []
  4502. }
  4503. ],
  4504. "description": "管理员编删除",
  4505. "consumes": [
  4506. "application/json"
  4507. ],
  4508. "produces": [
  4509. "application/json"
  4510. ],
  4511. "tags": [
  4512. "用户"
  4513. ],
  4514. "summary": "管理员删除",
  4515. "parameters": [
  4516. {
  4517. "description": "用户信息",
  4518. "name": "body",
  4519. "in": "body",
  4520. "required": true,
  4521. "schema": {
  4522. "$ref": "#/definitions/admin.UserForm"
  4523. }
  4524. }
  4525. ],
  4526. "responses": {
  4527. "200": {
  4528. "description": "OK",
  4529. "schema": {
  4530. "$ref": "#/definitions/response.Response"
  4531. }
  4532. },
  4533. "500": {
  4534. "description": "Internal Server Error",
  4535. "schema": {
  4536. "$ref": "#/definitions/response.Response"
  4537. }
  4538. }
  4539. }
  4540. }
  4541. },
  4542. "/admin/user/detail/{id}": {
  4543. "get": {
  4544. "security": [
  4545. {
  4546. "token": []
  4547. }
  4548. ],
  4549. "description": "管理员详情",
  4550. "consumes": [
  4551. "application/json"
  4552. ],
  4553. "produces": [
  4554. "application/json"
  4555. ],
  4556. "tags": [
  4557. "用户"
  4558. ],
  4559. "summary": "管理员详情",
  4560. "parameters": [
  4561. {
  4562. "type": "integer",
  4563. "description": "ID",
  4564. "name": "id",
  4565. "in": "path",
  4566. "required": true
  4567. }
  4568. ],
  4569. "responses": {
  4570. "200": {
  4571. "description": "OK",
  4572. "schema": {
  4573. "allOf": [
  4574. {
  4575. "$ref": "#/definitions/response.Response"
  4576. },
  4577. {
  4578. "type": "object",
  4579. "properties": {
  4580. "data": {
  4581. "$ref": "#/definitions/model.User"
  4582. }
  4583. }
  4584. }
  4585. ]
  4586. }
  4587. },
  4588. "500": {
  4589. "description": "Internal Server Error",
  4590. "schema": {
  4591. "$ref": "#/definitions/response.Response"
  4592. }
  4593. }
  4594. }
  4595. }
  4596. },
  4597. "/admin/user/list": {
  4598. "get": {
  4599. "security": [
  4600. {
  4601. "token": []
  4602. }
  4603. ],
  4604. "description": "管理员列表",
  4605. "consumes": [
  4606. "application/json"
  4607. ],
  4608. "produces": [
  4609. "application/json"
  4610. ],
  4611. "tags": [
  4612. "用户"
  4613. ],
  4614. "summary": "管理员列表",
  4615. "parameters": [
  4616. {
  4617. "type": "integer",
  4618. "description": "页码",
  4619. "name": "page",
  4620. "in": "query"
  4621. },
  4622. {
  4623. "type": "integer",
  4624. "description": "页大小",
  4625. "name": "page_size",
  4626. "in": "query"
  4627. },
  4628. {
  4629. "type": "integer",
  4630. "description": "账户",
  4631. "name": "username",
  4632. "in": "query"
  4633. }
  4634. ],
  4635. "responses": {
  4636. "200": {
  4637. "description": "OK",
  4638. "schema": {
  4639. "allOf": [
  4640. {
  4641. "$ref": "#/definitions/response.Response"
  4642. },
  4643. {
  4644. "type": "object",
  4645. "properties": {
  4646. "data": {
  4647. "$ref": "#/definitions/model.UserList"
  4648. }
  4649. }
  4650. }
  4651. ]
  4652. }
  4653. },
  4654. "500": {
  4655. "description": "Internal Server Error",
  4656. "schema": {
  4657. "$ref": "#/definitions/response.Response"
  4658. }
  4659. }
  4660. }
  4661. }
  4662. },
  4663. "/admin/user/myOauth": {
  4664. "get": {
  4665. "security": [
  4666. {
  4667. "token": []
  4668. }
  4669. ],
  4670. "description": "我的授权",
  4671. "consumes": [
  4672. "application/json"
  4673. ],
  4674. "produces": [
  4675. "application/json"
  4676. ],
  4677. "tags": [
  4678. "用户"
  4679. ],
  4680. "summary": "我的授权",
  4681. "responses": {
  4682. "200": {
  4683. "description": "OK",
  4684. "schema": {
  4685. "allOf": [
  4686. {
  4687. "$ref": "#/definitions/response.Response"
  4688. },
  4689. {
  4690. "type": "object",
  4691. "properties": {
  4692. "data": {
  4693. "type": "array",
  4694. "items": {
  4695. "$ref": "#/definitions/admin.UserOauthItem"
  4696. }
  4697. }
  4698. }
  4699. }
  4700. ]
  4701. }
  4702. },
  4703. "500": {
  4704. "description": "Internal Server Error",
  4705. "schema": {
  4706. "$ref": "#/definitions/response.Response"
  4707. }
  4708. }
  4709. }
  4710. }
  4711. },
  4712. "/admin/user/update": {
  4713. "post": {
  4714. "security": [
  4715. {
  4716. "token": []
  4717. }
  4718. ],
  4719. "description": "管理员编辑",
  4720. "consumes": [
  4721. "application/json"
  4722. ],
  4723. "produces": [
  4724. "application/json"
  4725. ],
  4726. "tags": [
  4727. "用户"
  4728. ],
  4729. "summary": "管理员编辑",
  4730. "parameters": [
  4731. {
  4732. "description": "用户信息",
  4733. "name": "body",
  4734. "in": "body",
  4735. "required": true,
  4736. "schema": {
  4737. "$ref": "#/definitions/admin.UserForm"
  4738. }
  4739. }
  4740. ],
  4741. "responses": {
  4742. "200": {
  4743. "description": "OK",
  4744. "schema": {
  4745. "allOf": [
  4746. {
  4747. "$ref": "#/definitions/response.Response"
  4748. },
  4749. {
  4750. "type": "object",
  4751. "properties": {
  4752. "data": {
  4753. "$ref": "#/definitions/model.User"
  4754. }
  4755. }
  4756. }
  4757. ]
  4758. }
  4759. },
  4760. "500": {
  4761. "description": "Internal Server Error",
  4762. "schema": {
  4763. "$ref": "#/definitions/response.Response"
  4764. }
  4765. }
  4766. }
  4767. }
  4768. },
  4769. "/admin/user/updatePassword": {
  4770. "post": {
  4771. "security": [
  4772. {
  4773. "token": []
  4774. }
  4775. ],
  4776. "description": "修改密码",
  4777. "consumes": [
  4778. "application/json"
  4779. ],
  4780. "produces": [
  4781. "application/json"
  4782. ],
  4783. "tags": [
  4784. "用户"
  4785. ],
  4786. "summary": "修改密码",
  4787. "parameters": [
  4788. {
  4789. "description": "用户信息",
  4790. "name": "body",
  4791. "in": "body",
  4792. "required": true,
  4793. "schema": {
  4794. "$ref": "#/definitions/admin.UserPasswordForm"
  4795. }
  4796. }
  4797. ],
  4798. "responses": {
  4799. "200": {
  4800. "description": "OK",
  4801. "schema": {
  4802. "$ref": "#/definitions/response.Response"
  4803. }
  4804. },
  4805. "500": {
  4806. "description": "Internal Server Error",
  4807. "schema": {
  4808. "$ref": "#/definitions/response.Response"
  4809. }
  4810. }
  4811. }
  4812. }
  4813. },
  4814. "/admin/user_token/batchDelete": {
  4815. "post": {
  4816. "security": [
  4817. {
  4818. "token": []
  4819. }
  4820. ],
  4821. "description": "登录凭证批量删除",
  4822. "consumes": [
  4823. "application/json"
  4824. ],
  4825. "produces": [
  4826. "application/json"
  4827. ],
  4828. "tags": [
  4829. "登录凭证"
  4830. ],
  4831. "summary": "登录凭证批量删除",
  4832. "parameters": [
  4833. {
  4834. "description": "登录凭证信息",
  4835. "name": "body",
  4836. "in": "body",
  4837. "required": true,
  4838. "schema": {
  4839. "$ref": "#/definitions/admin.UserTokenBatchDeleteForm"
  4840. }
  4841. }
  4842. ],
  4843. "responses": {
  4844. "200": {
  4845. "description": "OK",
  4846. "schema": {
  4847. "$ref": "#/definitions/response.Response"
  4848. }
  4849. },
  4850. "500": {
  4851. "description": "Internal Server Error",
  4852. "schema": {
  4853. "$ref": "#/definitions/response.Response"
  4854. }
  4855. }
  4856. }
  4857. }
  4858. },
  4859. "/admin/user_token/delete": {
  4860. "post": {
  4861. "security": [
  4862. {
  4863. "token": []
  4864. }
  4865. ],
  4866. "description": "登录凭证删除",
  4867. "consumes": [
  4868. "application/json"
  4869. ],
  4870. "produces": [
  4871. "application/json"
  4872. ],
  4873. "tags": [
  4874. "登录凭证"
  4875. ],
  4876. "summary": "登录凭证删除",
  4877. "parameters": [
  4878. {
  4879. "description": "登录凭证信息",
  4880. "name": "body",
  4881. "in": "body",
  4882. "required": true,
  4883. "schema": {
  4884. "$ref": "#/definitions/model.UserToken"
  4885. }
  4886. }
  4887. ],
  4888. "responses": {
  4889. "200": {
  4890. "description": "OK",
  4891. "schema": {
  4892. "$ref": "#/definitions/response.Response"
  4893. }
  4894. },
  4895. "500": {
  4896. "description": "Internal Server Error",
  4897. "schema": {
  4898. "$ref": "#/definitions/response.Response"
  4899. }
  4900. }
  4901. }
  4902. }
  4903. },
  4904. "/admin/user_token/list": {
  4905. "get": {
  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. "type": "integer",
  4925. "description": "页码",
  4926. "name": "page",
  4927. "in": "query"
  4928. },
  4929. {
  4930. "type": "integer",
  4931. "description": "页大小",
  4932. "name": "page_size",
  4933. "in": "query"
  4934. },
  4935. {
  4936. "type": "integer",
  4937. "description": "用户ID",
  4938. "name": "user_id",
  4939. "in": "query"
  4940. }
  4941. ],
  4942. "responses": {
  4943. "200": {
  4944. "description": "OK",
  4945. "schema": {
  4946. "allOf": [
  4947. {
  4948. "$ref": "#/definitions/response.Response"
  4949. },
  4950. {
  4951. "type": "object",
  4952. "properties": {
  4953. "data": {
  4954. "$ref": "#/definitions/model.UserTokenList"
  4955. }
  4956. }
  4957. }
  4958. ]
  4959. }
  4960. },
  4961. "500": {
  4962. "description": "Internal Server Error",
  4963. "schema": {
  4964. "$ref": "#/definitions/response.Response"
  4965. }
  4966. }
  4967. }
  4968. }
  4969. }
  4970. },
  4971. "definitions": {
  4972. "Gwen_http_request_admin.Login": {
  4973. "type": "object",
  4974. "required": [
  4975. "password",
  4976. "username"
  4977. ],
  4978. "properties": {
  4979. "captcha": {
  4980. "type": "string"
  4981. },
  4982. "password": {
  4983. "type": "string"
  4984. },
  4985. "platform": {
  4986. "type": "string"
  4987. },
  4988. "username": {
  4989. "type": "string"
  4990. }
  4991. }
  4992. },
  4993. "admin.AddressBookForm": {
  4994. "type": "object",
  4995. "required": [
  4996. "id"
  4997. ],
  4998. "properties": {
  4999. "alias": {
  5000. "type": "string"
  5001. },
  5002. "collection_id": {
  5003. "type": "integer"
  5004. },
  5005. "forceAlwaysRelay": {
  5006. "type": "boolean"
  5007. },
  5008. "hash": {
  5009. "type": "string"
  5010. },
  5011. "hostname": {
  5012. "type": "string"
  5013. },
  5014. "id": {
  5015. "type": "string"
  5016. },
  5017. "loginName": {
  5018. "type": "string"
  5019. },
  5020. "online": {
  5021. "type": "boolean"
  5022. },
  5023. "password": {
  5024. "type": "string"
  5025. },
  5026. "platform": {
  5027. "type": "string"
  5028. },
  5029. "rdpPort": {
  5030. "type": "string"
  5031. },
  5032. "rdpUsername": {
  5033. "type": "string"
  5034. },
  5035. "row_id": {
  5036. "type": "integer"
  5037. },
  5038. "sameServer": {
  5039. "type": "boolean"
  5040. },
  5041. "tags": {
  5042. "type": "array",
  5043. "items": {
  5044. "type": "string"
  5045. }
  5046. },
  5047. "user_id": {
  5048. "type": "integer"
  5049. },
  5050. "user_ids": {
  5051. "type": "array",
  5052. "items": {
  5053. "type": "integer"
  5054. }
  5055. },
  5056. "username": {
  5057. "type": "string"
  5058. }
  5059. }
  5060. },
  5061. "admin.AuditConnLogIds": {
  5062. "type": "object",
  5063. "required": [
  5064. "ids"
  5065. ],
  5066. "properties": {
  5067. "ids": {
  5068. "type": "array",
  5069. "items": {
  5070. "type": "integer"
  5071. }
  5072. }
  5073. }
  5074. },
  5075. "admin.AuditFileLogIds": {
  5076. "type": "object",
  5077. "required": [
  5078. "ids"
  5079. ],
  5080. "properties": {
  5081. "ids": {
  5082. "type": "array",
  5083. "items": {
  5084. "type": "integer"
  5085. }
  5086. }
  5087. }
  5088. },
  5089. "admin.ChangeCurPasswordForm": {
  5090. "type": "object",
  5091. "required": [
  5092. "new_password",
  5093. "old_password"
  5094. ],
  5095. "properties": {
  5096. "new_password": {
  5097. "type": "string",
  5098. "maxLength": 32,
  5099. "minLength": 4
  5100. },
  5101. "old_password": {
  5102. "type": "string",
  5103. "maxLength": 32,
  5104. "minLength": 4
  5105. }
  5106. }
  5107. },
  5108. "admin.GroupForm": {
  5109. "type": "object",
  5110. "required": [
  5111. "name"
  5112. ],
  5113. "properties": {
  5114. "id": {
  5115. "type": "integer"
  5116. },
  5117. "name": {
  5118. "type": "string"
  5119. },
  5120. "type": {
  5121. "type": "integer"
  5122. }
  5123. }
  5124. },
  5125. "admin.LoginLogIds": {
  5126. "type": "object",
  5127. "required": [
  5128. "ids"
  5129. ],
  5130. "properties": {
  5131. "ids": {
  5132. "type": "array",
  5133. "items": {
  5134. "type": "integer"
  5135. }
  5136. }
  5137. }
  5138. },
  5139. "admin.LoginPayload": {
  5140. "type": "object",
  5141. "properties": {
  5142. "avatar": {
  5143. "type": "string"
  5144. },
  5145. "email": {
  5146. "type": "string"
  5147. },
  5148. "nickname": {
  5149. "type": "string"
  5150. },
  5151. "route_names": {
  5152. "type": "array",
  5153. "items": {
  5154. "type": "string"
  5155. }
  5156. },
  5157. "token": {
  5158. "type": "string"
  5159. },
  5160. "username": {
  5161. "type": "string"
  5162. }
  5163. }
  5164. },
  5165. "admin.OauthForm": {
  5166. "type": "object",
  5167. "required": [
  5168. "client_id",
  5169. "client_secret",
  5170. "oauth_type",
  5171. "redirect_url"
  5172. ],
  5173. "properties": {
  5174. "auto_register": {
  5175. "type": "boolean"
  5176. },
  5177. "client_id": {
  5178. "type": "string"
  5179. },
  5180. "client_secret": {
  5181. "type": "string"
  5182. },
  5183. "id": {
  5184. "type": "integer"
  5185. },
  5186. "issuer": {
  5187. "type": "string"
  5188. },
  5189. "oauth_type": {
  5190. "type": "string"
  5191. },
  5192. "op": {
  5193. "type": "string"
  5194. },
  5195. "redirect_url": {
  5196. "type": "string"
  5197. },
  5198. "scopes": {
  5199. "type": "string"
  5200. }
  5201. }
  5202. },
  5203. "admin.PeerBatchDeleteForm": {
  5204. "type": "object",
  5205. "required": [
  5206. "row_ids"
  5207. ],
  5208. "properties": {
  5209. "row_ids": {
  5210. "type": "array",
  5211. "items": {
  5212. "type": "integer"
  5213. }
  5214. }
  5215. }
  5216. },
  5217. "admin.PeerForm": {
  5218. "type": "object",
  5219. "properties": {
  5220. "cpu": {
  5221. "type": "string"
  5222. },
  5223. "hostname": {
  5224. "type": "string"
  5225. },
  5226. "id": {
  5227. "type": "string"
  5228. },
  5229. "memory": {
  5230. "type": "string"
  5231. },
  5232. "os": {
  5233. "type": "string"
  5234. },
  5235. "row_id": {
  5236. "type": "integer"
  5237. },
  5238. "username": {
  5239. "type": "string"
  5240. },
  5241. "uuid": {
  5242. "type": "string"
  5243. },
  5244. "version": {
  5245. "type": "string"
  5246. }
  5247. }
  5248. },
  5249. "admin.PeerShareRecordBatchDeleteForm": {
  5250. "type": "object",
  5251. "required": [
  5252. "ids"
  5253. ],
  5254. "properties": {
  5255. "ids": {
  5256. "type": "array",
  5257. "items": {
  5258. "type": "integer"
  5259. }
  5260. }
  5261. }
  5262. },
  5263. "admin.ShareByWebClientForm": {
  5264. "type": "object",
  5265. "required": [
  5266. "id",
  5267. "password",
  5268. "password_type"
  5269. ],
  5270. "properties": {
  5271. "expire": {
  5272. "type": "integer"
  5273. },
  5274. "id": {
  5275. "type": "string"
  5276. },
  5277. "password": {
  5278. "type": "string"
  5279. },
  5280. "password_type": {
  5281. "description": "只能是once,fixed",
  5282. "type": "string",
  5283. "enum": [
  5284. "once",
  5285. "fixed"
  5286. ]
  5287. }
  5288. }
  5289. },
  5290. "admin.ShareRecordForm": {
  5291. "type": "object",
  5292. "properties": {
  5293. "id": {
  5294. "type": "integer"
  5295. },
  5296. "user_id": {
  5297. "type": "integer"
  5298. }
  5299. }
  5300. },
  5301. "admin.TagForm": {
  5302. "type": "object",
  5303. "required": [
  5304. "color",
  5305. "name"
  5306. ],
  5307. "properties": {
  5308. "collection_id": {
  5309. "type": "integer"
  5310. },
  5311. "color": {
  5312. "type": "integer"
  5313. },
  5314. "id": {
  5315. "type": "integer"
  5316. },
  5317. "name": {
  5318. "type": "string"
  5319. },
  5320. "user_id": {
  5321. "type": "integer"
  5322. }
  5323. }
  5324. },
  5325. "admin.UserForm": {
  5326. "type": "object",
  5327. "required": [
  5328. "group_id",
  5329. "status",
  5330. "username"
  5331. ],
  5332. "properties": {
  5333. "avatar": {
  5334. "type": "string"
  5335. },
  5336. "email": {
  5337. "description": "validate:\"required,email\" email不强制",
  5338. "type": "string"
  5339. },
  5340. "group_id": {
  5341. "type": "integer"
  5342. },
  5343. "id": {
  5344. "type": "integer"
  5345. },
  5346. "is_admin": {
  5347. "type": "boolean"
  5348. },
  5349. "nickname": {
  5350. "description": "Password string ` + "`" + `json:\"password\" validate:\"required,gte=4,lte=20\"` + "`" + `",
  5351. "type": "string"
  5352. },
  5353. "status": {
  5354. "minimum": 0,
  5355. "allOf": [
  5356. {
  5357. "$ref": "#/definitions/model.StatusCode"
  5358. }
  5359. ]
  5360. },
  5361. "username": {
  5362. "type": "string",
  5363. "maxLength": 32,
  5364. "minLength": 2
  5365. }
  5366. }
  5367. },
  5368. "admin.UserOauthItem": {
  5369. "type": "object",
  5370. "properties": {
  5371. "op": {
  5372. "type": "string"
  5373. },
  5374. "status": {
  5375. "type": "integer"
  5376. }
  5377. }
  5378. },
  5379. "admin.UserPasswordForm": {
  5380. "type": "object",
  5381. "required": [
  5382. "id",
  5383. "password"
  5384. ],
  5385. "properties": {
  5386. "id": {
  5387. "type": "integer"
  5388. },
  5389. "password": {
  5390. "type": "string",
  5391. "maxLength": 32,
  5392. "minLength": 4
  5393. }
  5394. }
  5395. },
  5396. "admin.UserTokenBatchDeleteForm": {
  5397. "type": "object",
  5398. "required": [
  5399. "ids"
  5400. ],
  5401. "properties": {
  5402. "ids": {
  5403. "type": "array",
  5404. "items": {
  5405. "type": "integer"
  5406. }
  5407. }
  5408. }
  5409. },
  5410. "model.AddressBook": {
  5411. "type": "object",
  5412. "properties": {
  5413. "alias": {
  5414. "type": "string"
  5415. },
  5416. "collection": {
  5417. "$ref": "#/definitions/model.AddressBookCollection"
  5418. },
  5419. "collection_id": {
  5420. "type": "integer"
  5421. },
  5422. "created_at": {
  5423. "type": "string"
  5424. },
  5425. "forceAlwaysRelay": {
  5426. "type": "boolean"
  5427. },
  5428. "hash": {
  5429. "type": "string"
  5430. },
  5431. "hostname": {
  5432. "type": "string"
  5433. },
  5434. "id": {
  5435. "type": "string"
  5436. },
  5437. "loginName": {
  5438. "type": "string"
  5439. },
  5440. "online": {
  5441. "type": "boolean"
  5442. },
  5443. "password": {
  5444. "type": "string"
  5445. },
  5446. "platform": {
  5447. "type": "string"
  5448. },
  5449. "rdpPort": {
  5450. "type": "string"
  5451. },
  5452. "rdpUsername": {
  5453. "type": "string"
  5454. },
  5455. "row_id": {
  5456. "type": "integer"
  5457. },
  5458. "sameServer": {
  5459. "type": "boolean"
  5460. },
  5461. "tags": {
  5462. "type": "array",
  5463. "items": {
  5464. "type": "string"
  5465. }
  5466. },
  5467. "updated_at": {
  5468. "type": "string"
  5469. },
  5470. "user_id": {
  5471. "type": "integer"
  5472. },
  5473. "username": {
  5474. "type": "string"
  5475. }
  5476. }
  5477. },
  5478. "model.AddressBookCollection": {
  5479. "type": "object",
  5480. "required": [
  5481. "name"
  5482. ],
  5483. "properties": {
  5484. "created_at": {
  5485. "type": "string"
  5486. },
  5487. "id": {
  5488. "type": "integer"
  5489. },
  5490. "name": {
  5491. "type": "string"
  5492. },
  5493. "updated_at": {
  5494. "type": "string"
  5495. },
  5496. "user_id": {
  5497. "type": "integer"
  5498. }
  5499. }
  5500. },
  5501. "model.AddressBookCollectionList": {
  5502. "type": "object",
  5503. "properties": {
  5504. "list": {
  5505. "type": "array",
  5506. "items": {
  5507. "$ref": "#/definitions/model.AddressBookCollection"
  5508. }
  5509. },
  5510. "page": {
  5511. "type": "integer"
  5512. },
  5513. "page_size": {
  5514. "type": "integer"
  5515. },
  5516. "total": {
  5517. "type": "integer"
  5518. }
  5519. }
  5520. },
  5521. "model.AddressBookCollectionRule": {
  5522. "type": "object",
  5523. "required": [
  5524. "collection_id",
  5525. "rule",
  5526. "to_id",
  5527. "type"
  5528. ],
  5529. "properties": {
  5530. "collection_id": {
  5531. "type": "integer"
  5532. },
  5533. "created_at": {
  5534. "type": "string"
  5535. },
  5536. "id": {
  5537. "type": "integer"
  5538. },
  5539. "rule": {
  5540. "description": "0: 无 1: 读 2: 读写 3: 完全控制",
  5541. "type": "integer",
  5542. "maximum": 3,
  5543. "minimum": 1
  5544. },
  5545. "to_id": {
  5546. "type": "integer"
  5547. },
  5548. "type": {
  5549. "description": "1: 个人 2: 群组",
  5550. "type": "integer",
  5551. "maximum": 2,
  5552. "minimum": 1
  5553. },
  5554. "updated_at": {
  5555. "type": "string"
  5556. },
  5557. "user_id": {
  5558. "type": "integer"
  5559. }
  5560. }
  5561. },
  5562. "model.AddressBookList": {
  5563. "type": "object",
  5564. "properties": {
  5565. "list": {
  5566. "type": "array",
  5567. "items": {
  5568. "$ref": "#/definitions/model.AddressBook"
  5569. }
  5570. },
  5571. "page": {
  5572. "type": "integer"
  5573. },
  5574. "page_size": {
  5575. "type": "integer"
  5576. },
  5577. "total": {
  5578. "type": "integer"
  5579. }
  5580. }
  5581. },
  5582. "model.AuditConn": {
  5583. "type": "object",
  5584. "properties": {
  5585. "action": {
  5586. "type": "string"
  5587. },
  5588. "close_time": {
  5589. "type": "integer"
  5590. },
  5591. "conn_id": {
  5592. "type": "integer"
  5593. },
  5594. "created_at": {
  5595. "type": "string"
  5596. },
  5597. "from_name": {
  5598. "type": "string"
  5599. },
  5600. "from_peer": {
  5601. "type": "string"
  5602. },
  5603. "id": {
  5604. "type": "integer"
  5605. },
  5606. "ip": {
  5607. "type": "string"
  5608. },
  5609. "peer_id": {
  5610. "type": "string"
  5611. },
  5612. "session_id": {
  5613. "type": "string"
  5614. },
  5615. "type": {
  5616. "type": "integer"
  5617. },
  5618. "updated_at": {
  5619. "type": "string"
  5620. },
  5621. "uuid": {
  5622. "type": "string"
  5623. }
  5624. }
  5625. },
  5626. "model.AuditConnList": {
  5627. "type": "object",
  5628. "properties": {
  5629. "list": {
  5630. "type": "array",
  5631. "items": {
  5632. "$ref": "#/definitions/model.AuditConn"
  5633. }
  5634. },
  5635. "page": {
  5636. "type": "integer"
  5637. },
  5638. "page_size": {
  5639. "type": "integer"
  5640. },
  5641. "total": {
  5642. "type": "integer"
  5643. }
  5644. }
  5645. },
  5646. "model.AuditFile": {
  5647. "type": "object",
  5648. "properties": {
  5649. "created_at": {
  5650. "type": "string"
  5651. },
  5652. "from_name": {
  5653. "type": "string"
  5654. },
  5655. "from_peer": {
  5656. "type": "string"
  5657. },
  5658. "id": {
  5659. "type": "integer"
  5660. },
  5661. "info": {
  5662. "type": "string"
  5663. },
  5664. "ip": {
  5665. "type": "string"
  5666. },
  5667. "is_file": {
  5668. "type": "boolean"
  5669. },
  5670. "num": {
  5671. "type": "integer"
  5672. },
  5673. "path": {
  5674. "type": "string"
  5675. },
  5676. "peer_id": {
  5677. "type": "string"
  5678. },
  5679. "type": {
  5680. "type": "integer"
  5681. },
  5682. "updated_at": {
  5683. "type": "string"
  5684. },
  5685. "uuid": {
  5686. "type": "string"
  5687. }
  5688. }
  5689. },
  5690. "model.AuditFileList": {
  5691. "type": "object",
  5692. "properties": {
  5693. "list": {
  5694. "type": "array",
  5695. "items": {
  5696. "$ref": "#/definitions/model.AuditFile"
  5697. }
  5698. },
  5699. "page": {
  5700. "type": "integer"
  5701. },
  5702. "page_size": {
  5703. "type": "integer"
  5704. },
  5705. "total": {
  5706. "type": "integer"
  5707. }
  5708. }
  5709. },
  5710. "model.Group": {
  5711. "type": "object",
  5712. "properties": {
  5713. "created_at": {
  5714. "type": "string"
  5715. },
  5716. "id": {
  5717. "type": "integer"
  5718. },
  5719. "name": {
  5720. "type": "string"
  5721. },
  5722. "type": {
  5723. "type": "integer"
  5724. },
  5725. "updated_at": {
  5726. "type": "string"
  5727. }
  5728. }
  5729. },
  5730. "model.GroupList": {
  5731. "type": "object",
  5732. "properties": {
  5733. "list": {
  5734. "type": "array",
  5735. "items": {
  5736. "$ref": "#/definitions/model.Group"
  5737. }
  5738. },
  5739. "page": {
  5740. "type": "integer"
  5741. },
  5742. "page_size": {
  5743. "type": "integer"
  5744. },
  5745. "total": {
  5746. "type": "integer"
  5747. }
  5748. }
  5749. },
  5750. "model.LoginLog": {
  5751. "type": "object",
  5752. "properties": {
  5753. "client": {
  5754. "description": "webadmin,webclient,app,",
  5755. "type": "string"
  5756. },
  5757. "created_at": {
  5758. "type": "string"
  5759. },
  5760. "device_id": {
  5761. "type": "string"
  5762. },
  5763. "id": {
  5764. "type": "integer"
  5765. },
  5766. "ip": {
  5767. "type": "string"
  5768. },
  5769. "platform": {
  5770. "description": "windows,linux,mac,android,ios",
  5771. "type": "string"
  5772. },
  5773. "type": {
  5774. "description": "account,oauth",
  5775. "type": "string"
  5776. },
  5777. "updated_at": {
  5778. "type": "string"
  5779. },
  5780. "user_id": {
  5781. "type": "integer"
  5782. },
  5783. "user_token_id": {
  5784. "type": "integer"
  5785. },
  5786. "uuid": {
  5787. "type": "string"
  5788. }
  5789. }
  5790. },
  5791. "model.LoginLogList": {
  5792. "type": "object",
  5793. "properties": {
  5794. "list": {
  5795. "type": "array",
  5796. "items": {
  5797. "$ref": "#/definitions/model.LoginLog"
  5798. }
  5799. },
  5800. "page": {
  5801. "type": "integer"
  5802. },
  5803. "page_size": {
  5804. "type": "integer"
  5805. },
  5806. "total": {
  5807. "type": "integer"
  5808. }
  5809. }
  5810. },
  5811. "model.Oauth": {
  5812. "type": "object",
  5813. "properties": {
  5814. "auto_register": {
  5815. "type": "boolean"
  5816. },
  5817. "client_id": {
  5818. "type": "string"
  5819. },
  5820. "client_secret": {
  5821. "type": "string"
  5822. },
  5823. "created_at": {
  5824. "type": "string"
  5825. },
  5826. "id": {
  5827. "type": "integer"
  5828. },
  5829. "issuer": {
  5830. "type": "string"
  5831. },
  5832. "oauth_type": {
  5833. "type": "string"
  5834. },
  5835. "op": {
  5836. "type": "string"
  5837. },
  5838. "redirect_url": {
  5839. "type": "string"
  5840. },
  5841. "scopes": {
  5842. "type": "string"
  5843. },
  5844. "updated_at": {
  5845. "type": "string"
  5846. }
  5847. }
  5848. },
  5849. "model.OauthList": {
  5850. "type": "object",
  5851. "properties": {
  5852. "list": {
  5853. "type": "array",
  5854. "items": {
  5855. "$ref": "#/definitions/model.Oauth"
  5856. }
  5857. },
  5858. "page": {
  5859. "type": "integer"
  5860. },
  5861. "page_size": {
  5862. "type": "integer"
  5863. },
  5864. "total": {
  5865. "type": "integer"
  5866. }
  5867. }
  5868. },
  5869. "model.Peer": {
  5870. "type": "object",
  5871. "properties": {
  5872. "cpu": {
  5873. "type": "string"
  5874. },
  5875. "created_at": {
  5876. "type": "string"
  5877. },
  5878. "hostname": {
  5879. "type": "string"
  5880. },
  5881. "id": {
  5882. "type": "string"
  5883. },
  5884. "last_online_ip": {
  5885. "type": "string"
  5886. },
  5887. "last_online_time": {
  5888. "type": "integer"
  5889. },
  5890. "memory": {
  5891. "type": "string"
  5892. },
  5893. "os": {
  5894. "type": "string"
  5895. },
  5896. "row_id": {
  5897. "type": "integer"
  5898. },
  5899. "updated_at": {
  5900. "type": "string"
  5901. },
  5902. "user": {
  5903. "$ref": "#/definitions/model.User"
  5904. },
  5905. "user_id": {
  5906. "type": "integer"
  5907. },
  5908. "username": {
  5909. "type": "string"
  5910. },
  5911. "uuid": {
  5912. "type": "string"
  5913. },
  5914. "version": {
  5915. "type": "string"
  5916. }
  5917. }
  5918. },
  5919. "model.PeerList": {
  5920. "type": "object",
  5921. "properties": {
  5922. "list": {
  5923. "type": "array",
  5924. "items": {
  5925. "$ref": "#/definitions/model.Peer"
  5926. }
  5927. },
  5928. "page": {
  5929. "type": "integer"
  5930. },
  5931. "page_size": {
  5932. "type": "integer"
  5933. },
  5934. "total": {
  5935. "type": "integer"
  5936. }
  5937. }
  5938. },
  5939. "model.StatusCode": {
  5940. "type": "integer",
  5941. "enum": [
  5942. 1,
  5943. 2
  5944. ],
  5945. "x-enum-comments": {
  5946. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  5947. "COMMON_STATUS_ENABLE": "通用状态 启用"
  5948. },
  5949. "x-enum-varnames": [
  5950. "COMMON_STATUS_ENABLE",
  5951. "COMMON_STATUS_DISABLED"
  5952. ]
  5953. },
  5954. "model.Tag": {
  5955. "type": "object",
  5956. "properties": {
  5957. "collection": {
  5958. "$ref": "#/definitions/model.AddressBookCollection"
  5959. },
  5960. "collection_id": {
  5961. "type": "integer"
  5962. },
  5963. "color": {
  5964. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  5965. "type": "integer"
  5966. },
  5967. "created_at": {
  5968. "type": "string"
  5969. },
  5970. "id": {
  5971. "type": "integer"
  5972. },
  5973. "name": {
  5974. "type": "string"
  5975. },
  5976. "updated_at": {
  5977. "type": "string"
  5978. },
  5979. "user_id": {
  5980. "type": "integer"
  5981. }
  5982. }
  5983. },
  5984. "model.TagList": {
  5985. "type": "object",
  5986. "properties": {
  5987. "list": {
  5988. "type": "array",
  5989. "items": {
  5990. "$ref": "#/definitions/model.Tag"
  5991. }
  5992. },
  5993. "page": {
  5994. "type": "integer"
  5995. },
  5996. "page_size": {
  5997. "type": "integer"
  5998. },
  5999. "total": {
  6000. "type": "integer"
  6001. }
  6002. }
  6003. },
  6004. "model.User": {
  6005. "type": "object",
  6006. "properties": {
  6007. "avatar": {
  6008. "type": "string"
  6009. },
  6010. "created_at": {
  6011. "type": "string"
  6012. },
  6013. "email": {
  6014. "type": "string"
  6015. },
  6016. "group_id": {
  6017. "type": "integer"
  6018. },
  6019. "id": {
  6020. "type": "integer"
  6021. },
  6022. "is_admin": {
  6023. "type": "boolean"
  6024. },
  6025. "nickname": {
  6026. "type": "string"
  6027. },
  6028. "status": {
  6029. "$ref": "#/definitions/model.StatusCode"
  6030. },
  6031. "updated_at": {
  6032. "type": "string"
  6033. },
  6034. "username": {
  6035. "type": "string"
  6036. }
  6037. }
  6038. },
  6039. "model.UserList": {
  6040. "type": "object",
  6041. "properties": {
  6042. "list": {
  6043. "type": "array",
  6044. "items": {
  6045. "$ref": "#/definitions/model.User"
  6046. }
  6047. },
  6048. "page": {
  6049. "type": "integer"
  6050. },
  6051. "page_size": {
  6052. "type": "integer"
  6053. },
  6054. "total": {
  6055. "type": "integer"
  6056. }
  6057. }
  6058. },
  6059. "model.UserToken": {
  6060. "type": "object",
  6061. "properties": {
  6062. "created_at": {
  6063. "type": "string"
  6064. },
  6065. "device_id": {
  6066. "type": "string"
  6067. },
  6068. "device_uuid": {
  6069. "type": "string"
  6070. },
  6071. "expired_at": {
  6072. "type": "integer"
  6073. },
  6074. "id": {
  6075. "type": "integer"
  6076. },
  6077. "token": {
  6078. "type": "string"
  6079. },
  6080. "updated_at": {
  6081. "type": "string"
  6082. },
  6083. "user_id": {
  6084. "type": "integer"
  6085. }
  6086. }
  6087. },
  6088. "model.UserTokenList": {
  6089. "type": "object",
  6090. "properties": {
  6091. "list": {
  6092. "type": "array",
  6093. "items": {
  6094. "$ref": "#/definitions/model.UserToken"
  6095. }
  6096. },
  6097. "page": {
  6098. "type": "integer"
  6099. },
  6100. "page_size": {
  6101. "type": "integer"
  6102. },
  6103. "total": {
  6104. "type": "integer"
  6105. }
  6106. }
  6107. },
  6108. "response.ErrorResponse": {
  6109. "type": "object",
  6110. "properties": {
  6111. "error": {
  6112. "type": "string"
  6113. }
  6114. }
  6115. },
  6116. "response.Response": {
  6117. "type": "object",
  6118. "properties": {
  6119. "code": {
  6120. "type": "integer"
  6121. },
  6122. "data": {},
  6123. "message": {
  6124. "type": "string"
  6125. }
  6126. }
  6127. }
  6128. },
  6129. "securityDefinitions": {
  6130. "BearerAuth": {
  6131. "type": "apiKey",
  6132. "name": "Authorization",
  6133. "in": "header"
  6134. },
  6135. "token": {
  6136. "type": "apiKey",
  6137. "name": "api-token",
  6138. "in": "header"
  6139. }
  6140. }
  6141. }`
  6142. // SwaggerInfoadmin holds exported Swagger Info so clients can modify it
  6143. var SwaggerInfoadmin = &swag.Spec{
  6144. Version: "1.0",
  6145. Host: "",
  6146. BasePath: "/api",
  6147. Schemes: []string{},
  6148. Title: "管理系统API",
  6149. Description: "接口",
  6150. InfoInstanceName: "admin",
  6151. SwaggerTemplate: docTemplateadmin,
  6152. LeftDelim: "{{",
  6153. RightDelim: "}}",
  6154. }
  6155. func init() {
  6156. swag.Register(SwaggerInfoadmin.InstanceName(), SwaggerInfoadmin)
  6157. }