admin_swagger.json 201 KB

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