admin_swagger.json 167 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164
  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/create": {
  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/delete": {
  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. "$ref": "#/definitions/response.Response"
  102. }
  103. },
  104. "500": {
  105. "description": "Internal Server Error",
  106. "schema": {
  107. "$ref": "#/definitions/response.Response"
  108. }
  109. }
  110. }
  111. }
  112. },
  113. "/admin/address_book/detail/{id}": {
  114. "get": {
  115. "security": [
  116. {
  117. "token": []
  118. }
  119. ],
  120. "description": "地址簿详情",
  121. "consumes": [
  122. "application/json"
  123. ],
  124. "produces": [
  125. "application/json"
  126. ],
  127. "tags": [
  128. "地址簿"
  129. ],
  130. "summary": "地址簿详情",
  131. "parameters": [
  132. {
  133. "type": "integer",
  134. "description": "ID",
  135. "name": "id",
  136. "in": "path",
  137. "required": true
  138. }
  139. ],
  140. "responses": {
  141. "200": {
  142. "description": "OK",
  143. "schema": {
  144. "allOf": [
  145. {
  146. "$ref": "#/definitions/response.Response"
  147. },
  148. {
  149. "type": "object",
  150. "properties": {
  151. "data": {
  152. "$ref": "#/definitions/model.AddressBook"
  153. }
  154. }
  155. }
  156. ]
  157. }
  158. },
  159. "500": {
  160. "description": "Internal Server Error",
  161. "schema": {
  162. "$ref": "#/definitions/response.Response"
  163. }
  164. }
  165. }
  166. }
  167. },
  168. "/admin/address_book/list": {
  169. "get": {
  170. "security": [
  171. {
  172. "token": []
  173. }
  174. ],
  175. "description": "地址簿列表",
  176. "consumes": [
  177. "application/json"
  178. ],
  179. "produces": [
  180. "application/json"
  181. ],
  182. "tags": [
  183. "地址簿"
  184. ],
  185. "summary": "地址簿列表",
  186. "parameters": [
  187. {
  188. "type": "integer",
  189. "description": "页码",
  190. "name": "page",
  191. "in": "query"
  192. },
  193. {
  194. "type": "integer",
  195. "description": "页大小",
  196. "name": "page_size",
  197. "in": "query"
  198. },
  199. {
  200. "type": "integer",
  201. "description": "用户id",
  202. "name": "user_id",
  203. "in": "query"
  204. },
  205. {
  206. "type": "integer",
  207. "description": "是否是我的",
  208. "name": "is_my",
  209. "in": "query"
  210. }
  211. ],
  212. "responses": {
  213. "200": {
  214. "description": "OK",
  215. "schema": {
  216. "allOf": [
  217. {
  218. "$ref": "#/definitions/response.Response"
  219. },
  220. {
  221. "type": "object",
  222. "properties": {
  223. "data": {
  224. "$ref": "#/definitions/model.AddressBookList"
  225. }
  226. }
  227. }
  228. ]
  229. }
  230. },
  231. "500": {
  232. "description": "Internal Server Error",
  233. "schema": {
  234. "$ref": "#/definitions/response.Response"
  235. }
  236. }
  237. }
  238. }
  239. },
  240. "/admin/address_book/share": {
  241. "post": {
  242. "security": [
  243. {
  244. "token": []
  245. }
  246. ],
  247. "description": "地址簿分享",
  248. "consumes": [
  249. "application/json"
  250. ],
  251. "produces": [
  252. "application/json"
  253. ],
  254. "tags": [
  255. "地址簿"
  256. ],
  257. "summary": "地址簿分享",
  258. "parameters": [
  259. {
  260. "description": "地址簿信息",
  261. "name": "body",
  262. "in": "body",
  263. "required": true,
  264. "schema": {
  265. "$ref": "#/definitions/admin.ShareByWebClientForm"
  266. }
  267. }
  268. ],
  269. "responses": {
  270. "200": {
  271. "description": "OK",
  272. "schema": {
  273. "$ref": "#/definitions/response.Response"
  274. }
  275. },
  276. "500": {
  277. "description": "Internal Server Error",
  278. "schema": {
  279. "$ref": "#/definitions/response.Response"
  280. }
  281. }
  282. }
  283. }
  284. },
  285. "/admin/address_book/update": {
  286. "post": {
  287. "security": [
  288. {
  289. "token": []
  290. }
  291. ],
  292. "description": "地址簿编辑",
  293. "consumes": [
  294. "application/json"
  295. ],
  296. "produces": [
  297. "application/json"
  298. ],
  299. "tags": [
  300. "地址簿"
  301. ],
  302. "summary": "地址簿编辑",
  303. "parameters": [
  304. {
  305. "description": "地址簿信息",
  306. "name": "body",
  307. "in": "body",
  308. "required": true,
  309. "schema": {
  310. "$ref": "#/definitions/admin.AddressBookForm"
  311. }
  312. }
  313. ],
  314. "responses": {
  315. "200": {
  316. "description": "OK",
  317. "schema": {
  318. "allOf": [
  319. {
  320. "$ref": "#/definitions/response.Response"
  321. },
  322. {
  323. "type": "object",
  324. "properties": {
  325. "data": {
  326. "$ref": "#/definitions/model.AddressBook"
  327. }
  328. }
  329. }
  330. ]
  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_collection/create": {
  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/model.AddressBookCollection"
  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.AddressBookCollection"
  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/delete": {
  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. "$ref": "#/definitions/response.Response"
  433. }
  434. },
  435. "500": {
  436. "description": "Internal Server Error",
  437. "schema": {
  438. "$ref": "#/definitions/response.Response"
  439. }
  440. }
  441. }
  442. }
  443. },
  444. "/admin/address_book_collection/detail/{id}": {
  445. "get": {
  446. "security": [
  447. {
  448. "token": []
  449. }
  450. ],
  451. "description": "地址簿名称详情",
  452. "consumes": [
  453. "application/json"
  454. ],
  455. "produces": [
  456. "application/json"
  457. ],
  458. "tags": [
  459. "地址簿名称"
  460. ],
  461. "summary": "地址簿名称详情",
  462. "parameters": [
  463. {
  464. "type": "integer",
  465. "description": "ID",
  466. "name": "id",
  467. "in": "path",
  468. "required": true
  469. }
  470. ],
  471. "responses": {
  472. "200": {
  473. "description": "OK",
  474. "schema": {
  475. "allOf": [
  476. {
  477. "$ref": "#/definitions/response.Response"
  478. },
  479. {
  480. "type": "object",
  481. "properties": {
  482. "data": {
  483. "$ref": "#/definitions/model.AddressBookCollection"
  484. }
  485. }
  486. }
  487. ]
  488. }
  489. },
  490. "500": {
  491. "description": "Internal Server Error",
  492. "schema": {
  493. "$ref": "#/definitions/response.Response"
  494. }
  495. }
  496. }
  497. }
  498. },
  499. "/admin/address_book_collection/list": {
  500. "get": {
  501. "security": [
  502. {
  503. "token": []
  504. }
  505. ],
  506. "description": "地址簿名称列表",
  507. "consumes": [
  508. "application/json"
  509. ],
  510. "produces": [
  511. "application/json"
  512. ],
  513. "tags": [
  514. "地址簿名称"
  515. ],
  516. "summary": "地址簿名称列表",
  517. "parameters": [
  518. {
  519. "type": "integer",
  520. "description": "页码",
  521. "name": "page",
  522. "in": "query"
  523. },
  524. {
  525. "type": "integer",
  526. "description": "页大小",
  527. "name": "page_size",
  528. "in": "query"
  529. },
  530. {
  531. "type": "integer",
  532. "description": "是否是我的",
  533. "name": "is_my",
  534. "in": "query"
  535. },
  536. {
  537. "type": "integer",
  538. "description": "用户id",
  539. "name": "user_id",
  540. "in": "query"
  541. }
  542. ],
  543. "responses": {
  544. "200": {
  545. "description": "OK",
  546. "schema": {
  547. "allOf": [
  548. {
  549. "$ref": "#/definitions/response.Response"
  550. },
  551. {
  552. "type": "object",
  553. "properties": {
  554. "data": {
  555. "$ref": "#/definitions/model.AddressBookCollectionList"
  556. }
  557. }
  558. }
  559. ]
  560. }
  561. },
  562. "500": {
  563. "description": "Internal Server Error",
  564. "schema": {
  565. "$ref": "#/definitions/response.Response"
  566. }
  567. }
  568. }
  569. }
  570. },
  571. "/admin/address_book_collection/update": {
  572. "post": {
  573. "security": [
  574. {
  575. "token": []
  576. }
  577. ],
  578. "description": "地址簿名称编辑",
  579. "consumes": [
  580. "application/json"
  581. ],
  582. "produces": [
  583. "application/json"
  584. ],
  585. "tags": [
  586. "地址簿名称"
  587. ],
  588. "summary": "地址簿名称编辑",
  589. "parameters": [
  590. {
  591. "description": "地址簿名称信息",
  592. "name": "body",
  593. "in": "body",
  594. "required": true,
  595. "schema": {
  596. "$ref": "#/definitions/model.AddressBookCollection"
  597. }
  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.AddressBookCollection"
  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_rule/create": {
  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.AddressBookCollectionRule"
  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/delete": {
  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. "$ref": "#/definitions/response.Response"
  719. }
  720. },
  721. "500": {
  722. "description": "Internal Server Error",
  723. "schema": {
  724. "$ref": "#/definitions/response.Response"
  725. }
  726. }
  727. }
  728. }
  729. },
  730. "/admin/address_book_collection_rule/detail/{id}": {
  731. "get": {
  732. "security": [
  733. {
  734. "token": []
  735. }
  736. ],
  737. "description": "地址簿规则详情",
  738. "consumes": [
  739. "application/json"
  740. ],
  741. "produces": [
  742. "application/json"
  743. ],
  744. "tags": [
  745. "地址簿规则"
  746. ],
  747. "summary": "地址簿规则详情",
  748. "parameters": [
  749. {
  750. "type": "integer",
  751. "description": "ID",
  752. "name": "id",
  753. "in": "path",
  754. "required": true
  755. }
  756. ],
  757. "responses": {
  758. "200": {
  759. "description": "OK",
  760. "schema": {
  761. "allOf": [
  762. {
  763. "$ref": "#/definitions/response.Response"
  764. },
  765. {
  766. "type": "object",
  767. "properties": {
  768. "data": {
  769. "$ref": "#/definitions/model.AddressBookCollectionRule"
  770. }
  771. }
  772. }
  773. ]
  774. }
  775. },
  776. "500": {
  777. "description": "Internal Server Error",
  778. "schema": {
  779. "$ref": "#/definitions/response.Response"
  780. }
  781. }
  782. }
  783. }
  784. },
  785. "/admin/address_book_collection_rule/list": {
  786. "get": {
  787. "security": [
  788. {
  789. "token": []
  790. }
  791. ],
  792. "description": "地址簿规则列表",
  793. "consumes": [
  794. "application/json"
  795. ],
  796. "produces": [
  797. "application/json"
  798. ],
  799. "tags": [
  800. "地址簿规则"
  801. ],
  802. "summary": "地址簿规则列表",
  803. "parameters": [
  804. {
  805. "type": "integer",
  806. "description": "页码",
  807. "name": "page",
  808. "in": "query"
  809. },
  810. {
  811. "type": "integer",
  812. "description": "页大小",
  813. "name": "page_size",
  814. "in": "query"
  815. },
  816. {
  817. "type": "integer",
  818. "description": "是否是我的",
  819. "name": "is_my",
  820. "in": "query"
  821. },
  822. {
  823. "type": "integer",
  824. "description": "用户id",
  825. "name": "user_id",
  826. "in": "query"
  827. },
  828. {
  829. "type": "integer",
  830. "description": "地址簿集合id",
  831. "name": "collection_id",
  832. "in": "query"
  833. }
  834. ],
  835. "responses": {
  836. "200": {
  837. "description": "OK",
  838. "schema": {
  839. "allOf": [
  840. {
  841. "$ref": "#/definitions/response.Response"
  842. },
  843. {
  844. "type": "object",
  845. "properties": {
  846. "data": {
  847. "$ref": "#/definitions/model.AddressBookCollectionList"
  848. }
  849. }
  850. }
  851. ]
  852. }
  853. },
  854. "500": {
  855. "description": "Internal Server Error",
  856. "schema": {
  857. "$ref": "#/definitions/response.Response"
  858. }
  859. }
  860. }
  861. }
  862. },
  863. "/admin/address_book_collection_rule/update": {
  864. "post": {
  865. "security": [
  866. {
  867. "token": []
  868. }
  869. ],
  870. "description": "地址簿规则编辑",
  871. "consumes": [
  872. "application/json"
  873. ],
  874. "produces": [
  875. "application/json"
  876. ],
  877. "tags": [
  878. "地址簿规则"
  879. ],
  880. "summary": "地址簿规则编辑",
  881. "parameters": [
  882. {
  883. "description": "地址簿规则信息",
  884. "name": "body",
  885. "in": "body",
  886. "required": true,
  887. "schema": {
  888. "$ref": "#/definitions/model.AddressBookCollectionRule"
  889. }
  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.AddressBookCollection"
  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/app-config": {
  921. "get": {
  922. "security": [
  923. {
  924. "token": []
  925. }
  926. ],
  927. "description": "APP服务配置",
  928. "consumes": [
  929. "application/json"
  930. ],
  931. "produces": [
  932. "application/json"
  933. ],
  934. "tags": [
  935. "ADMIN"
  936. ],
  937. "summary": "APP服务配置",
  938. "responses": {
  939. "200": {
  940. "description": "OK",
  941. "schema": {
  942. "$ref": "#/definitions/response.Response"
  943. }
  944. },
  945. "500": {
  946. "description": "Internal Server Error",
  947. "schema": {
  948. "$ref": "#/definitions/response.Response"
  949. }
  950. }
  951. }
  952. }
  953. },
  954. "/admin/audit_conn/batchDelete": {
  955. "post": {
  956. "security": [
  957. {
  958. "token": []
  959. }
  960. ],
  961. "description": "链接日志批量删除",
  962. "consumes": [
  963. "application/json"
  964. ],
  965. "produces": [
  966. "application/json"
  967. ],
  968. "tags": [
  969. "链接日志"
  970. ],
  971. "summary": "链接日志批量删除",
  972. "parameters": [
  973. {
  974. "description": "链接日志",
  975. "name": "body",
  976. "in": "body",
  977. "required": true,
  978. "schema": {
  979. "$ref": "#/definitions/admin.AuditConnLogIds"
  980. }
  981. }
  982. ],
  983. "responses": {
  984. "200": {
  985. "description": "OK",
  986. "schema": {
  987. "$ref": "#/definitions/response.Response"
  988. }
  989. },
  990. "500": {
  991. "description": "Internal Server Error",
  992. "schema": {
  993. "$ref": "#/definitions/response.Response"
  994. }
  995. }
  996. }
  997. }
  998. },
  999. "/admin/audit_conn/delete": {
  1000. "post": {
  1001. "security": [
  1002. {
  1003. "token": []
  1004. }
  1005. ],
  1006. "description": "链接日志删除",
  1007. "consumes": [
  1008. "application/json"
  1009. ],
  1010. "produces": [
  1011. "application/json"
  1012. ],
  1013. "tags": [
  1014. "链接日志"
  1015. ],
  1016. "summary": "链接日志删除",
  1017. "parameters": [
  1018. {
  1019. "description": "链接日志信息",
  1020. "name": "body",
  1021. "in": "body",
  1022. "required": true,
  1023. "schema": {
  1024. "$ref": "#/definitions/model.AuditConn"
  1025. }
  1026. }
  1027. ],
  1028. "responses": {
  1029. "200": {
  1030. "description": "OK",
  1031. "schema": {
  1032. "$ref": "#/definitions/response.Response"
  1033. }
  1034. },
  1035. "500": {
  1036. "description": "Internal Server Error",
  1037. "schema": {
  1038. "$ref": "#/definitions/response.Response"
  1039. }
  1040. }
  1041. }
  1042. }
  1043. },
  1044. "/admin/audit_conn/list": {
  1045. "get": {
  1046. "security": [
  1047. {
  1048. "token": []
  1049. }
  1050. ],
  1051. "description": "链接日志列表",
  1052. "consumes": [
  1053. "application/json"
  1054. ],
  1055. "produces": [
  1056. "application/json"
  1057. ],
  1058. "tags": [
  1059. "链接日志"
  1060. ],
  1061. "summary": "链接日志列表",
  1062. "parameters": [
  1063. {
  1064. "type": "integer",
  1065. "description": "页码",
  1066. "name": "page",
  1067. "in": "query"
  1068. },
  1069. {
  1070. "type": "integer",
  1071. "description": "页大小",
  1072. "name": "page_size",
  1073. "in": "query"
  1074. },
  1075. {
  1076. "type": "integer",
  1077. "description": "目标设备",
  1078. "name": "peer_id",
  1079. "in": "query"
  1080. },
  1081. {
  1082. "type": "integer",
  1083. "description": "来源设备",
  1084. "name": "from_peer",
  1085. "in": "query"
  1086. }
  1087. ],
  1088. "responses": {
  1089. "200": {
  1090. "description": "OK",
  1091. "schema": {
  1092. "allOf": [
  1093. {
  1094. "$ref": "#/definitions/response.Response"
  1095. },
  1096. {
  1097. "type": "object",
  1098. "properties": {
  1099. "data": {
  1100. "$ref": "#/definitions/model.AuditConnList"
  1101. }
  1102. }
  1103. }
  1104. ]
  1105. }
  1106. },
  1107. "500": {
  1108. "description": "Internal Server Error",
  1109. "schema": {
  1110. "$ref": "#/definitions/response.Response"
  1111. }
  1112. }
  1113. }
  1114. }
  1115. },
  1116. "/admin/audit_file/batchDelete": {
  1117. "post": {
  1118. "security": [
  1119. {
  1120. "token": []
  1121. }
  1122. ],
  1123. "description": "文件日志批量删除",
  1124. "consumes": [
  1125. "application/json"
  1126. ],
  1127. "produces": [
  1128. "application/json"
  1129. ],
  1130. "tags": [
  1131. "文件日志"
  1132. ],
  1133. "summary": "文件日志批量删除",
  1134. "parameters": [
  1135. {
  1136. "description": "文件日志",
  1137. "name": "body",
  1138. "in": "body",
  1139. "required": true,
  1140. "schema": {
  1141. "$ref": "#/definitions/admin.AuditFileLogIds"
  1142. }
  1143. }
  1144. ],
  1145. "responses": {
  1146. "200": {
  1147. "description": "OK",
  1148. "schema": {
  1149. "$ref": "#/definitions/response.Response"
  1150. }
  1151. },
  1152. "500": {
  1153. "description": "Internal Server Error",
  1154. "schema": {
  1155. "$ref": "#/definitions/response.Response"
  1156. }
  1157. }
  1158. }
  1159. }
  1160. },
  1161. "/admin/audit_file/delete": {
  1162. "post": {
  1163. "security": [
  1164. {
  1165. "token": []
  1166. }
  1167. ],
  1168. "description": "文件日志删除",
  1169. "consumes": [
  1170. "application/json"
  1171. ],
  1172. "produces": [
  1173. "application/json"
  1174. ],
  1175. "tags": [
  1176. "文件日志"
  1177. ],
  1178. "summary": "文件日志删除",
  1179. "parameters": [
  1180. {
  1181. "description": "文件日志信息",
  1182. "name": "body",
  1183. "in": "body",
  1184. "required": true,
  1185. "schema": {
  1186. "$ref": "#/definitions/model.AuditFile"
  1187. }
  1188. }
  1189. ],
  1190. "responses": {
  1191. "200": {
  1192. "description": "OK",
  1193. "schema": {
  1194. "$ref": "#/definitions/response.Response"
  1195. }
  1196. },
  1197. "500": {
  1198. "description": "Internal Server Error",
  1199. "schema": {
  1200. "$ref": "#/definitions/response.Response"
  1201. }
  1202. }
  1203. }
  1204. }
  1205. },
  1206. "/admin/audit_file/list": {
  1207. "get": {
  1208. "security": [
  1209. {
  1210. "token": []
  1211. }
  1212. ],
  1213. "description": "文件日志列表",
  1214. "consumes": [
  1215. "application/json"
  1216. ],
  1217. "produces": [
  1218. "application/json"
  1219. ],
  1220. "tags": [
  1221. "文件日志"
  1222. ],
  1223. "summary": "文件日志列表",
  1224. "parameters": [
  1225. {
  1226. "type": "integer",
  1227. "description": "页码",
  1228. "name": "page",
  1229. "in": "query"
  1230. },
  1231. {
  1232. "type": "integer",
  1233. "description": "页大小",
  1234. "name": "page_size",
  1235. "in": "query"
  1236. },
  1237. {
  1238. "type": "integer",
  1239. "description": "目标设备",
  1240. "name": "peer_id",
  1241. "in": "query"
  1242. },
  1243. {
  1244. "type": "integer",
  1245. "description": "来源设备",
  1246. "name": "from_peer",
  1247. "in": "query"
  1248. }
  1249. ],
  1250. "responses": {
  1251. "200": {
  1252. "description": "OK",
  1253. "schema": {
  1254. "allOf": [
  1255. {
  1256. "$ref": "#/definitions/response.Response"
  1257. },
  1258. {
  1259. "type": "object",
  1260. "properties": {
  1261. "data": {
  1262. "$ref": "#/definitions/model.AuditFileList"
  1263. }
  1264. }
  1265. }
  1266. ]
  1267. }
  1268. },
  1269. "500": {
  1270. "description": "Internal Server Error",
  1271. "schema": {
  1272. "$ref": "#/definitions/response.Response"
  1273. }
  1274. }
  1275. }
  1276. }
  1277. },
  1278. "/admin/config/admin": {
  1279. "get": {
  1280. "security": [
  1281. {
  1282. "token": []
  1283. }
  1284. ],
  1285. "description": "ADMIN服务配置",
  1286. "consumes": [
  1287. "application/json"
  1288. ],
  1289. "produces": [
  1290. "application/json"
  1291. ],
  1292. "tags": [
  1293. "ADMIN"
  1294. ],
  1295. "summary": "ADMIN服务配置",
  1296. "responses": {
  1297. "200": {
  1298. "description": "OK",
  1299. "schema": {
  1300. "$ref": "#/definitions/response.Response"
  1301. }
  1302. },
  1303. "500": {
  1304. "description": "Internal Server Error",
  1305. "schema": {
  1306. "$ref": "#/definitions/response.Response"
  1307. }
  1308. }
  1309. }
  1310. }
  1311. },
  1312. "/admin/config/app": {
  1313. "get": {
  1314. "security": [
  1315. {
  1316. "token": []
  1317. }
  1318. ],
  1319. "description": "APP服务配置",
  1320. "consumes": [
  1321. "application/json"
  1322. ],
  1323. "produces": [
  1324. "application/json"
  1325. ],
  1326. "tags": [
  1327. "ADMIN"
  1328. ],
  1329. "summary": "APP服务配置",
  1330. "responses": {
  1331. "200": {
  1332. "description": "OK",
  1333. "schema": {
  1334. "$ref": "#/definitions/response.Response"
  1335. }
  1336. },
  1337. "500": {
  1338. "description": "Internal Server Error",
  1339. "schema": {
  1340. "$ref": "#/definitions/response.Response"
  1341. }
  1342. }
  1343. }
  1344. }
  1345. },
  1346. "/admin/config/server": {
  1347. "get": {
  1348. "security": [
  1349. {
  1350. "token": []
  1351. }
  1352. ],
  1353. "description": "服务配置,给webclient提供api-server",
  1354. "consumes": [
  1355. "application/json"
  1356. ],
  1357. "produces": [
  1358. "application/json"
  1359. ],
  1360. "tags": [
  1361. "ADMIN"
  1362. ],
  1363. "summary": "RUSTDESK服务配置",
  1364. "responses": {
  1365. "200": {
  1366. "description": "OK",
  1367. "schema": {
  1368. "$ref": "#/definitions/response.Response"
  1369. }
  1370. },
  1371. "500": {
  1372. "description": "Internal Server Error",
  1373. "schema": {
  1374. "$ref": "#/definitions/response.Response"
  1375. }
  1376. }
  1377. }
  1378. }
  1379. },
  1380. "/admin/file/oss_token": {
  1381. "get": {
  1382. "security": [
  1383. {
  1384. "token": []
  1385. }
  1386. ],
  1387. "description": "获取ossToken",
  1388. "consumes": [
  1389. "application/json"
  1390. ],
  1391. "produces": [
  1392. "application/json"
  1393. ],
  1394. "tags": [
  1395. "文件"
  1396. ],
  1397. "summary": "获取ossToken",
  1398. "responses": {
  1399. "200": {
  1400. "description": "OK",
  1401. "schema": {
  1402. "$ref": "#/definitions/response.Response"
  1403. }
  1404. },
  1405. "500": {
  1406. "description": "Internal Server Error",
  1407. "schema": {
  1408. "$ref": "#/definitions/response.Response"
  1409. }
  1410. }
  1411. }
  1412. }
  1413. },
  1414. "/admin/file/upload": {
  1415. "post": {
  1416. "security": [
  1417. {
  1418. "token": []
  1419. }
  1420. ],
  1421. "description": "上传文件到本地",
  1422. "consumes": [
  1423. "multipart/form-data"
  1424. ],
  1425. "produces": [
  1426. "application/json"
  1427. ],
  1428. "tags": [
  1429. "文件"
  1430. ],
  1431. "summary": "上传文件到本地",
  1432. "parameters": [
  1433. {
  1434. "type": "file",
  1435. "description": "上传文件示例",
  1436. "name": "file",
  1437. "in": "formData",
  1438. "required": true
  1439. }
  1440. ],
  1441. "responses": {
  1442. "200": {
  1443. "description": "OK",
  1444. "schema": {
  1445. "$ref": "#/definitions/response.Response"
  1446. }
  1447. },
  1448. "500": {
  1449. "description": "Internal Server Error",
  1450. "schema": {
  1451. "$ref": "#/definitions/response.Response"
  1452. }
  1453. }
  1454. }
  1455. }
  1456. },
  1457. "/admin/group/create": {
  1458. "post": {
  1459. "security": [
  1460. {
  1461. "token": []
  1462. }
  1463. ],
  1464. "description": "创建群组",
  1465. "consumes": [
  1466. "application/json"
  1467. ],
  1468. "produces": [
  1469. "application/json"
  1470. ],
  1471. "tags": [
  1472. "群组"
  1473. ],
  1474. "summary": "创建群组",
  1475. "parameters": [
  1476. {
  1477. "description": "群组信息",
  1478. "name": "body",
  1479. "in": "body",
  1480. "required": true,
  1481. "schema": {
  1482. "$ref": "#/definitions/admin.GroupForm"
  1483. }
  1484. }
  1485. ],
  1486. "responses": {
  1487. "200": {
  1488. "description": "OK",
  1489. "schema": {
  1490. "allOf": [
  1491. {
  1492. "$ref": "#/definitions/response.Response"
  1493. },
  1494. {
  1495. "type": "object",
  1496. "properties": {
  1497. "data": {
  1498. "$ref": "#/definitions/model.Group"
  1499. }
  1500. }
  1501. }
  1502. ]
  1503. }
  1504. },
  1505. "500": {
  1506. "description": "Internal Server Error",
  1507. "schema": {
  1508. "$ref": "#/definitions/response.Response"
  1509. }
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "/admin/group/delete": {
  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. "$ref": "#/definitions/response.Response"
  1548. }
  1549. },
  1550. "500": {
  1551. "description": "Internal Server Error",
  1552. "schema": {
  1553. "$ref": "#/definitions/response.Response"
  1554. }
  1555. }
  1556. }
  1557. }
  1558. },
  1559. "/admin/group/detail/{id}": {
  1560. "get": {
  1561. "security": [
  1562. {
  1563. "token": []
  1564. }
  1565. ],
  1566. "description": "群组详情",
  1567. "consumes": [
  1568. "application/json"
  1569. ],
  1570. "produces": [
  1571. "application/json"
  1572. ],
  1573. "tags": [
  1574. "群组"
  1575. ],
  1576. "summary": "群组详情",
  1577. "parameters": [
  1578. {
  1579. "type": "integer",
  1580. "description": "ID",
  1581. "name": "id",
  1582. "in": "path",
  1583. "required": true
  1584. }
  1585. ],
  1586. "responses": {
  1587. "200": {
  1588. "description": "OK",
  1589. "schema": {
  1590. "allOf": [
  1591. {
  1592. "$ref": "#/definitions/response.Response"
  1593. },
  1594. {
  1595. "type": "object",
  1596. "properties": {
  1597. "data": {
  1598. "$ref": "#/definitions/model.Group"
  1599. }
  1600. }
  1601. }
  1602. ]
  1603. }
  1604. },
  1605. "500": {
  1606. "description": "Internal Server Error",
  1607. "schema": {
  1608. "$ref": "#/definitions/response.Response"
  1609. }
  1610. }
  1611. }
  1612. }
  1613. },
  1614. "/admin/group/list": {
  1615. "get": {
  1616. "security": [
  1617. {
  1618. "token": []
  1619. }
  1620. ],
  1621. "description": "群组列表",
  1622. "consumes": [
  1623. "application/json"
  1624. ],
  1625. "produces": [
  1626. "application/json"
  1627. ],
  1628. "tags": [
  1629. "群组"
  1630. ],
  1631. "summary": "群组列表",
  1632. "parameters": [
  1633. {
  1634. "type": "integer",
  1635. "description": "页码",
  1636. "name": "page",
  1637. "in": "query"
  1638. },
  1639. {
  1640. "type": "integer",
  1641. "description": "页大小",
  1642. "name": "page_size",
  1643. "in": "query"
  1644. }
  1645. ],
  1646. "responses": {
  1647. "200": {
  1648. "description": "OK",
  1649. "schema": {
  1650. "allOf": [
  1651. {
  1652. "$ref": "#/definitions/response.Response"
  1653. },
  1654. {
  1655. "type": "object",
  1656. "properties": {
  1657. "data": {
  1658. "$ref": "#/definitions/model.GroupList"
  1659. }
  1660. }
  1661. }
  1662. ]
  1663. }
  1664. },
  1665. "500": {
  1666. "description": "Internal Server Error",
  1667. "schema": {
  1668. "$ref": "#/definitions/response.Response"
  1669. }
  1670. }
  1671. }
  1672. }
  1673. },
  1674. "/admin/group/update": {
  1675. "post": {
  1676. "security": [
  1677. {
  1678. "token": []
  1679. }
  1680. ],
  1681. "description": "群组编辑",
  1682. "consumes": [
  1683. "application/json"
  1684. ],
  1685. "produces": [
  1686. "application/json"
  1687. ],
  1688. "tags": [
  1689. "群组"
  1690. ],
  1691. "summary": "群组编辑",
  1692. "parameters": [
  1693. {
  1694. "description": "群组信息",
  1695. "name": "body",
  1696. "in": "body",
  1697. "required": true,
  1698. "schema": {
  1699. "$ref": "#/definitions/admin.GroupForm"
  1700. }
  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.Group"
  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/login": {
  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/Gwen_http_request_admin.Login"
  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/admin.LoginPayload"
  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-options": {
  1789. "post": {
  1790. "description": "登录选项",
  1791. "consumes": [
  1792. "application/json"
  1793. ],
  1794. "produces": [
  1795. "application/json"
  1796. ],
  1797. "tags": [
  1798. "登录"
  1799. ],
  1800. "summary": "登录选项",
  1801. "responses": {
  1802. "200": {
  1803. "description": "OK",
  1804. "schema": {
  1805. "type": "array",
  1806. "items": {
  1807. "type": "string"
  1808. }
  1809. }
  1810. },
  1811. "500": {
  1812. "description": "Internal Server Error",
  1813. "schema": {
  1814. "$ref": "#/definitions/response.ErrorResponse"
  1815. }
  1816. }
  1817. }
  1818. }
  1819. },
  1820. "/admin/login_log/delete": {
  1821. "post": {
  1822. "security": [
  1823. {
  1824. "token": []
  1825. }
  1826. ],
  1827. "description": "登录日志批量删除",
  1828. "consumes": [
  1829. "application/json"
  1830. ],
  1831. "produces": [
  1832. "application/json"
  1833. ],
  1834. "tags": [
  1835. "登录日志"
  1836. ],
  1837. "summary": "登录日志批量删除",
  1838. "parameters": [
  1839. {
  1840. "description": "登录日志",
  1841. "name": "body",
  1842. "in": "body",
  1843. "required": true,
  1844. "schema": {
  1845. "$ref": "#/definitions/admin.LoginLogIds"
  1846. }
  1847. }
  1848. ],
  1849. "responses": {
  1850. "200": {
  1851. "description": "OK",
  1852. "schema": {
  1853. "$ref": "#/definitions/response.Response"
  1854. }
  1855. },
  1856. "500": {
  1857. "description": "Internal Server Error",
  1858. "schema": {
  1859. "$ref": "#/definitions/response.Response"
  1860. }
  1861. }
  1862. }
  1863. }
  1864. },
  1865. "/admin/login_log/detail/{id}": {
  1866. "get": {
  1867. "security": [
  1868. {
  1869. "token": []
  1870. }
  1871. ],
  1872. "description": "登录日志详情",
  1873. "consumes": [
  1874. "application/json"
  1875. ],
  1876. "produces": [
  1877. "application/json"
  1878. ],
  1879. "tags": [
  1880. "登录日志"
  1881. ],
  1882. "summary": "登录日志详情",
  1883. "parameters": [
  1884. {
  1885. "type": "integer",
  1886. "description": "ID",
  1887. "name": "id",
  1888. "in": "path",
  1889. "required": true
  1890. }
  1891. ],
  1892. "responses": {
  1893. "200": {
  1894. "description": "OK",
  1895. "schema": {
  1896. "allOf": [
  1897. {
  1898. "$ref": "#/definitions/response.Response"
  1899. },
  1900. {
  1901. "type": "object",
  1902. "properties": {
  1903. "data": {
  1904. "$ref": "#/definitions/model.LoginLog"
  1905. }
  1906. }
  1907. }
  1908. ]
  1909. }
  1910. },
  1911. "500": {
  1912. "description": "Internal Server Error",
  1913. "schema": {
  1914. "$ref": "#/definitions/response.Response"
  1915. }
  1916. }
  1917. }
  1918. }
  1919. },
  1920. "/admin/login_log/list": {
  1921. "get": {
  1922. "security": [
  1923. {
  1924. "token": []
  1925. }
  1926. ],
  1927. "description": "登录日志列表",
  1928. "consumes": [
  1929. "application/json"
  1930. ],
  1931. "produces": [
  1932. "application/json"
  1933. ],
  1934. "tags": [
  1935. "登录日志"
  1936. ],
  1937. "summary": "登录日志列表",
  1938. "parameters": [
  1939. {
  1940. "type": "integer",
  1941. "description": "页码",
  1942. "name": "page",
  1943. "in": "query"
  1944. },
  1945. {
  1946. "type": "integer",
  1947. "description": "页大小",
  1948. "name": "page_size",
  1949. "in": "query"
  1950. },
  1951. {
  1952. "type": "integer",
  1953. "description": "用户ID",
  1954. "name": "user_id",
  1955. "in": "query"
  1956. }
  1957. ],
  1958. "responses": {
  1959. "200": {
  1960. "description": "OK",
  1961. "schema": {
  1962. "allOf": [
  1963. {
  1964. "$ref": "#/definitions/response.Response"
  1965. },
  1966. {
  1967. "type": "object",
  1968. "properties": {
  1969. "data": {
  1970. "$ref": "#/definitions/model.LoginLogList"
  1971. }
  1972. }
  1973. }
  1974. ]
  1975. }
  1976. },
  1977. "500": {
  1978. "description": "Internal Server Error",
  1979. "schema": {
  1980. "$ref": "#/definitions/response.Response"
  1981. }
  1982. }
  1983. }
  1984. }
  1985. },
  1986. "/admin/logout": {
  1987. "post": {
  1988. "description": "登出",
  1989. "consumes": [
  1990. "application/json"
  1991. ],
  1992. "produces": [
  1993. "application/json"
  1994. ],
  1995. "tags": [
  1996. "登录"
  1997. ],
  1998. "summary": "登出",
  1999. "responses": {
  2000. "200": {
  2001. "description": "OK",
  2002. "schema": {
  2003. "$ref": "#/definitions/response.Response"
  2004. }
  2005. },
  2006. "500": {
  2007. "description": "Internal Server Error",
  2008. "schema": {
  2009. "$ref": "#/definitions/response.Response"
  2010. }
  2011. }
  2012. }
  2013. }
  2014. },
  2015. "/admin/my/share_record/batchDelete": {
  2016. "post": {
  2017. "security": [
  2018. {
  2019. "token": []
  2020. }
  2021. ],
  2022. "description": "批量删除我的分享记录",
  2023. "consumes": [
  2024. "application/json"
  2025. ],
  2026. "produces": [
  2027. "application/json"
  2028. ],
  2029. "tags": [
  2030. "我的"
  2031. ],
  2032. "summary": "批量删除我的分享记录",
  2033. "parameters": [
  2034. {
  2035. "description": "id",
  2036. "name": "body",
  2037. "in": "body",
  2038. "required": true,
  2039. "schema": {
  2040. "$ref": "#/definitions/admin.PeerShareRecordBatchDeleteForm"
  2041. }
  2042. }
  2043. ],
  2044. "responses": {
  2045. "200": {
  2046. "description": "OK",
  2047. "schema": {
  2048. "$ref": "#/definitions/response.Response"
  2049. }
  2050. },
  2051. "500": {
  2052. "description": "Internal Server Error",
  2053. "schema": {
  2054. "$ref": "#/definitions/response.Response"
  2055. }
  2056. }
  2057. }
  2058. }
  2059. },
  2060. "/admin/my/share_record/delete": {
  2061. "post": {
  2062. "security": [
  2063. {
  2064. "token": []
  2065. }
  2066. ],
  2067. "description": "分享记录删除",
  2068. "consumes": [
  2069. "application/json"
  2070. ],
  2071. "produces": [
  2072. "application/json"
  2073. ],
  2074. "tags": [
  2075. "我的"
  2076. ],
  2077. "summary": "分享记录删除",
  2078. "parameters": [
  2079. {
  2080. "description": "分享记录信息",
  2081. "name": "body",
  2082. "in": "body",
  2083. "required": true,
  2084. "schema": {
  2085. "$ref": "#/definitions/admin.ShareRecordForm"
  2086. }
  2087. }
  2088. ],
  2089. "responses": {
  2090. "200": {
  2091. "description": "OK",
  2092. "schema": {
  2093. "$ref": "#/definitions/response.Response"
  2094. }
  2095. },
  2096. "500": {
  2097. "description": "Internal Server Error",
  2098. "schema": {
  2099. "$ref": "#/definitions/response.Response"
  2100. }
  2101. }
  2102. }
  2103. }
  2104. },
  2105. "/admin/my/share_record/list": {
  2106. "get": {
  2107. "security": [
  2108. {
  2109. "token": []
  2110. }
  2111. ],
  2112. "description": "分享记录列表",
  2113. "consumes": [
  2114. "application/json"
  2115. ],
  2116. "produces": [
  2117. "application/json"
  2118. ],
  2119. "tags": [
  2120. "我的"
  2121. ],
  2122. "summary": "分享记录列表",
  2123. "parameters": [
  2124. {
  2125. "type": "integer",
  2126. "description": "页码",
  2127. "name": "page",
  2128. "in": "query"
  2129. },
  2130. {
  2131. "type": "integer",
  2132. "description": "页大小",
  2133. "name": "page_size",
  2134. "in": "query"
  2135. }
  2136. ],
  2137. "responses": {
  2138. "200": {
  2139. "description": "OK",
  2140. "schema": {
  2141. "$ref": "#/definitions/response.Response"
  2142. }
  2143. },
  2144. "500": {
  2145. "description": "Internal Server Error",
  2146. "schema": {
  2147. "$ref": "#/definitions/response.Response"
  2148. }
  2149. }
  2150. }
  2151. }
  2152. },
  2153. "/admin/oauth/create": {
  2154. "post": {
  2155. "security": [
  2156. {
  2157. "token": []
  2158. }
  2159. ],
  2160. "description": "创建Oauth",
  2161. "consumes": [
  2162. "application/json"
  2163. ],
  2164. "produces": [
  2165. "application/json"
  2166. ],
  2167. "tags": [
  2168. "Oauth"
  2169. ],
  2170. "summary": "创建Oauth",
  2171. "parameters": [
  2172. {
  2173. "description": "Oauth信息",
  2174. "name": "body",
  2175. "in": "body",
  2176. "required": true,
  2177. "schema": {
  2178. "$ref": "#/definitions/admin.OauthForm"
  2179. }
  2180. }
  2181. ],
  2182. "responses": {
  2183. "200": {
  2184. "description": "OK",
  2185. "schema": {
  2186. "allOf": [
  2187. {
  2188. "$ref": "#/definitions/response.Response"
  2189. },
  2190. {
  2191. "type": "object",
  2192. "properties": {
  2193. "data": {
  2194. "$ref": "#/definitions/model.Oauth"
  2195. }
  2196. }
  2197. }
  2198. ]
  2199. }
  2200. },
  2201. "500": {
  2202. "description": "Internal Server Error",
  2203. "schema": {
  2204. "$ref": "#/definitions/response.Response"
  2205. }
  2206. }
  2207. }
  2208. }
  2209. },
  2210. "/admin/oauth/delete": {
  2211. "post": {
  2212. "security": [
  2213. {
  2214. "token": []
  2215. }
  2216. ],
  2217. "description": "Oauth删除",
  2218. "consumes": [
  2219. "application/json"
  2220. ],
  2221. "produces": [
  2222. "application/json"
  2223. ],
  2224. "tags": [
  2225. "Oauth"
  2226. ],
  2227. "summary": "Oauth删除",
  2228. "parameters": [
  2229. {
  2230. "description": "Oauth信息",
  2231. "name": "body",
  2232. "in": "body",
  2233. "required": true,
  2234. "schema": {
  2235. "$ref": "#/definitions/admin.OauthForm"
  2236. }
  2237. }
  2238. ],
  2239. "responses": {
  2240. "200": {
  2241. "description": "OK",
  2242. "schema": {
  2243. "$ref": "#/definitions/response.Response"
  2244. }
  2245. },
  2246. "500": {
  2247. "description": "Internal Server Error",
  2248. "schema": {
  2249. "$ref": "#/definitions/response.Response"
  2250. }
  2251. }
  2252. }
  2253. }
  2254. },
  2255. "/admin/oauth/detail/{id}": {
  2256. "get": {
  2257. "security": [
  2258. {
  2259. "token": []
  2260. }
  2261. ],
  2262. "description": "Oauth详情",
  2263. "consumes": [
  2264. "application/json"
  2265. ],
  2266. "produces": [
  2267. "application/json"
  2268. ],
  2269. "tags": [
  2270. "Oauth"
  2271. ],
  2272. "summary": "Oauth详情",
  2273. "parameters": [
  2274. {
  2275. "type": "integer",
  2276. "description": "ID",
  2277. "name": "id",
  2278. "in": "path",
  2279. "required": true
  2280. }
  2281. ],
  2282. "responses": {
  2283. "200": {
  2284. "description": "OK",
  2285. "schema": {
  2286. "allOf": [
  2287. {
  2288. "$ref": "#/definitions/response.Response"
  2289. },
  2290. {
  2291. "type": "object",
  2292. "properties": {
  2293. "data": {
  2294. "$ref": "#/definitions/model.Oauth"
  2295. }
  2296. }
  2297. }
  2298. ]
  2299. }
  2300. },
  2301. "500": {
  2302. "description": "Internal Server Error",
  2303. "schema": {
  2304. "$ref": "#/definitions/response.Response"
  2305. }
  2306. }
  2307. }
  2308. }
  2309. },
  2310. "/admin/oauth/list": {
  2311. "get": {
  2312. "security": [
  2313. {
  2314. "token": []
  2315. }
  2316. ],
  2317. "description": "Oauth列表",
  2318. "consumes": [
  2319. "application/json"
  2320. ],
  2321. "produces": [
  2322. "application/json"
  2323. ],
  2324. "tags": [
  2325. "Oauth"
  2326. ],
  2327. "summary": "Oauth列表",
  2328. "parameters": [
  2329. {
  2330. "type": "integer",
  2331. "description": "页码",
  2332. "name": "page",
  2333. "in": "query"
  2334. },
  2335. {
  2336. "type": "integer",
  2337. "description": "页大小",
  2338. "name": "page_size",
  2339. "in": "query"
  2340. }
  2341. ],
  2342. "responses": {
  2343. "200": {
  2344. "description": "OK",
  2345. "schema": {
  2346. "allOf": [
  2347. {
  2348. "$ref": "#/definitions/response.Response"
  2349. },
  2350. {
  2351. "type": "object",
  2352. "properties": {
  2353. "data": {
  2354. "$ref": "#/definitions/model.OauthList"
  2355. }
  2356. }
  2357. }
  2358. ]
  2359. }
  2360. },
  2361. "500": {
  2362. "description": "Internal Server Error",
  2363. "schema": {
  2364. "$ref": "#/definitions/response.Response"
  2365. }
  2366. }
  2367. }
  2368. }
  2369. },
  2370. "/admin/oauth/update": {
  2371. "post": {
  2372. "security": [
  2373. {
  2374. "token": []
  2375. }
  2376. ],
  2377. "description": "Oauth编辑",
  2378. "consumes": [
  2379. "application/json"
  2380. ],
  2381. "produces": [
  2382. "application/json"
  2383. ],
  2384. "tags": [
  2385. "Oauth"
  2386. ],
  2387. "summary": "Oauth编辑",
  2388. "parameters": [
  2389. {
  2390. "description": "Oauth信息",
  2391. "name": "body",
  2392. "in": "body",
  2393. "required": true,
  2394. "schema": {
  2395. "$ref": "#/definitions/admin.OauthForm"
  2396. }
  2397. }
  2398. ],
  2399. "responses": {
  2400. "200": {
  2401. "description": "OK",
  2402. "schema": {
  2403. "allOf": [
  2404. {
  2405. "$ref": "#/definitions/response.Response"
  2406. },
  2407. {
  2408. "type": "object",
  2409. "properties": {
  2410. "data": {
  2411. "$ref": "#/definitions/model.OauthList"
  2412. }
  2413. }
  2414. }
  2415. ]
  2416. }
  2417. },
  2418. "500": {
  2419. "description": "Internal Server Error",
  2420. "schema": {
  2421. "$ref": "#/definitions/response.Response"
  2422. }
  2423. }
  2424. }
  2425. }
  2426. },
  2427. "/admin/oidc/auth": {
  2428. "post": {
  2429. "description": "OidcAuth",
  2430. "consumes": [
  2431. "application/json"
  2432. ],
  2433. "produces": [
  2434. "application/json"
  2435. ],
  2436. "tags": [
  2437. "Oauth"
  2438. ],
  2439. "summary": "OidcAuth",
  2440. "responses": {}
  2441. }
  2442. },
  2443. "/admin/oidc/auth-query": {
  2444. "get": {
  2445. "description": "OidcAuthQuery",
  2446. "consumes": [
  2447. "application/json"
  2448. ],
  2449. "produces": [
  2450. "application/json"
  2451. ],
  2452. "tags": [
  2453. "Oauth"
  2454. ],
  2455. "summary": "OidcAuthQuery",
  2456. "responses": {
  2457. "200": {
  2458. "description": "OK",
  2459. "schema": {
  2460. "allOf": [
  2461. {
  2462. "$ref": "#/definitions/response.Response"
  2463. },
  2464. {
  2465. "type": "object",
  2466. "properties": {
  2467. "data": {
  2468. "$ref": "#/definitions/admin.LoginPayload"
  2469. }
  2470. }
  2471. }
  2472. ]
  2473. }
  2474. },
  2475. "500": {
  2476. "description": "Internal Server Error",
  2477. "schema": {
  2478. "$ref": "#/definitions/response.Response"
  2479. }
  2480. }
  2481. }
  2482. }
  2483. },
  2484. "/admin/peer/batchDelete": {
  2485. "post": {
  2486. "security": [
  2487. {
  2488. "token": []
  2489. }
  2490. ],
  2491. "description": "批量设备删除",
  2492. "consumes": [
  2493. "application/json"
  2494. ],
  2495. "produces": [
  2496. "application/json"
  2497. ],
  2498. "tags": [
  2499. "设备"
  2500. ],
  2501. "summary": "批量设备删除",
  2502. "parameters": [
  2503. {
  2504. "description": "设备id",
  2505. "name": "body",
  2506. "in": "body",
  2507. "required": true,
  2508. "schema": {
  2509. "$ref": "#/definitions/admin.PeerBatchDeleteForm"
  2510. }
  2511. }
  2512. ],
  2513. "responses": {
  2514. "200": {
  2515. "description": "OK",
  2516. "schema": {
  2517. "$ref": "#/definitions/response.Response"
  2518. }
  2519. },
  2520. "500": {
  2521. "description": "Internal Server Error",
  2522. "schema": {
  2523. "$ref": "#/definitions/response.Response"
  2524. }
  2525. }
  2526. }
  2527. }
  2528. },
  2529. "/admin/peer/create": {
  2530. "post": {
  2531. "security": [
  2532. {
  2533. "token": []
  2534. }
  2535. ],
  2536. "description": "创建设备",
  2537. "consumes": [
  2538. "application/json"
  2539. ],
  2540. "produces": [
  2541. "application/json"
  2542. ],
  2543. "tags": [
  2544. "设备"
  2545. ],
  2546. "summary": "创建设备",
  2547. "parameters": [
  2548. {
  2549. "description": "设备信息",
  2550. "name": "body",
  2551. "in": "body",
  2552. "required": true,
  2553. "schema": {
  2554. "$ref": "#/definitions/admin.PeerForm"
  2555. }
  2556. }
  2557. ],
  2558. "responses": {
  2559. "200": {
  2560. "description": "OK",
  2561. "schema": {
  2562. "allOf": [
  2563. {
  2564. "$ref": "#/definitions/response.Response"
  2565. },
  2566. {
  2567. "type": "object",
  2568. "properties": {
  2569. "data": {
  2570. "$ref": "#/definitions/model.Peer"
  2571. }
  2572. }
  2573. }
  2574. ]
  2575. }
  2576. },
  2577. "500": {
  2578. "description": "Internal Server Error",
  2579. "schema": {
  2580. "$ref": "#/definitions/response.Response"
  2581. }
  2582. }
  2583. }
  2584. }
  2585. },
  2586. "/admin/peer/delete": {
  2587. "post": {
  2588. "security": [
  2589. {
  2590. "token": []
  2591. }
  2592. ],
  2593. "description": "设备删除",
  2594. "consumes": [
  2595. "application/json"
  2596. ],
  2597. "produces": [
  2598. "application/json"
  2599. ],
  2600. "tags": [
  2601. "设备"
  2602. ],
  2603. "summary": "设备删除",
  2604. "parameters": [
  2605. {
  2606. "description": "设备信息",
  2607. "name": "body",
  2608. "in": "body",
  2609. "required": true,
  2610. "schema": {
  2611. "$ref": "#/definitions/admin.PeerForm"
  2612. }
  2613. }
  2614. ],
  2615. "responses": {
  2616. "200": {
  2617. "description": "OK",
  2618. "schema": {
  2619. "$ref": "#/definitions/response.Response"
  2620. }
  2621. },
  2622. "500": {
  2623. "description": "Internal Server Error",
  2624. "schema": {
  2625. "$ref": "#/definitions/response.Response"
  2626. }
  2627. }
  2628. }
  2629. }
  2630. },
  2631. "/admin/peer/detail/{id}": {
  2632. "get": {
  2633. "security": [
  2634. {
  2635. "token": []
  2636. }
  2637. ],
  2638. "description": "设备详情",
  2639. "consumes": [
  2640. "application/json"
  2641. ],
  2642. "produces": [
  2643. "application/json"
  2644. ],
  2645. "tags": [
  2646. "设备"
  2647. ],
  2648. "summary": "设备详情",
  2649. "parameters": [
  2650. {
  2651. "type": "integer",
  2652. "description": "ID",
  2653. "name": "id",
  2654. "in": "path",
  2655. "required": true
  2656. }
  2657. ],
  2658. "responses": {
  2659. "200": {
  2660. "description": "OK",
  2661. "schema": {
  2662. "allOf": [
  2663. {
  2664. "$ref": "#/definitions/response.Response"
  2665. },
  2666. {
  2667. "type": "object",
  2668. "properties": {
  2669. "data": {
  2670. "$ref": "#/definitions/model.Peer"
  2671. }
  2672. }
  2673. }
  2674. ]
  2675. }
  2676. },
  2677. "500": {
  2678. "description": "Internal Server Error",
  2679. "schema": {
  2680. "$ref": "#/definitions/response.Response"
  2681. }
  2682. }
  2683. }
  2684. }
  2685. },
  2686. "/admin/peer/list": {
  2687. "get": {
  2688. "security": [
  2689. {
  2690. "token": []
  2691. }
  2692. ],
  2693. "description": "设备列表",
  2694. "consumes": [
  2695. "application/json"
  2696. ],
  2697. "produces": [
  2698. "application/json"
  2699. ],
  2700. "tags": [
  2701. "设备"
  2702. ],
  2703. "summary": "设备列表",
  2704. "parameters": [
  2705. {
  2706. "type": "integer",
  2707. "description": "页码",
  2708. "name": "page",
  2709. "in": "query"
  2710. },
  2711. {
  2712. "type": "integer",
  2713. "description": "页大小",
  2714. "name": "page_size",
  2715. "in": "query"
  2716. },
  2717. {
  2718. "type": "integer",
  2719. "description": "时间",
  2720. "name": "time_ago",
  2721. "in": "query"
  2722. },
  2723. {
  2724. "type": "string",
  2725. "description": "ID",
  2726. "name": "id",
  2727. "in": "query"
  2728. },
  2729. {
  2730. "type": "string",
  2731. "description": "主机名",
  2732. "name": "hostname",
  2733. "in": "query"
  2734. },
  2735. {
  2736. "type": "string",
  2737. "description": "uuids 用逗号分隔",
  2738. "name": "uuids",
  2739. "in": "query"
  2740. }
  2741. ],
  2742. "responses": {
  2743. "200": {
  2744. "description": "OK",
  2745. "schema": {
  2746. "allOf": [
  2747. {
  2748. "$ref": "#/definitions/response.Response"
  2749. },
  2750. {
  2751. "type": "object",
  2752. "properties": {
  2753. "data": {
  2754. "$ref": "#/definitions/model.PeerList"
  2755. }
  2756. }
  2757. }
  2758. ]
  2759. }
  2760. },
  2761. "500": {
  2762. "description": "Internal Server Error",
  2763. "schema": {
  2764. "$ref": "#/definitions/response.Response"
  2765. }
  2766. }
  2767. }
  2768. }
  2769. },
  2770. "/admin/peer/update": {
  2771. "post": {
  2772. "security": [
  2773. {
  2774. "token": []
  2775. }
  2776. ],
  2777. "description": "设备编辑",
  2778. "consumes": [
  2779. "application/json"
  2780. ],
  2781. "produces": [
  2782. "application/json"
  2783. ],
  2784. "tags": [
  2785. "设备"
  2786. ],
  2787. "summary": "设备编辑",
  2788. "parameters": [
  2789. {
  2790. "description": "设备信息",
  2791. "name": "body",
  2792. "in": "body",
  2793. "required": true,
  2794. "schema": {
  2795. "$ref": "#/definitions/admin.PeerForm"
  2796. }
  2797. }
  2798. ],
  2799. "responses": {
  2800. "200": {
  2801. "description": "OK",
  2802. "schema": {
  2803. "allOf": [
  2804. {
  2805. "$ref": "#/definitions/response.Response"
  2806. },
  2807. {
  2808. "type": "object",
  2809. "properties": {
  2810. "data": {
  2811. "$ref": "#/definitions/model.Peer"
  2812. }
  2813. }
  2814. }
  2815. ]
  2816. }
  2817. },
  2818. "500": {
  2819. "description": "Internal Server Error",
  2820. "schema": {
  2821. "$ref": "#/definitions/response.Response"
  2822. }
  2823. }
  2824. }
  2825. }
  2826. },
  2827. "/admin/server-config": {
  2828. "get": {
  2829. "security": [
  2830. {
  2831. "token": []
  2832. }
  2833. ],
  2834. "description": "服务配置,给webclient提供api-server",
  2835. "consumes": [
  2836. "application/json"
  2837. ],
  2838. "produces": [
  2839. "application/json"
  2840. ],
  2841. "tags": [
  2842. "ADMIN"
  2843. ],
  2844. "summary": "RUSTDESK服务配置",
  2845. "responses": {
  2846. "200": {
  2847. "description": "OK",
  2848. "schema": {
  2849. "$ref": "#/definitions/response.Response"
  2850. }
  2851. },
  2852. "500": {
  2853. "description": "Internal Server Error",
  2854. "schema": {
  2855. "$ref": "#/definitions/response.Response"
  2856. }
  2857. }
  2858. }
  2859. }
  2860. },
  2861. "/admin/share_record/batchDelete": {
  2862. "post": {
  2863. "security": [
  2864. {
  2865. "token": []
  2866. }
  2867. ],
  2868. "description": "批量分享记录",
  2869. "consumes": [
  2870. "application/json"
  2871. ],
  2872. "produces": [
  2873. "application/json"
  2874. ],
  2875. "tags": [
  2876. "分享记录"
  2877. ],
  2878. "summary": "批量分享记录",
  2879. "parameters": [
  2880. {
  2881. "description": "id",
  2882. "name": "body",
  2883. "in": "body",
  2884. "required": true,
  2885. "schema": {
  2886. "$ref": "#/definitions/admin.PeerShareRecordBatchDeleteForm"
  2887. }
  2888. }
  2889. ],
  2890. "responses": {
  2891. "200": {
  2892. "description": "OK",
  2893. "schema": {
  2894. "$ref": "#/definitions/response.Response"
  2895. }
  2896. },
  2897. "500": {
  2898. "description": "Internal Server Error",
  2899. "schema": {
  2900. "$ref": "#/definitions/response.Response"
  2901. }
  2902. }
  2903. }
  2904. }
  2905. },
  2906. "/admin/share_record/delete": {
  2907. "post": {
  2908. "security": [
  2909. {
  2910. "token": []
  2911. }
  2912. ],
  2913. "description": "分享记录删除",
  2914. "consumes": [
  2915. "application/json"
  2916. ],
  2917. "produces": [
  2918. "application/json"
  2919. ],
  2920. "tags": [
  2921. "分享记录"
  2922. ],
  2923. "summary": "分享记录删除",
  2924. "parameters": [
  2925. {
  2926. "description": "分享记录信息",
  2927. "name": "body",
  2928. "in": "body",
  2929. "required": true,
  2930. "schema": {
  2931. "$ref": "#/definitions/admin.ShareRecordForm"
  2932. }
  2933. }
  2934. ],
  2935. "responses": {
  2936. "200": {
  2937. "description": "OK",
  2938. "schema": {
  2939. "$ref": "#/definitions/response.Response"
  2940. }
  2941. },
  2942. "500": {
  2943. "description": "Internal Server Error",
  2944. "schema": {
  2945. "$ref": "#/definitions/response.Response"
  2946. }
  2947. }
  2948. }
  2949. }
  2950. },
  2951. "/admin/share_record/list": {
  2952. "get": {
  2953. "security": [
  2954. {
  2955. "token": []
  2956. }
  2957. ],
  2958. "description": "分享记录列表",
  2959. "consumes": [
  2960. "application/json"
  2961. ],
  2962. "produces": [
  2963. "application/json"
  2964. ],
  2965. "tags": [
  2966. "分享记录"
  2967. ],
  2968. "summary": "分享记录列表",
  2969. "parameters": [
  2970. {
  2971. "type": "integer",
  2972. "description": "用户ID",
  2973. "name": "user_id",
  2974. "in": "query"
  2975. },
  2976. {
  2977. "type": "integer",
  2978. "description": "页码",
  2979. "name": "page",
  2980. "in": "query"
  2981. },
  2982. {
  2983. "type": "integer",
  2984. "description": "页大小",
  2985. "name": "page_size",
  2986. "in": "query"
  2987. }
  2988. ],
  2989. "responses": {
  2990. "200": {
  2991. "description": "OK",
  2992. "schema": {
  2993. "$ref": "#/definitions/response.Response"
  2994. }
  2995. },
  2996. "500": {
  2997. "description": "Internal Server Error",
  2998. "schema": {
  2999. "$ref": "#/definitions/response.Response"
  3000. }
  3001. }
  3002. }
  3003. }
  3004. },
  3005. "/admin/tag/create": {
  3006. "post": {
  3007. "security": [
  3008. {
  3009. "token": []
  3010. }
  3011. ],
  3012. "description": "创建标签",
  3013. "consumes": [
  3014. "application/json"
  3015. ],
  3016. "produces": [
  3017. "application/json"
  3018. ],
  3019. "tags": [
  3020. "标签"
  3021. ],
  3022. "summary": "创建标签",
  3023. "parameters": [
  3024. {
  3025. "description": "标签信息",
  3026. "name": "body",
  3027. "in": "body",
  3028. "required": true,
  3029. "schema": {
  3030. "$ref": "#/definitions/admin.TagForm"
  3031. }
  3032. }
  3033. ],
  3034. "responses": {
  3035. "200": {
  3036. "description": "OK",
  3037. "schema": {
  3038. "allOf": [
  3039. {
  3040. "$ref": "#/definitions/response.Response"
  3041. },
  3042. {
  3043. "type": "object",
  3044. "properties": {
  3045. "data": {
  3046. "$ref": "#/definitions/model.Tag"
  3047. }
  3048. }
  3049. }
  3050. ]
  3051. }
  3052. },
  3053. "500": {
  3054. "description": "Internal Server Error",
  3055. "schema": {
  3056. "$ref": "#/definitions/response.Response"
  3057. }
  3058. }
  3059. }
  3060. }
  3061. },
  3062. "/admin/tag/delete": {
  3063. "post": {
  3064. "security": [
  3065. {
  3066. "token": []
  3067. }
  3068. ],
  3069. "description": "标签删除",
  3070. "consumes": [
  3071. "application/json"
  3072. ],
  3073. "produces": [
  3074. "application/json"
  3075. ],
  3076. "tags": [
  3077. "标签"
  3078. ],
  3079. "summary": "标签删除",
  3080. "parameters": [
  3081. {
  3082. "description": "标签信息",
  3083. "name": "body",
  3084. "in": "body",
  3085. "required": true,
  3086. "schema": {
  3087. "$ref": "#/definitions/admin.TagForm"
  3088. }
  3089. }
  3090. ],
  3091. "responses": {
  3092. "200": {
  3093. "description": "OK",
  3094. "schema": {
  3095. "$ref": "#/definitions/response.Response"
  3096. }
  3097. },
  3098. "500": {
  3099. "description": "Internal Server Error",
  3100. "schema": {
  3101. "$ref": "#/definitions/response.Response"
  3102. }
  3103. }
  3104. }
  3105. }
  3106. },
  3107. "/admin/tag/detail/{id}": {
  3108. "get": {
  3109. "security": [
  3110. {
  3111. "token": []
  3112. }
  3113. ],
  3114. "description": "标签详情",
  3115. "consumes": [
  3116. "application/json"
  3117. ],
  3118. "produces": [
  3119. "application/json"
  3120. ],
  3121. "tags": [
  3122. "标签"
  3123. ],
  3124. "summary": "标签详情",
  3125. "parameters": [
  3126. {
  3127. "type": "integer",
  3128. "description": "ID",
  3129. "name": "id",
  3130. "in": "path",
  3131. "required": true
  3132. }
  3133. ],
  3134. "responses": {
  3135. "200": {
  3136. "description": "OK",
  3137. "schema": {
  3138. "allOf": [
  3139. {
  3140. "$ref": "#/definitions/response.Response"
  3141. },
  3142. {
  3143. "type": "object",
  3144. "properties": {
  3145. "data": {
  3146. "$ref": "#/definitions/model.Tag"
  3147. }
  3148. }
  3149. }
  3150. ]
  3151. }
  3152. },
  3153. "500": {
  3154. "description": "Internal Server Error",
  3155. "schema": {
  3156. "$ref": "#/definitions/response.Response"
  3157. }
  3158. }
  3159. }
  3160. }
  3161. },
  3162. "/admin/tag/list": {
  3163. "get": {
  3164. "security": [
  3165. {
  3166. "token": []
  3167. }
  3168. ],
  3169. "description": "标签列表",
  3170. "consumes": [
  3171. "application/json"
  3172. ],
  3173. "produces": [
  3174. "application/json"
  3175. ],
  3176. "tags": [
  3177. "标签"
  3178. ],
  3179. "summary": "标签列表",
  3180. "parameters": [
  3181. {
  3182. "type": "integer",
  3183. "description": "页码",
  3184. "name": "page",
  3185. "in": "query"
  3186. },
  3187. {
  3188. "type": "integer",
  3189. "description": "页大小",
  3190. "name": "page_size",
  3191. "in": "query"
  3192. },
  3193. {
  3194. "type": "integer",
  3195. "description": "是否是我的",
  3196. "name": "is_my",
  3197. "in": "query"
  3198. },
  3199. {
  3200. "type": "integer",
  3201. "description": "用户id",
  3202. "name": "user_id",
  3203. "in": "query"
  3204. }
  3205. ],
  3206. "responses": {
  3207. "200": {
  3208. "description": "OK",
  3209. "schema": {
  3210. "allOf": [
  3211. {
  3212. "$ref": "#/definitions/response.Response"
  3213. },
  3214. {
  3215. "type": "object",
  3216. "properties": {
  3217. "data": {
  3218. "$ref": "#/definitions/model.TagList"
  3219. }
  3220. }
  3221. }
  3222. ]
  3223. }
  3224. },
  3225. "500": {
  3226. "description": "Internal Server Error",
  3227. "schema": {
  3228. "$ref": "#/definitions/response.Response"
  3229. }
  3230. }
  3231. }
  3232. }
  3233. },
  3234. "/admin/tag/update": {
  3235. "post": {
  3236. "security": [
  3237. {
  3238. "token": []
  3239. }
  3240. ],
  3241. "description": "标签编辑",
  3242. "consumes": [
  3243. "application/json"
  3244. ],
  3245. "produces": [
  3246. "application/json"
  3247. ],
  3248. "tags": [
  3249. "标签"
  3250. ],
  3251. "summary": "标签编辑",
  3252. "parameters": [
  3253. {
  3254. "description": "标签信息",
  3255. "name": "body",
  3256. "in": "body",
  3257. "required": true,
  3258. "schema": {
  3259. "$ref": "#/definitions/admin.TagForm"
  3260. }
  3261. }
  3262. ],
  3263. "responses": {
  3264. "200": {
  3265. "description": "OK",
  3266. "schema": {
  3267. "allOf": [
  3268. {
  3269. "$ref": "#/definitions/response.Response"
  3270. },
  3271. {
  3272. "type": "object",
  3273. "properties": {
  3274. "data": {
  3275. "$ref": "#/definitions/model.Tag"
  3276. }
  3277. }
  3278. }
  3279. ]
  3280. }
  3281. },
  3282. "500": {
  3283. "description": "Internal Server Error",
  3284. "schema": {
  3285. "$ref": "#/definitions/response.Response"
  3286. }
  3287. }
  3288. }
  3289. }
  3290. },
  3291. "/admin/user/changeCurPwd": {
  3292. "post": {
  3293. "security": [
  3294. {
  3295. "token": []
  3296. }
  3297. ],
  3298. "description": "修改当前用户密码",
  3299. "consumes": [
  3300. "application/json"
  3301. ],
  3302. "produces": [
  3303. "application/json"
  3304. ],
  3305. "tags": [
  3306. "用户"
  3307. ],
  3308. "summary": "修改当前用户密码",
  3309. "parameters": [
  3310. {
  3311. "description": "用户信息",
  3312. "name": "body",
  3313. "in": "body",
  3314. "required": true,
  3315. "schema": {
  3316. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  3317. }
  3318. }
  3319. ],
  3320. "responses": {
  3321. "200": {
  3322. "description": "OK",
  3323. "schema": {
  3324. "$ref": "#/definitions/response.Response"
  3325. }
  3326. },
  3327. "500": {
  3328. "description": "Internal Server Error",
  3329. "schema": {
  3330. "$ref": "#/definitions/response.Response"
  3331. }
  3332. }
  3333. }
  3334. }
  3335. },
  3336. "/admin/user/create": {
  3337. "post": {
  3338. "security": [
  3339. {
  3340. "token": []
  3341. }
  3342. ],
  3343. "description": "创建管理员",
  3344. "consumes": [
  3345. "application/json"
  3346. ],
  3347. "produces": [
  3348. "application/json"
  3349. ],
  3350. "tags": [
  3351. "用户"
  3352. ],
  3353. "summary": "创建管理员",
  3354. "parameters": [
  3355. {
  3356. "description": "管理员信息",
  3357. "name": "body",
  3358. "in": "body",
  3359. "required": true,
  3360. "schema": {
  3361. "$ref": "#/definitions/admin.UserForm"
  3362. }
  3363. }
  3364. ],
  3365. "responses": {
  3366. "200": {
  3367. "description": "OK",
  3368. "schema": {
  3369. "allOf": [
  3370. {
  3371. "$ref": "#/definitions/response.Response"
  3372. },
  3373. {
  3374. "type": "object",
  3375. "properties": {
  3376. "data": {
  3377. "$ref": "#/definitions/model.User"
  3378. }
  3379. }
  3380. }
  3381. ]
  3382. }
  3383. },
  3384. "500": {
  3385. "description": "Internal Server Error",
  3386. "schema": {
  3387. "$ref": "#/definitions/response.Response"
  3388. }
  3389. }
  3390. }
  3391. }
  3392. },
  3393. "/admin/user/current": {
  3394. "get": {
  3395. "security": [
  3396. {
  3397. "token": []
  3398. }
  3399. ],
  3400. "description": "当前用户",
  3401. "consumes": [
  3402. "application/json"
  3403. ],
  3404. "produces": [
  3405. "application/json"
  3406. ],
  3407. "tags": [
  3408. "用户"
  3409. ],
  3410. "summary": "当前用户",
  3411. "responses": {
  3412. "200": {
  3413. "description": "OK",
  3414. "schema": {
  3415. "allOf": [
  3416. {
  3417. "$ref": "#/definitions/response.Response"
  3418. },
  3419. {
  3420. "type": "object",
  3421. "properties": {
  3422. "data": {
  3423. "$ref": "#/definitions/admin.LoginPayload"
  3424. }
  3425. }
  3426. }
  3427. ]
  3428. }
  3429. },
  3430. "500": {
  3431. "description": "Internal Server Error",
  3432. "schema": {
  3433. "$ref": "#/definitions/response.Response"
  3434. }
  3435. }
  3436. }
  3437. }
  3438. },
  3439. "/admin/user/delete": {
  3440. "post": {
  3441. "security": [
  3442. {
  3443. "token": []
  3444. }
  3445. ],
  3446. "description": "管理员编删除",
  3447. "consumes": [
  3448. "application/json"
  3449. ],
  3450. "produces": [
  3451. "application/json"
  3452. ],
  3453. "tags": [
  3454. "用户"
  3455. ],
  3456. "summary": "管理员删除",
  3457. "parameters": [
  3458. {
  3459. "description": "用户信息",
  3460. "name": "body",
  3461. "in": "body",
  3462. "required": true,
  3463. "schema": {
  3464. "$ref": "#/definitions/admin.UserForm"
  3465. }
  3466. }
  3467. ],
  3468. "responses": {
  3469. "200": {
  3470. "description": "OK",
  3471. "schema": {
  3472. "$ref": "#/definitions/response.Response"
  3473. }
  3474. },
  3475. "500": {
  3476. "description": "Internal Server Error",
  3477. "schema": {
  3478. "$ref": "#/definitions/response.Response"
  3479. }
  3480. }
  3481. }
  3482. }
  3483. },
  3484. "/admin/user/detail/{id}": {
  3485. "get": {
  3486. "security": [
  3487. {
  3488. "token": []
  3489. }
  3490. ],
  3491. "description": "管理员详情",
  3492. "consumes": [
  3493. "application/json"
  3494. ],
  3495. "produces": [
  3496. "application/json"
  3497. ],
  3498. "tags": [
  3499. "用户"
  3500. ],
  3501. "summary": "管理员详情",
  3502. "parameters": [
  3503. {
  3504. "type": "integer",
  3505. "description": "ID",
  3506. "name": "id",
  3507. "in": "path",
  3508. "required": true
  3509. }
  3510. ],
  3511. "responses": {
  3512. "200": {
  3513. "description": "OK",
  3514. "schema": {
  3515. "allOf": [
  3516. {
  3517. "$ref": "#/definitions/response.Response"
  3518. },
  3519. {
  3520. "type": "object",
  3521. "properties": {
  3522. "data": {
  3523. "$ref": "#/definitions/model.User"
  3524. }
  3525. }
  3526. }
  3527. ]
  3528. }
  3529. },
  3530. "500": {
  3531. "description": "Internal Server Error",
  3532. "schema": {
  3533. "$ref": "#/definitions/response.Response"
  3534. }
  3535. }
  3536. }
  3537. }
  3538. },
  3539. "/admin/user/list": {
  3540. "get": {
  3541. "security": [
  3542. {
  3543. "token": []
  3544. }
  3545. ],
  3546. "description": "管理员列表",
  3547. "consumes": [
  3548. "application/json"
  3549. ],
  3550. "produces": [
  3551. "application/json"
  3552. ],
  3553. "tags": [
  3554. "用户"
  3555. ],
  3556. "summary": "管理员列表",
  3557. "parameters": [
  3558. {
  3559. "type": "integer",
  3560. "description": "页码",
  3561. "name": "page",
  3562. "in": "query"
  3563. },
  3564. {
  3565. "type": "integer",
  3566. "description": "页大小",
  3567. "name": "page_size",
  3568. "in": "query"
  3569. },
  3570. {
  3571. "type": "integer",
  3572. "description": "账户",
  3573. "name": "username",
  3574. "in": "query"
  3575. }
  3576. ],
  3577. "responses": {
  3578. "200": {
  3579. "description": "OK",
  3580. "schema": {
  3581. "allOf": [
  3582. {
  3583. "$ref": "#/definitions/response.Response"
  3584. },
  3585. {
  3586. "type": "object",
  3587. "properties": {
  3588. "data": {
  3589. "$ref": "#/definitions/model.UserList"
  3590. }
  3591. }
  3592. }
  3593. ]
  3594. }
  3595. },
  3596. "500": {
  3597. "description": "Internal Server Error",
  3598. "schema": {
  3599. "$ref": "#/definitions/response.Response"
  3600. }
  3601. }
  3602. }
  3603. }
  3604. },
  3605. "/admin/user/myOauth": {
  3606. "get": {
  3607. "security": [
  3608. {
  3609. "token": []
  3610. }
  3611. ],
  3612. "description": "我的授权",
  3613. "consumes": [
  3614. "application/json"
  3615. ],
  3616. "produces": [
  3617. "application/json"
  3618. ],
  3619. "tags": [
  3620. "用户"
  3621. ],
  3622. "summary": "我的授权",
  3623. "responses": {
  3624. "200": {
  3625. "description": "OK",
  3626. "schema": {
  3627. "allOf": [
  3628. {
  3629. "$ref": "#/definitions/response.Response"
  3630. },
  3631. {
  3632. "type": "object",
  3633. "properties": {
  3634. "data": {
  3635. "type": "array",
  3636. "items": {
  3637. "$ref": "#/definitions/admin.UserOauthItem"
  3638. }
  3639. }
  3640. }
  3641. }
  3642. ]
  3643. }
  3644. },
  3645. "500": {
  3646. "description": "Internal Server Error",
  3647. "schema": {
  3648. "$ref": "#/definitions/response.Response"
  3649. }
  3650. }
  3651. }
  3652. }
  3653. },
  3654. "/admin/user/myPeer": {
  3655. "get": {
  3656. "security": [
  3657. {
  3658. "token": []
  3659. }
  3660. ],
  3661. "description": "我的设备列表",
  3662. "consumes": [
  3663. "application/json"
  3664. ],
  3665. "produces": [
  3666. "application/json"
  3667. ],
  3668. "tags": [
  3669. "设备"
  3670. ],
  3671. "summary": "我的设备列表",
  3672. "parameters": [
  3673. {
  3674. "type": "integer",
  3675. "description": "页码",
  3676. "name": "page",
  3677. "in": "query"
  3678. },
  3679. {
  3680. "type": "integer",
  3681. "description": "页大小",
  3682. "name": "page_size",
  3683. "in": "query"
  3684. },
  3685. {
  3686. "type": "integer",
  3687. "description": "时间",
  3688. "name": "time_ago",
  3689. "in": "query"
  3690. },
  3691. {
  3692. "type": "string",
  3693. "description": "ID",
  3694. "name": "id",
  3695. "in": "query"
  3696. },
  3697. {
  3698. "type": "string",
  3699. "description": "主机名",
  3700. "name": "hostname",
  3701. "in": "query"
  3702. },
  3703. {
  3704. "type": "string",
  3705. "description": "uuids 用逗号分隔",
  3706. "name": "uuids",
  3707. "in": "query"
  3708. }
  3709. ],
  3710. "responses": {
  3711. "200": {
  3712. "description": "OK",
  3713. "schema": {
  3714. "allOf": [
  3715. {
  3716. "$ref": "#/definitions/response.Response"
  3717. },
  3718. {
  3719. "type": "object",
  3720. "properties": {
  3721. "data": {
  3722. "$ref": "#/definitions/model.PeerList"
  3723. }
  3724. }
  3725. }
  3726. ]
  3727. }
  3728. },
  3729. "500": {
  3730. "description": "Internal Server Error",
  3731. "schema": {
  3732. "$ref": "#/definitions/response.Response"
  3733. }
  3734. }
  3735. }
  3736. }
  3737. },
  3738. "/admin/user/update": {
  3739. "post": {
  3740. "security": [
  3741. {
  3742. "token": []
  3743. }
  3744. ],
  3745. "description": "管理员编辑",
  3746. "consumes": [
  3747. "application/json"
  3748. ],
  3749. "produces": [
  3750. "application/json"
  3751. ],
  3752. "tags": [
  3753. "用户"
  3754. ],
  3755. "summary": "管理员编辑",
  3756. "parameters": [
  3757. {
  3758. "description": "用户信息",
  3759. "name": "body",
  3760. "in": "body",
  3761. "required": true,
  3762. "schema": {
  3763. "$ref": "#/definitions/admin.UserForm"
  3764. }
  3765. }
  3766. ],
  3767. "responses": {
  3768. "200": {
  3769. "description": "OK",
  3770. "schema": {
  3771. "allOf": [
  3772. {
  3773. "$ref": "#/definitions/response.Response"
  3774. },
  3775. {
  3776. "type": "object",
  3777. "properties": {
  3778. "data": {
  3779. "$ref": "#/definitions/model.User"
  3780. }
  3781. }
  3782. }
  3783. ]
  3784. }
  3785. },
  3786. "500": {
  3787. "description": "Internal Server Error",
  3788. "schema": {
  3789. "$ref": "#/definitions/response.Response"
  3790. }
  3791. }
  3792. }
  3793. }
  3794. },
  3795. "/admin/user/updatePassword": {
  3796. "post": {
  3797. "security": [
  3798. {
  3799. "token": []
  3800. }
  3801. ],
  3802. "description": "修改密码",
  3803. "consumes": [
  3804. "application/json"
  3805. ],
  3806. "produces": [
  3807. "application/json"
  3808. ],
  3809. "tags": [
  3810. "用户"
  3811. ],
  3812. "summary": "修改密码",
  3813. "parameters": [
  3814. {
  3815. "description": "用户信息",
  3816. "name": "body",
  3817. "in": "body",
  3818. "required": true,
  3819. "schema": {
  3820. "$ref": "#/definitions/admin.UserPasswordForm"
  3821. }
  3822. }
  3823. ],
  3824. "responses": {
  3825. "200": {
  3826. "description": "OK",
  3827. "schema": {
  3828. "$ref": "#/definitions/response.Response"
  3829. }
  3830. },
  3831. "500": {
  3832. "description": "Internal Server Error",
  3833. "schema": {
  3834. "$ref": "#/definitions/response.Response"
  3835. }
  3836. }
  3837. }
  3838. }
  3839. },
  3840. "/admin/user_token/batchDelete": {
  3841. "post": {
  3842. "security": [
  3843. {
  3844. "token": []
  3845. }
  3846. ],
  3847. "description": "登录凭证批量删除",
  3848. "consumes": [
  3849. "application/json"
  3850. ],
  3851. "produces": [
  3852. "application/json"
  3853. ],
  3854. "tags": [
  3855. "登录凭证"
  3856. ],
  3857. "summary": "登录凭证批量删除",
  3858. "parameters": [
  3859. {
  3860. "description": "登录凭证信息",
  3861. "name": "body",
  3862. "in": "body",
  3863. "required": true,
  3864. "schema": {
  3865. "$ref": "#/definitions/admin.UserTokenBatchDeleteForm"
  3866. }
  3867. }
  3868. ],
  3869. "responses": {
  3870. "200": {
  3871. "description": "OK",
  3872. "schema": {
  3873. "$ref": "#/definitions/response.Response"
  3874. }
  3875. },
  3876. "500": {
  3877. "description": "Internal Server Error",
  3878. "schema": {
  3879. "$ref": "#/definitions/response.Response"
  3880. }
  3881. }
  3882. }
  3883. }
  3884. },
  3885. "/admin/user_token/delete": {
  3886. "post": {
  3887. "security": [
  3888. {
  3889. "token": []
  3890. }
  3891. ],
  3892. "description": "登录凭证删除",
  3893. "consumes": [
  3894. "application/json"
  3895. ],
  3896. "produces": [
  3897. "application/json"
  3898. ],
  3899. "tags": [
  3900. "登录凭证"
  3901. ],
  3902. "summary": "登录凭证删除",
  3903. "parameters": [
  3904. {
  3905. "description": "登录凭证信息",
  3906. "name": "body",
  3907. "in": "body",
  3908. "required": true,
  3909. "schema": {
  3910. "$ref": "#/definitions/model.UserToken"
  3911. }
  3912. }
  3913. ],
  3914. "responses": {
  3915. "200": {
  3916. "description": "OK",
  3917. "schema": {
  3918. "$ref": "#/definitions/response.Response"
  3919. }
  3920. },
  3921. "500": {
  3922. "description": "Internal Server Error",
  3923. "schema": {
  3924. "$ref": "#/definitions/response.Response"
  3925. }
  3926. }
  3927. }
  3928. }
  3929. },
  3930. "/admin/user_token/list": {
  3931. "get": {
  3932. "security": [
  3933. {
  3934. "token": []
  3935. }
  3936. ],
  3937. "description": "登录凭证列表",
  3938. "consumes": [
  3939. "application/json"
  3940. ],
  3941. "produces": [
  3942. "application/json"
  3943. ],
  3944. "tags": [
  3945. "登录凭证"
  3946. ],
  3947. "summary": "登录凭证列表",
  3948. "parameters": [
  3949. {
  3950. "type": "integer",
  3951. "description": "页码",
  3952. "name": "page",
  3953. "in": "query"
  3954. },
  3955. {
  3956. "type": "integer",
  3957. "description": "页大小",
  3958. "name": "page_size",
  3959. "in": "query"
  3960. },
  3961. {
  3962. "type": "integer",
  3963. "description": "用户ID",
  3964. "name": "user_id",
  3965. "in": "query"
  3966. }
  3967. ],
  3968. "responses": {
  3969. "200": {
  3970. "description": "OK",
  3971. "schema": {
  3972. "allOf": [
  3973. {
  3974. "$ref": "#/definitions/response.Response"
  3975. },
  3976. {
  3977. "type": "object",
  3978. "properties": {
  3979. "data": {
  3980. "$ref": "#/definitions/model.UserTokenList"
  3981. }
  3982. }
  3983. }
  3984. ]
  3985. }
  3986. },
  3987. "500": {
  3988. "description": "Internal Server Error",
  3989. "schema": {
  3990. "$ref": "#/definitions/response.Response"
  3991. }
  3992. }
  3993. }
  3994. }
  3995. }
  3996. },
  3997. "definitions": {
  3998. "Gwen_http_request_admin.Login": {
  3999. "type": "object",
  4000. "required": [
  4001. "password",
  4002. "username"
  4003. ],
  4004. "properties": {
  4005. "password": {
  4006. "type": "string"
  4007. },
  4008. "platform": {
  4009. "type": "string"
  4010. },
  4011. "username": {
  4012. "type": "string"
  4013. }
  4014. }
  4015. },
  4016. "admin.AddressBookForm": {
  4017. "type": "object",
  4018. "required": [
  4019. "id"
  4020. ],
  4021. "properties": {
  4022. "alias": {
  4023. "type": "string"
  4024. },
  4025. "collection_id": {
  4026. "type": "integer"
  4027. },
  4028. "forceAlwaysRelay": {
  4029. "type": "boolean"
  4030. },
  4031. "hash": {
  4032. "type": "string"
  4033. },
  4034. "hostname": {
  4035. "type": "string"
  4036. },
  4037. "id": {
  4038. "type": "string"
  4039. },
  4040. "loginName": {
  4041. "type": "string"
  4042. },
  4043. "online": {
  4044. "type": "boolean"
  4045. },
  4046. "password": {
  4047. "type": "string"
  4048. },
  4049. "platform": {
  4050. "type": "string"
  4051. },
  4052. "rdpPort": {
  4053. "type": "string"
  4054. },
  4055. "rdpUsername": {
  4056. "type": "string"
  4057. },
  4058. "row_id": {
  4059. "type": "integer"
  4060. },
  4061. "sameServer": {
  4062. "type": "boolean"
  4063. },
  4064. "tags": {
  4065. "type": "array",
  4066. "items": {
  4067. "type": "string"
  4068. }
  4069. },
  4070. "user_id": {
  4071. "type": "integer"
  4072. },
  4073. "user_ids": {
  4074. "type": "array",
  4075. "items": {
  4076. "type": "integer"
  4077. }
  4078. },
  4079. "username": {
  4080. "type": "string"
  4081. }
  4082. }
  4083. },
  4084. "admin.AuditConnLogIds": {
  4085. "type": "object",
  4086. "required": [
  4087. "ids"
  4088. ],
  4089. "properties": {
  4090. "ids": {
  4091. "type": "array",
  4092. "items": {
  4093. "type": "integer"
  4094. }
  4095. }
  4096. }
  4097. },
  4098. "admin.AuditFileLogIds": {
  4099. "type": "object",
  4100. "required": [
  4101. "ids"
  4102. ],
  4103. "properties": {
  4104. "ids": {
  4105. "type": "array",
  4106. "items": {
  4107. "type": "integer"
  4108. }
  4109. }
  4110. }
  4111. },
  4112. "admin.ChangeCurPasswordForm": {
  4113. "type": "object",
  4114. "required": [
  4115. "new_password",
  4116. "old_password"
  4117. ],
  4118. "properties": {
  4119. "new_password": {
  4120. "type": "string",
  4121. "maxLength": 32,
  4122. "minLength": 4
  4123. },
  4124. "old_password": {
  4125. "type": "string",
  4126. "maxLength": 32,
  4127. "minLength": 4
  4128. }
  4129. }
  4130. },
  4131. "admin.GroupForm": {
  4132. "type": "object",
  4133. "required": [
  4134. "name"
  4135. ],
  4136. "properties": {
  4137. "id": {
  4138. "type": "integer"
  4139. },
  4140. "name": {
  4141. "type": "string"
  4142. },
  4143. "type": {
  4144. "type": "integer"
  4145. }
  4146. }
  4147. },
  4148. "admin.LoginLogIds": {
  4149. "type": "object",
  4150. "required": [
  4151. "ids"
  4152. ],
  4153. "properties": {
  4154. "ids": {
  4155. "type": "array",
  4156. "items": {
  4157. "type": "integer"
  4158. }
  4159. }
  4160. }
  4161. },
  4162. "admin.LoginPayload": {
  4163. "type": "object",
  4164. "properties": {
  4165. "avatar": {
  4166. "type": "string"
  4167. },
  4168. "email": {
  4169. "type": "string"
  4170. },
  4171. "nickname": {
  4172. "type": "string"
  4173. },
  4174. "route_names": {
  4175. "type": "array",
  4176. "items": {
  4177. "type": "string"
  4178. }
  4179. },
  4180. "token": {
  4181. "type": "string"
  4182. },
  4183. "username": {
  4184. "type": "string"
  4185. }
  4186. }
  4187. },
  4188. "admin.OauthForm": {
  4189. "type": "object",
  4190. "required": [
  4191. "client_id",
  4192. "client_secret",
  4193. "oauth_type",
  4194. "redirect_url"
  4195. ],
  4196. "properties": {
  4197. "auto_register": {
  4198. "type": "boolean"
  4199. },
  4200. "client_id": {
  4201. "type": "string"
  4202. },
  4203. "client_secret": {
  4204. "type": "string"
  4205. },
  4206. "id": {
  4207. "type": "integer"
  4208. },
  4209. "issuer": {
  4210. "type": "string"
  4211. },
  4212. "oauth_type": {
  4213. "type": "string"
  4214. },
  4215. "op": {
  4216. "type": "string"
  4217. },
  4218. "redirect_url": {
  4219. "type": "string"
  4220. },
  4221. "scopes": {
  4222. "type": "string"
  4223. }
  4224. }
  4225. },
  4226. "admin.PeerBatchDeleteForm": {
  4227. "type": "object",
  4228. "required": [
  4229. "row_ids"
  4230. ],
  4231. "properties": {
  4232. "row_ids": {
  4233. "type": "array",
  4234. "items": {
  4235. "type": "integer"
  4236. }
  4237. }
  4238. }
  4239. },
  4240. "admin.PeerForm": {
  4241. "type": "object",
  4242. "properties": {
  4243. "cpu": {
  4244. "type": "string"
  4245. },
  4246. "hostname": {
  4247. "type": "string"
  4248. },
  4249. "id": {
  4250. "type": "string"
  4251. },
  4252. "memory": {
  4253. "type": "string"
  4254. },
  4255. "os": {
  4256. "type": "string"
  4257. },
  4258. "row_id": {
  4259. "type": "integer"
  4260. },
  4261. "username": {
  4262. "type": "string"
  4263. },
  4264. "uuid": {
  4265. "type": "string"
  4266. },
  4267. "version": {
  4268. "type": "string"
  4269. }
  4270. }
  4271. },
  4272. "admin.PeerShareRecordBatchDeleteForm": {
  4273. "type": "object",
  4274. "required": [
  4275. "ids"
  4276. ],
  4277. "properties": {
  4278. "ids": {
  4279. "type": "array",
  4280. "items": {
  4281. "type": "integer"
  4282. }
  4283. }
  4284. }
  4285. },
  4286. "admin.ShareByWebClientForm": {
  4287. "type": "object",
  4288. "required": [
  4289. "id",
  4290. "password",
  4291. "password_type"
  4292. ],
  4293. "properties": {
  4294. "expire": {
  4295. "type": "integer"
  4296. },
  4297. "id": {
  4298. "type": "string"
  4299. },
  4300. "password": {
  4301. "type": "string"
  4302. },
  4303. "password_type": {
  4304. "description": "只能是once,fixed",
  4305. "type": "string",
  4306. "enum": [
  4307. "once",
  4308. "fixed"
  4309. ]
  4310. }
  4311. }
  4312. },
  4313. "admin.ShareRecordForm": {
  4314. "type": "object",
  4315. "properties": {
  4316. "id": {
  4317. "type": "integer"
  4318. },
  4319. "user_id": {
  4320. "type": "integer"
  4321. }
  4322. }
  4323. },
  4324. "admin.TagForm": {
  4325. "type": "object",
  4326. "required": [
  4327. "color",
  4328. "name"
  4329. ],
  4330. "properties": {
  4331. "collection_id": {
  4332. "type": "integer"
  4333. },
  4334. "color": {
  4335. "type": "integer"
  4336. },
  4337. "id": {
  4338. "type": "integer"
  4339. },
  4340. "name": {
  4341. "type": "string"
  4342. },
  4343. "user_id": {
  4344. "type": "integer"
  4345. }
  4346. }
  4347. },
  4348. "admin.UserForm": {
  4349. "type": "object",
  4350. "required": [
  4351. "group_id",
  4352. "status",
  4353. "username"
  4354. ],
  4355. "properties": {
  4356. "avatar": {
  4357. "type": "string"
  4358. },
  4359. "email": {
  4360. "description": "validate:\"required,email\" email不强制",
  4361. "type": "string"
  4362. },
  4363. "group_id": {
  4364. "type": "integer"
  4365. },
  4366. "id": {
  4367. "type": "integer"
  4368. },
  4369. "is_admin": {
  4370. "type": "boolean"
  4371. },
  4372. "nickname": {
  4373. "description": "Password string `json:\"password\" validate:\"required,gte=4,lte=20\"`",
  4374. "type": "string"
  4375. },
  4376. "status": {
  4377. "minimum": 0,
  4378. "allOf": [
  4379. {
  4380. "$ref": "#/definitions/model.StatusCode"
  4381. }
  4382. ]
  4383. },
  4384. "username": {
  4385. "type": "string",
  4386. "maxLength": 32,
  4387. "minLength": 2
  4388. }
  4389. }
  4390. },
  4391. "admin.UserOauthItem": {
  4392. "type": "object",
  4393. "properties": {
  4394. "op": {
  4395. "type": "string"
  4396. },
  4397. "status": {
  4398. "type": "integer"
  4399. }
  4400. }
  4401. },
  4402. "admin.UserPasswordForm": {
  4403. "type": "object",
  4404. "required": [
  4405. "id",
  4406. "password"
  4407. ],
  4408. "properties": {
  4409. "id": {
  4410. "type": "integer"
  4411. },
  4412. "password": {
  4413. "type": "string",
  4414. "maxLength": 32,
  4415. "minLength": 4
  4416. }
  4417. }
  4418. },
  4419. "admin.UserTokenBatchDeleteForm": {
  4420. "type": "object",
  4421. "required": [
  4422. "ids"
  4423. ],
  4424. "properties": {
  4425. "ids": {
  4426. "type": "array",
  4427. "items": {
  4428. "type": "integer"
  4429. }
  4430. }
  4431. }
  4432. },
  4433. "model.AddressBook": {
  4434. "type": "object",
  4435. "properties": {
  4436. "alias": {
  4437. "type": "string"
  4438. },
  4439. "collection": {
  4440. "$ref": "#/definitions/model.AddressBookCollection"
  4441. },
  4442. "collection_id": {
  4443. "type": "integer"
  4444. },
  4445. "created_at": {
  4446. "type": "string"
  4447. },
  4448. "forceAlwaysRelay": {
  4449. "type": "boolean"
  4450. },
  4451. "hash": {
  4452. "type": "string"
  4453. },
  4454. "hostname": {
  4455. "type": "string"
  4456. },
  4457. "id": {
  4458. "type": "string"
  4459. },
  4460. "loginName": {
  4461. "type": "string"
  4462. },
  4463. "online": {
  4464. "type": "boolean"
  4465. },
  4466. "password": {
  4467. "type": "string"
  4468. },
  4469. "platform": {
  4470. "type": "string"
  4471. },
  4472. "rdpPort": {
  4473. "type": "string"
  4474. },
  4475. "rdpUsername": {
  4476. "type": "string"
  4477. },
  4478. "row_id": {
  4479. "type": "integer"
  4480. },
  4481. "sameServer": {
  4482. "type": "boolean"
  4483. },
  4484. "tags": {
  4485. "type": "array",
  4486. "items": {
  4487. "type": "string"
  4488. }
  4489. },
  4490. "updated_at": {
  4491. "type": "string"
  4492. },
  4493. "user_id": {
  4494. "type": "integer"
  4495. },
  4496. "username": {
  4497. "type": "string"
  4498. }
  4499. }
  4500. },
  4501. "model.AddressBookCollection": {
  4502. "type": "object",
  4503. "required": [
  4504. "name"
  4505. ],
  4506. "properties": {
  4507. "created_at": {
  4508. "type": "string"
  4509. },
  4510. "id": {
  4511. "type": "integer"
  4512. },
  4513. "name": {
  4514. "type": "string"
  4515. },
  4516. "updated_at": {
  4517. "type": "string"
  4518. },
  4519. "user_id": {
  4520. "type": "integer"
  4521. }
  4522. }
  4523. },
  4524. "model.AddressBookCollectionList": {
  4525. "type": "object",
  4526. "properties": {
  4527. "list": {
  4528. "type": "array",
  4529. "items": {
  4530. "$ref": "#/definitions/model.AddressBookCollection"
  4531. }
  4532. },
  4533. "page": {
  4534. "type": "integer"
  4535. },
  4536. "page_size": {
  4537. "type": "integer"
  4538. },
  4539. "total": {
  4540. "type": "integer"
  4541. }
  4542. }
  4543. },
  4544. "model.AddressBookCollectionRule": {
  4545. "type": "object",
  4546. "required": [
  4547. "collection_id",
  4548. "rule",
  4549. "to_id",
  4550. "type"
  4551. ],
  4552. "properties": {
  4553. "collection_id": {
  4554. "type": "integer"
  4555. },
  4556. "created_at": {
  4557. "type": "string"
  4558. },
  4559. "id": {
  4560. "type": "integer"
  4561. },
  4562. "rule": {
  4563. "description": "0: 无 1: 读 2: 读写 3: 完全控制",
  4564. "type": "integer",
  4565. "maximum": 3,
  4566. "minimum": 1
  4567. },
  4568. "to_id": {
  4569. "type": "integer"
  4570. },
  4571. "type": {
  4572. "description": "1: 个人 2: 群组",
  4573. "type": "integer",
  4574. "maximum": 2,
  4575. "minimum": 1
  4576. },
  4577. "updated_at": {
  4578. "type": "string"
  4579. },
  4580. "user_id": {
  4581. "type": "integer"
  4582. }
  4583. }
  4584. },
  4585. "model.AddressBookList": {
  4586. "type": "object",
  4587. "properties": {
  4588. "list": {
  4589. "type": "array",
  4590. "items": {
  4591. "$ref": "#/definitions/model.AddressBook"
  4592. }
  4593. },
  4594. "page": {
  4595. "type": "integer"
  4596. },
  4597. "page_size": {
  4598. "type": "integer"
  4599. },
  4600. "total": {
  4601. "type": "integer"
  4602. }
  4603. }
  4604. },
  4605. "model.AuditConn": {
  4606. "type": "object",
  4607. "properties": {
  4608. "action": {
  4609. "type": "string"
  4610. },
  4611. "close_time": {
  4612. "type": "integer"
  4613. },
  4614. "conn_id": {
  4615. "type": "integer"
  4616. },
  4617. "created_at": {
  4618. "type": "string"
  4619. },
  4620. "from_name": {
  4621. "type": "string"
  4622. },
  4623. "from_peer": {
  4624. "type": "string"
  4625. },
  4626. "id": {
  4627. "type": "integer"
  4628. },
  4629. "ip": {
  4630. "type": "string"
  4631. },
  4632. "peer_id": {
  4633. "type": "string"
  4634. },
  4635. "session_id": {
  4636. "type": "string"
  4637. },
  4638. "type": {
  4639. "type": "integer"
  4640. },
  4641. "updated_at": {
  4642. "type": "string"
  4643. },
  4644. "uuid": {
  4645. "type": "string"
  4646. }
  4647. }
  4648. },
  4649. "model.AuditConnList": {
  4650. "type": "object",
  4651. "properties": {
  4652. "list": {
  4653. "type": "array",
  4654. "items": {
  4655. "$ref": "#/definitions/model.AuditConn"
  4656. }
  4657. },
  4658. "page": {
  4659. "type": "integer"
  4660. },
  4661. "page_size": {
  4662. "type": "integer"
  4663. },
  4664. "total": {
  4665. "type": "integer"
  4666. }
  4667. }
  4668. },
  4669. "model.AuditFile": {
  4670. "type": "object",
  4671. "properties": {
  4672. "created_at": {
  4673. "type": "string"
  4674. },
  4675. "from_name": {
  4676. "type": "string"
  4677. },
  4678. "from_peer": {
  4679. "type": "string"
  4680. },
  4681. "id": {
  4682. "type": "integer"
  4683. },
  4684. "info": {
  4685. "type": "string"
  4686. },
  4687. "ip": {
  4688. "type": "string"
  4689. },
  4690. "is_file": {
  4691. "type": "boolean"
  4692. },
  4693. "num": {
  4694. "type": "integer"
  4695. },
  4696. "path": {
  4697. "type": "string"
  4698. },
  4699. "peer_id": {
  4700. "type": "string"
  4701. },
  4702. "type": {
  4703. "type": "integer"
  4704. },
  4705. "updated_at": {
  4706. "type": "string"
  4707. },
  4708. "uuid": {
  4709. "type": "string"
  4710. }
  4711. }
  4712. },
  4713. "model.AuditFileList": {
  4714. "type": "object",
  4715. "properties": {
  4716. "list": {
  4717. "type": "array",
  4718. "items": {
  4719. "$ref": "#/definitions/model.AuditFile"
  4720. }
  4721. },
  4722. "page": {
  4723. "type": "integer"
  4724. },
  4725. "page_size": {
  4726. "type": "integer"
  4727. },
  4728. "total": {
  4729. "type": "integer"
  4730. }
  4731. }
  4732. },
  4733. "model.Group": {
  4734. "type": "object",
  4735. "properties": {
  4736. "created_at": {
  4737. "type": "string"
  4738. },
  4739. "id": {
  4740. "type": "integer"
  4741. },
  4742. "name": {
  4743. "type": "string"
  4744. },
  4745. "type": {
  4746. "type": "integer"
  4747. },
  4748. "updated_at": {
  4749. "type": "string"
  4750. }
  4751. }
  4752. },
  4753. "model.GroupList": {
  4754. "type": "object",
  4755. "properties": {
  4756. "list": {
  4757. "type": "array",
  4758. "items": {
  4759. "$ref": "#/definitions/model.Group"
  4760. }
  4761. },
  4762. "page": {
  4763. "type": "integer"
  4764. },
  4765. "page_size": {
  4766. "type": "integer"
  4767. },
  4768. "total": {
  4769. "type": "integer"
  4770. }
  4771. }
  4772. },
  4773. "model.LoginLog": {
  4774. "type": "object",
  4775. "properties": {
  4776. "client": {
  4777. "description": "webadmin,webclient,app,",
  4778. "type": "string"
  4779. },
  4780. "created_at": {
  4781. "type": "string"
  4782. },
  4783. "device_id": {
  4784. "type": "string"
  4785. },
  4786. "id": {
  4787. "type": "integer"
  4788. },
  4789. "ip": {
  4790. "type": "string"
  4791. },
  4792. "platform": {
  4793. "description": "windows,linux,mac,android,ios",
  4794. "type": "string"
  4795. },
  4796. "type": {
  4797. "description": "account,oauth",
  4798. "type": "string"
  4799. },
  4800. "updated_at": {
  4801. "type": "string"
  4802. },
  4803. "user_id": {
  4804. "type": "integer"
  4805. },
  4806. "user_token_id": {
  4807. "type": "integer"
  4808. },
  4809. "uuid": {
  4810. "type": "string"
  4811. }
  4812. }
  4813. },
  4814. "model.LoginLogList": {
  4815. "type": "object",
  4816. "properties": {
  4817. "list": {
  4818. "type": "array",
  4819. "items": {
  4820. "$ref": "#/definitions/model.LoginLog"
  4821. }
  4822. },
  4823. "page": {
  4824. "type": "integer"
  4825. },
  4826. "page_size": {
  4827. "type": "integer"
  4828. },
  4829. "total": {
  4830. "type": "integer"
  4831. }
  4832. }
  4833. },
  4834. "model.Oauth": {
  4835. "type": "object",
  4836. "properties": {
  4837. "auto_register": {
  4838. "type": "boolean"
  4839. },
  4840. "client_id": {
  4841. "type": "string"
  4842. },
  4843. "client_secret": {
  4844. "type": "string"
  4845. },
  4846. "created_at": {
  4847. "type": "string"
  4848. },
  4849. "id": {
  4850. "type": "integer"
  4851. },
  4852. "issuer": {
  4853. "type": "string"
  4854. },
  4855. "oauth_type": {
  4856. "type": "string"
  4857. },
  4858. "op": {
  4859. "type": "string"
  4860. },
  4861. "redirect_url": {
  4862. "type": "string"
  4863. },
  4864. "scopes": {
  4865. "type": "string"
  4866. },
  4867. "updated_at": {
  4868. "type": "string"
  4869. }
  4870. }
  4871. },
  4872. "model.OauthList": {
  4873. "type": "object",
  4874. "properties": {
  4875. "list": {
  4876. "type": "array",
  4877. "items": {
  4878. "$ref": "#/definitions/model.Oauth"
  4879. }
  4880. },
  4881. "page": {
  4882. "type": "integer"
  4883. },
  4884. "page_size": {
  4885. "type": "integer"
  4886. },
  4887. "total": {
  4888. "type": "integer"
  4889. }
  4890. }
  4891. },
  4892. "model.Peer": {
  4893. "type": "object",
  4894. "properties": {
  4895. "cpu": {
  4896. "type": "string"
  4897. },
  4898. "created_at": {
  4899. "type": "string"
  4900. },
  4901. "hostname": {
  4902. "type": "string"
  4903. },
  4904. "id": {
  4905. "type": "string"
  4906. },
  4907. "last_online_ip": {
  4908. "type": "string"
  4909. },
  4910. "last_online_time": {
  4911. "type": "integer"
  4912. },
  4913. "memory": {
  4914. "type": "string"
  4915. },
  4916. "os": {
  4917. "type": "string"
  4918. },
  4919. "row_id": {
  4920. "type": "integer"
  4921. },
  4922. "updated_at": {
  4923. "type": "string"
  4924. },
  4925. "user": {
  4926. "$ref": "#/definitions/model.User"
  4927. },
  4928. "user_id": {
  4929. "type": "integer"
  4930. },
  4931. "username": {
  4932. "type": "string"
  4933. },
  4934. "uuid": {
  4935. "type": "string"
  4936. },
  4937. "version": {
  4938. "type": "string"
  4939. }
  4940. }
  4941. },
  4942. "model.PeerList": {
  4943. "type": "object",
  4944. "properties": {
  4945. "list": {
  4946. "type": "array",
  4947. "items": {
  4948. "$ref": "#/definitions/model.Peer"
  4949. }
  4950. },
  4951. "page": {
  4952. "type": "integer"
  4953. },
  4954. "page_size": {
  4955. "type": "integer"
  4956. },
  4957. "total": {
  4958. "type": "integer"
  4959. }
  4960. }
  4961. },
  4962. "model.StatusCode": {
  4963. "type": "integer",
  4964. "enum": [
  4965. 1,
  4966. 2
  4967. ],
  4968. "x-enum-comments": {
  4969. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  4970. "COMMON_STATUS_ENABLE": "通用状态 启用"
  4971. },
  4972. "x-enum-varnames": [
  4973. "COMMON_STATUS_ENABLE",
  4974. "COMMON_STATUS_DISABLED"
  4975. ]
  4976. },
  4977. "model.Tag": {
  4978. "type": "object",
  4979. "properties": {
  4980. "collection": {
  4981. "$ref": "#/definitions/model.AddressBookCollection"
  4982. },
  4983. "collection_id": {
  4984. "type": "integer"
  4985. },
  4986. "color": {
  4987. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  4988. "type": "integer"
  4989. },
  4990. "created_at": {
  4991. "type": "string"
  4992. },
  4993. "id": {
  4994. "type": "integer"
  4995. },
  4996. "name": {
  4997. "type": "string"
  4998. },
  4999. "updated_at": {
  5000. "type": "string"
  5001. },
  5002. "user_id": {
  5003. "type": "integer"
  5004. }
  5005. }
  5006. },
  5007. "model.TagList": {
  5008. "type": "object",
  5009. "properties": {
  5010. "list": {
  5011. "type": "array",
  5012. "items": {
  5013. "$ref": "#/definitions/model.Tag"
  5014. }
  5015. },
  5016. "page": {
  5017. "type": "integer"
  5018. },
  5019. "page_size": {
  5020. "type": "integer"
  5021. },
  5022. "total": {
  5023. "type": "integer"
  5024. }
  5025. }
  5026. },
  5027. "model.User": {
  5028. "type": "object",
  5029. "properties": {
  5030. "avatar": {
  5031. "type": "string"
  5032. },
  5033. "created_at": {
  5034. "type": "string"
  5035. },
  5036. "email": {
  5037. "type": "string"
  5038. },
  5039. "group_id": {
  5040. "type": "integer"
  5041. },
  5042. "id": {
  5043. "type": "integer"
  5044. },
  5045. "is_admin": {
  5046. "type": "boolean"
  5047. },
  5048. "nickname": {
  5049. "type": "string"
  5050. },
  5051. "status": {
  5052. "$ref": "#/definitions/model.StatusCode"
  5053. },
  5054. "updated_at": {
  5055. "type": "string"
  5056. },
  5057. "username": {
  5058. "type": "string"
  5059. }
  5060. }
  5061. },
  5062. "model.UserList": {
  5063. "type": "object",
  5064. "properties": {
  5065. "list": {
  5066. "type": "array",
  5067. "items": {
  5068. "$ref": "#/definitions/model.User"
  5069. }
  5070. },
  5071. "page": {
  5072. "type": "integer"
  5073. },
  5074. "page_size": {
  5075. "type": "integer"
  5076. },
  5077. "total": {
  5078. "type": "integer"
  5079. }
  5080. }
  5081. },
  5082. "model.UserToken": {
  5083. "type": "object",
  5084. "properties": {
  5085. "created_at": {
  5086. "type": "string"
  5087. },
  5088. "device_id": {
  5089. "type": "string"
  5090. },
  5091. "device_uuid": {
  5092. "type": "string"
  5093. },
  5094. "expired_at": {
  5095. "type": "integer"
  5096. },
  5097. "id": {
  5098. "type": "integer"
  5099. },
  5100. "token": {
  5101. "type": "string"
  5102. },
  5103. "updated_at": {
  5104. "type": "string"
  5105. },
  5106. "user_id": {
  5107. "type": "integer"
  5108. }
  5109. }
  5110. },
  5111. "model.UserTokenList": {
  5112. "type": "object",
  5113. "properties": {
  5114. "list": {
  5115. "type": "array",
  5116. "items": {
  5117. "$ref": "#/definitions/model.UserToken"
  5118. }
  5119. },
  5120. "page": {
  5121. "type": "integer"
  5122. },
  5123. "page_size": {
  5124. "type": "integer"
  5125. },
  5126. "total": {
  5127. "type": "integer"
  5128. }
  5129. }
  5130. },
  5131. "response.ErrorResponse": {
  5132. "type": "object",
  5133. "properties": {
  5134. "error": {
  5135. "type": "string"
  5136. }
  5137. }
  5138. },
  5139. "response.Response": {
  5140. "type": "object",
  5141. "properties": {
  5142. "code": {
  5143. "type": "integer"
  5144. },
  5145. "data": {},
  5146. "message": {
  5147. "type": "string"
  5148. }
  5149. }
  5150. }
  5151. },
  5152. "securityDefinitions": {
  5153. "BearerAuth": {
  5154. "type": "apiKey",
  5155. "name": "Authorization",
  5156. "in": "header"
  5157. },
  5158. "token": {
  5159. "type": "apiKey",
  5160. "name": "api-token",
  5161. "in": "header"
  5162. }
  5163. }
  5164. }