admin_swagger.json 216 KB

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