admin_swagger.json 205 KB

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