admin_docs.go 206 KB

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