admin_swagger.json 155 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798
  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/oauth/create": {
  2016. "post": {
  2017. "security": [
  2018. {
  2019. "token": []
  2020. }
  2021. ],
  2022. "description": "创建Oauth",
  2023. "consumes": [
  2024. "application/json"
  2025. ],
  2026. "produces": [
  2027. "application/json"
  2028. ],
  2029. "tags": [
  2030. "Oauth"
  2031. ],
  2032. "summary": "创建Oauth",
  2033. "parameters": [
  2034. {
  2035. "description": "Oauth信息",
  2036. "name": "body",
  2037. "in": "body",
  2038. "required": true,
  2039. "schema": {
  2040. "$ref": "#/definitions/admin.OauthForm"
  2041. }
  2042. }
  2043. ],
  2044. "responses": {
  2045. "200": {
  2046. "description": "OK",
  2047. "schema": {
  2048. "allOf": [
  2049. {
  2050. "$ref": "#/definitions/response.Response"
  2051. },
  2052. {
  2053. "type": "object",
  2054. "properties": {
  2055. "data": {
  2056. "$ref": "#/definitions/model.Oauth"
  2057. }
  2058. }
  2059. }
  2060. ]
  2061. }
  2062. },
  2063. "500": {
  2064. "description": "Internal Server Error",
  2065. "schema": {
  2066. "$ref": "#/definitions/response.Response"
  2067. }
  2068. }
  2069. }
  2070. }
  2071. },
  2072. "/admin/oauth/delete": {
  2073. "post": {
  2074. "security": [
  2075. {
  2076. "token": []
  2077. }
  2078. ],
  2079. "description": "Oauth删除",
  2080. "consumes": [
  2081. "application/json"
  2082. ],
  2083. "produces": [
  2084. "application/json"
  2085. ],
  2086. "tags": [
  2087. "Oauth"
  2088. ],
  2089. "summary": "Oauth删除",
  2090. "parameters": [
  2091. {
  2092. "description": "Oauth信息",
  2093. "name": "body",
  2094. "in": "body",
  2095. "required": true,
  2096. "schema": {
  2097. "$ref": "#/definitions/admin.OauthForm"
  2098. }
  2099. }
  2100. ],
  2101. "responses": {
  2102. "200": {
  2103. "description": "OK",
  2104. "schema": {
  2105. "$ref": "#/definitions/response.Response"
  2106. }
  2107. },
  2108. "500": {
  2109. "description": "Internal Server Error",
  2110. "schema": {
  2111. "$ref": "#/definitions/response.Response"
  2112. }
  2113. }
  2114. }
  2115. }
  2116. },
  2117. "/admin/oauth/detail/{id}": {
  2118. "get": {
  2119. "security": [
  2120. {
  2121. "token": []
  2122. }
  2123. ],
  2124. "description": "Oauth详情",
  2125. "consumes": [
  2126. "application/json"
  2127. ],
  2128. "produces": [
  2129. "application/json"
  2130. ],
  2131. "tags": [
  2132. "Oauth"
  2133. ],
  2134. "summary": "Oauth详情",
  2135. "parameters": [
  2136. {
  2137. "type": "integer",
  2138. "description": "ID",
  2139. "name": "id",
  2140. "in": "path",
  2141. "required": true
  2142. }
  2143. ],
  2144. "responses": {
  2145. "200": {
  2146. "description": "OK",
  2147. "schema": {
  2148. "allOf": [
  2149. {
  2150. "$ref": "#/definitions/response.Response"
  2151. },
  2152. {
  2153. "type": "object",
  2154. "properties": {
  2155. "data": {
  2156. "$ref": "#/definitions/model.Oauth"
  2157. }
  2158. }
  2159. }
  2160. ]
  2161. }
  2162. },
  2163. "500": {
  2164. "description": "Internal Server Error",
  2165. "schema": {
  2166. "$ref": "#/definitions/response.Response"
  2167. }
  2168. }
  2169. }
  2170. }
  2171. },
  2172. "/admin/oauth/list": {
  2173. "get": {
  2174. "security": [
  2175. {
  2176. "token": []
  2177. }
  2178. ],
  2179. "description": "Oauth列表",
  2180. "consumes": [
  2181. "application/json"
  2182. ],
  2183. "produces": [
  2184. "application/json"
  2185. ],
  2186. "tags": [
  2187. "Oauth"
  2188. ],
  2189. "summary": "Oauth列表",
  2190. "parameters": [
  2191. {
  2192. "type": "integer",
  2193. "description": "页码",
  2194. "name": "page",
  2195. "in": "query"
  2196. },
  2197. {
  2198. "type": "integer",
  2199. "description": "页大小",
  2200. "name": "page_size",
  2201. "in": "query"
  2202. }
  2203. ],
  2204. "responses": {
  2205. "200": {
  2206. "description": "OK",
  2207. "schema": {
  2208. "allOf": [
  2209. {
  2210. "$ref": "#/definitions/response.Response"
  2211. },
  2212. {
  2213. "type": "object",
  2214. "properties": {
  2215. "data": {
  2216. "$ref": "#/definitions/model.OauthList"
  2217. }
  2218. }
  2219. }
  2220. ]
  2221. }
  2222. },
  2223. "500": {
  2224. "description": "Internal Server Error",
  2225. "schema": {
  2226. "$ref": "#/definitions/response.Response"
  2227. }
  2228. }
  2229. }
  2230. }
  2231. },
  2232. "/admin/oauth/update": {
  2233. "post": {
  2234. "security": [
  2235. {
  2236. "token": []
  2237. }
  2238. ],
  2239. "description": "Oauth编辑",
  2240. "consumes": [
  2241. "application/json"
  2242. ],
  2243. "produces": [
  2244. "application/json"
  2245. ],
  2246. "tags": [
  2247. "Oauth"
  2248. ],
  2249. "summary": "Oauth编辑",
  2250. "parameters": [
  2251. {
  2252. "description": "Oauth信息",
  2253. "name": "body",
  2254. "in": "body",
  2255. "required": true,
  2256. "schema": {
  2257. "$ref": "#/definitions/admin.OauthForm"
  2258. }
  2259. }
  2260. ],
  2261. "responses": {
  2262. "200": {
  2263. "description": "OK",
  2264. "schema": {
  2265. "allOf": [
  2266. {
  2267. "$ref": "#/definitions/response.Response"
  2268. },
  2269. {
  2270. "type": "object",
  2271. "properties": {
  2272. "data": {
  2273. "$ref": "#/definitions/model.OauthList"
  2274. }
  2275. }
  2276. }
  2277. ]
  2278. }
  2279. },
  2280. "500": {
  2281. "description": "Internal Server Error",
  2282. "schema": {
  2283. "$ref": "#/definitions/response.Response"
  2284. }
  2285. }
  2286. }
  2287. }
  2288. },
  2289. "/admin/oidc/auth": {
  2290. "post": {
  2291. "description": "OidcAuth",
  2292. "consumes": [
  2293. "application/json"
  2294. ],
  2295. "produces": [
  2296. "application/json"
  2297. ],
  2298. "tags": [
  2299. "Oauth"
  2300. ],
  2301. "summary": "OidcAuth",
  2302. "responses": {}
  2303. }
  2304. },
  2305. "/admin/oidc/auth-query": {
  2306. "get": {
  2307. "description": "OidcAuthQuery",
  2308. "consumes": [
  2309. "application/json"
  2310. ],
  2311. "produces": [
  2312. "application/json"
  2313. ],
  2314. "tags": [
  2315. "Oauth"
  2316. ],
  2317. "summary": "OidcAuthQuery",
  2318. "responses": {
  2319. "200": {
  2320. "description": "OK",
  2321. "schema": {
  2322. "allOf": [
  2323. {
  2324. "$ref": "#/definitions/response.Response"
  2325. },
  2326. {
  2327. "type": "object",
  2328. "properties": {
  2329. "data": {
  2330. "$ref": "#/definitions/admin.LoginPayload"
  2331. }
  2332. }
  2333. }
  2334. ]
  2335. }
  2336. },
  2337. "500": {
  2338. "description": "Internal Server Error",
  2339. "schema": {
  2340. "$ref": "#/definitions/response.Response"
  2341. }
  2342. }
  2343. }
  2344. }
  2345. },
  2346. "/admin/peer/batchDelete": {
  2347. "post": {
  2348. "security": [
  2349. {
  2350. "token": []
  2351. }
  2352. ],
  2353. "description": "批量设备删除",
  2354. "consumes": [
  2355. "application/json"
  2356. ],
  2357. "produces": [
  2358. "application/json"
  2359. ],
  2360. "tags": [
  2361. "设备"
  2362. ],
  2363. "summary": "批量设备删除",
  2364. "parameters": [
  2365. {
  2366. "description": "设备id",
  2367. "name": "body",
  2368. "in": "body",
  2369. "required": true,
  2370. "schema": {
  2371. "$ref": "#/definitions/admin.PeerBatchDeleteForm"
  2372. }
  2373. }
  2374. ],
  2375. "responses": {
  2376. "200": {
  2377. "description": "OK",
  2378. "schema": {
  2379. "$ref": "#/definitions/response.Response"
  2380. }
  2381. },
  2382. "500": {
  2383. "description": "Internal Server Error",
  2384. "schema": {
  2385. "$ref": "#/definitions/response.Response"
  2386. }
  2387. }
  2388. }
  2389. }
  2390. },
  2391. "/admin/peer/create": {
  2392. "post": {
  2393. "security": [
  2394. {
  2395. "token": []
  2396. }
  2397. ],
  2398. "description": "创建设备",
  2399. "consumes": [
  2400. "application/json"
  2401. ],
  2402. "produces": [
  2403. "application/json"
  2404. ],
  2405. "tags": [
  2406. "设备"
  2407. ],
  2408. "summary": "创建设备",
  2409. "parameters": [
  2410. {
  2411. "description": "设备信息",
  2412. "name": "body",
  2413. "in": "body",
  2414. "required": true,
  2415. "schema": {
  2416. "$ref": "#/definitions/admin.PeerForm"
  2417. }
  2418. }
  2419. ],
  2420. "responses": {
  2421. "200": {
  2422. "description": "OK",
  2423. "schema": {
  2424. "allOf": [
  2425. {
  2426. "$ref": "#/definitions/response.Response"
  2427. },
  2428. {
  2429. "type": "object",
  2430. "properties": {
  2431. "data": {
  2432. "$ref": "#/definitions/model.Peer"
  2433. }
  2434. }
  2435. }
  2436. ]
  2437. }
  2438. },
  2439. "500": {
  2440. "description": "Internal Server Error",
  2441. "schema": {
  2442. "$ref": "#/definitions/response.Response"
  2443. }
  2444. }
  2445. }
  2446. }
  2447. },
  2448. "/admin/peer/delete": {
  2449. "post": {
  2450. "security": [
  2451. {
  2452. "token": []
  2453. }
  2454. ],
  2455. "description": "设备删除",
  2456. "consumes": [
  2457. "application/json"
  2458. ],
  2459. "produces": [
  2460. "application/json"
  2461. ],
  2462. "tags": [
  2463. "设备"
  2464. ],
  2465. "summary": "设备删除",
  2466. "parameters": [
  2467. {
  2468. "description": "设备信息",
  2469. "name": "body",
  2470. "in": "body",
  2471. "required": true,
  2472. "schema": {
  2473. "$ref": "#/definitions/admin.PeerForm"
  2474. }
  2475. }
  2476. ],
  2477. "responses": {
  2478. "200": {
  2479. "description": "OK",
  2480. "schema": {
  2481. "$ref": "#/definitions/response.Response"
  2482. }
  2483. },
  2484. "500": {
  2485. "description": "Internal Server Error",
  2486. "schema": {
  2487. "$ref": "#/definitions/response.Response"
  2488. }
  2489. }
  2490. }
  2491. }
  2492. },
  2493. "/admin/peer/detail/{id}": {
  2494. "get": {
  2495. "security": [
  2496. {
  2497. "token": []
  2498. }
  2499. ],
  2500. "description": "设备详情",
  2501. "consumes": [
  2502. "application/json"
  2503. ],
  2504. "produces": [
  2505. "application/json"
  2506. ],
  2507. "tags": [
  2508. "设备"
  2509. ],
  2510. "summary": "设备详情",
  2511. "parameters": [
  2512. {
  2513. "type": "integer",
  2514. "description": "ID",
  2515. "name": "id",
  2516. "in": "path",
  2517. "required": true
  2518. }
  2519. ],
  2520. "responses": {
  2521. "200": {
  2522. "description": "OK",
  2523. "schema": {
  2524. "allOf": [
  2525. {
  2526. "$ref": "#/definitions/response.Response"
  2527. },
  2528. {
  2529. "type": "object",
  2530. "properties": {
  2531. "data": {
  2532. "$ref": "#/definitions/model.Peer"
  2533. }
  2534. }
  2535. }
  2536. ]
  2537. }
  2538. },
  2539. "500": {
  2540. "description": "Internal Server Error",
  2541. "schema": {
  2542. "$ref": "#/definitions/response.Response"
  2543. }
  2544. }
  2545. }
  2546. }
  2547. },
  2548. "/admin/peer/list": {
  2549. "get": {
  2550. "security": [
  2551. {
  2552. "token": []
  2553. }
  2554. ],
  2555. "description": "设备列表",
  2556. "consumes": [
  2557. "application/json"
  2558. ],
  2559. "produces": [
  2560. "application/json"
  2561. ],
  2562. "tags": [
  2563. "设备"
  2564. ],
  2565. "summary": "设备列表",
  2566. "parameters": [
  2567. {
  2568. "type": "integer",
  2569. "description": "页码",
  2570. "name": "page",
  2571. "in": "query"
  2572. },
  2573. {
  2574. "type": "integer",
  2575. "description": "页大小",
  2576. "name": "page_size",
  2577. "in": "query"
  2578. },
  2579. {
  2580. "type": "integer",
  2581. "description": "时间",
  2582. "name": "time_ago",
  2583. "in": "query"
  2584. },
  2585. {
  2586. "type": "string",
  2587. "description": "ID",
  2588. "name": "id",
  2589. "in": "query"
  2590. },
  2591. {
  2592. "type": "string",
  2593. "description": "主机名",
  2594. "name": "hostname",
  2595. "in": "query"
  2596. },
  2597. {
  2598. "type": "string",
  2599. "description": "uuids 用逗号分隔",
  2600. "name": "uuids",
  2601. "in": "query"
  2602. }
  2603. ],
  2604. "responses": {
  2605. "200": {
  2606. "description": "OK",
  2607. "schema": {
  2608. "allOf": [
  2609. {
  2610. "$ref": "#/definitions/response.Response"
  2611. },
  2612. {
  2613. "type": "object",
  2614. "properties": {
  2615. "data": {
  2616. "$ref": "#/definitions/model.PeerList"
  2617. }
  2618. }
  2619. }
  2620. ]
  2621. }
  2622. },
  2623. "500": {
  2624. "description": "Internal Server Error",
  2625. "schema": {
  2626. "$ref": "#/definitions/response.Response"
  2627. }
  2628. }
  2629. }
  2630. }
  2631. },
  2632. "/admin/peer/update": {
  2633. "post": {
  2634. "security": [
  2635. {
  2636. "token": []
  2637. }
  2638. ],
  2639. "description": "设备编辑",
  2640. "consumes": [
  2641. "application/json"
  2642. ],
  2643. "produces": [
  2644. "application/json"
  2645. ],
  2646. "tags": [
  2647. "设备"
  2648. ],
  2649. "summary": "设备编辑",
  2650. "parameters": [
  2651. {
  2652. "description": "设备信息",
  2653. "name": "body",
  2654. "in": "body",
  2655. "required": true,
  2656. "schema": {
  2657. "$ref": "#/definitions/admin.PeerForm"
  2658. }
  2659. }
  2660. ],
  2661. "responses": {
  2662. "200": {
  2663. "description": "OK",
  2664. "schema": {
  2665. "allOf": [
  2666. {
  2667. "$ref": "#/definitions/response.Response"
  2668. },
  2669. {
  2670. "type": "object",
  2671. "properties": {
  2672. "data": {
  2673. "$ref": "#/definitions/model.Peer"
  2674. }
  2675. }
  2676. }
  2677. ]
  2678. }
  2679. },
  2680. "500": {
  2681. "description": "Internal Server Error",
  2682. "schema": {
  2683. "$ref": "#/definitions/response.Response"
  2684. }
  2685. }
  2686. }
  2687. }
  2688. },
  2689. "/admin/server-config": {
  2690. "get": {
  2691. "security": [
  2692. {
  2693. "token": []
  2694. }
  2695. ],
  2696. "description": "服务配置,给webclient提供api-server",
  2697. "consumes": [
  2698. "application/json"
  2699. ],
  2700. "produces": [
  2701. "application/json"
  2702. ],
  2703. "tags": [
  2704. "ADMIN"
  2705. ],
  2706. "summary": "RUSTDESK服务配置",
  2707. "responses": {
  2708. "200": {
  2709. "description": "OK",
  2710. "schema": {
  2711. "$ref": "#/definitions/response.Response"
  2712. }
  2713. },
  2714. "500": {
  2715. "description": "Internal Server Error",
  2716. "schema": {
  2717. "$ref": "#/definitions/response.Response"
  2718. }
  2719. }
  2720. }
  2721. }
  2722. },
  2723. "/admin/tag/create": {
  2724. "post": {
  2725. "security": [
  2726. {
  2727. "token": []
  2728. }
  2729. ],
  2730. "description": "创建标签",
  2731. "consumes": [
  2732. "application/json"
  2733. ],
  2734. "produces": [
  2735. "application/json"
  2736. ],
  2737. "tags": [
  2738. "标签"
  2739. ],
  2740. "summary": "创建标签",
  2741. "parameters": [
  2742. {
  2743. "description": "标签信息",
  2744. "name": "body",
  2745. "in": "body",
  2746. "required": true,
  2747. "schema": {
  2748. "$ref": "#/definitions/admin.TagForm"
  2749. }
  2750. }
  2751. ],
  2752. "responses": {
  2753. "200": {
  2754. "description": "OK",
  2755. "schema": {
  2756. "allOf": [
  2757. {
  2758. "$ref": "#/definitions/response.Response"
  2759. },
  2760. {
  2761. "type": "object",
  2762. "properties": {
  2763. "data": {
  2764. "$ref": "#/definitions/model.Tag"
  2765. }
  2766. }
  2767. }
  2768. ]
  2769. }
  2770. },
  2771. "500": {
  2772. "description": "Internal Server Error",
  2773. "schema": {
  2774. "$ref": "#/definitions/response.Response"
  2775. }
  2776. }
  2777. }
  2778. }
  2779. },
  2780. "/admin/tag/delete": {
  2781. "post": {
  2782. "security": [
  2783. {
  2784. "token": []
  2785. }
  2786. ],
  2787. "description": "标签删除",
  2788. "consumes": [
  2789. "application/json"
  2790. ],
  2791. "produces": [
  2792. "application/json"
  2793. ],
  2794. "tags": [
  2795. "标签"
  2796. ],
  2797. "summary": "标签删除",
  2798. "parameters": [
  2799. {
  2800. "description": "标签信息",
  2801. "name": "body",
  2802. "in": "body",
  2803. "required": true,
  2804. "schema": {
  2805. "$ref": "#/definitions/admin.TagForm"
  2806. }
  2807. }
  2808. ],
  2809. "responses": {
  2810. "200": {
  2811. "description": "OK",
  2812. "schema": {
  2813. "$ref": "#/definitions/response.Response"
  2814. }
  2815. },
  2816. "500": {
  2817. "description": "Internal Server Error",
  2818. "schema": {
  2819. "$ref": "#/definitions/response.Response"
  2820. }
  2821. }
  2822. }
  2823. }
  2824. },
  2825. "/admin/tag/detail/{id}": {
  2826. "get": {
  2827. "security": [
  2828. {
  2829. "token": []
  2830. }
  2831. ],
  2832. "description": "标签详情",
  2833. "consumes": [
  2834. "application/json"
  2835. ],
  2836. "produces": [
  2837. "application/json"
  2838. ],
  2839. "tags": [
  2840. "标签"
  2841. ],
  2842. "summary": "标签详情",
  2843. "parameters": [
  2844. {
  2845. "type": "integer",
  2846. "description": "ID",
  2847. "name": "id",
  2848. "in": "path",
  2849. "required": true
  2850. }
  2851. ],
  2852. "responses": {
  2853. "200": {
  2854. "description": "OK",
  2855. "schema": {
  2856. "allOf": [
  2857. {
  2858. "$ref": "#/definitions/response.Response"
  2859. },
  2860. {
  2861. "type": "object",
  2862. "properties": {
  2863. "data": {
  2864. "$ref": "#/definitions/model.Tag"
  2865. }
  2866. }
  2867. }
  2868. ]
  2869. }
  2870. },
  2871. "500": {
  2872. "description": "Internal Server Error",
  2873. "schema": {
  2874. "$ref": "#/definitions/response.Response"
  2875. }
  2876. }
  2877. }
  2878. }
  2879. },
  2880. "/admin/tag/list": {
  2881. "get": {
  2882. "security": [
  2883. {
  2884. "token": []
  2885. }
  2886. ],
  2887. "description": "标签列表",
  2888. "consumes": [
  2889. "application/json"
  2890. ],
  2891. "produces": [
  2892. "application/json"
  2893. ],
  2894. "tags": [
  2895. "标签"
  2896. ],
  2897. "summary": "标签列表",
  2898. "parameters": [
  2899. {
  2900. "type": "integer",
  2901. "description": "页码",
  2902. "name": "page",
  2903. "in": "query"
  2904. },
  2905. {
  2906. "type": "integer",
  2907. "description": "页大小",
  2908. "name": "page_size",
  2909. "in": "query"
  2910. },
  2911. {
  2912. "type": "integer",
  2913. "description": "是否是我的",
  2914. "name": "is_my",
  2915. "in": "query"
  2916. },
  2917. {
  2918. "type": "integer",
  2919. "description": "用户id",
  2920. "name": "user_id",
  2921. "in": "query"
  2922. }
  2923. ],
  2924. "responses": {
  2925. "200": {
  2926. "description": "OK",
  2927. "schema": {
  2928. "allOf": [
  2929. {
  2930. "$ref": "#/definitions/response.Response"
  2931. },
  2932. {
  2933. "type": "object",
  2934. "properties": {
  2935. "data": {
  2936. "$ref": "#/definitions/model.TagList"
  2937. }
  2938. }
  2939. }
  2940. ]
  2941. }
  2942. },
  2943. "500": {
  2944. "description": "Internal Server Error",
  2945. "schema": {
  2946. "$ref": "#/definitions/response.Response"
  2947. }
  2948. }
  2949. }
  2950. }
  2951. },
  2952. "/admin/tag/update": {
  2953. "post": {
  2954. "security": [
  2955. {
  2956. "token": []
  2957. }
  2958. ],
  2959. "description": "标签编辑",
  2960. "consumes": [
  2961. "application/json"
  2962. ],
  2963. "produces": [
  2964. "application/json"
  2965. ],
  2966. "tags": [
  2967. "标签"
  2968. ],
  2969. "summary": "标签编辑",
  2970. "parameters": [
  2971. {
  2972. "description": "标签信息",
  2973. "name": "body",
  2974. "in": "body",
  2975. "required": true,
  2976. "schema": {
  2977. "$ref": "#/definitions/admin.TagForm"
  2978. }
  2979. }
  2980. ],
  2981. "responses": {
  2982. "200": {
  2983. "description": "OK",
  2984. "schema": {
  2985. "allOf": [
  2986. {
  2987. "$ref": "#/definitions/response.Response"
  2988. },
  2989. {
  2990. "type": "object",
  2991. "properties": {
  2992. "data": {
  2993. "$ref": "#/definitions/model.Tag"
  2994. }
  2995. }
  2996. }
  2997. ]
  2998. }
  2999. },
  3000. "500": {
  3001. "description": "Internal Server Error",
  3002. "schema": {
  3003. "$ref": "#/definitions/response.Response"
  3004. }
  3005. }
  3006. }
  3007. }
  3008. },
  3009. "/admin/user/changeCurPwd": {
  3010. "post": {
  3011. "security": [
  3012. {
  3013. "token": []
  3014. }
  3015. ],
  3016. "description": "修改当前用户密码",
  3017. "consumes": [
  3018. "application/json"
  3019. ],
  3020. "produces": [
  3021. "application/json"
  3022. ],
  3023. "tags": [
  3024. "用户"
  3025. ],
  3026. "summary": "修改当前用户密码",
  3027. "parameters": [
  3028. {
  3029. "description": "用户信息",
  3030. "name": "body",
  3031. "in": "body",
  3032. "required": true,
  3033. "schema": {
  3034. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  3035. }
  3036. }
  3037. ],
  3038. "responses": {
  3039. "200": {
  3040. "description": "OK",
  3041. "schema": {
  3042. "$ref": "#/definitions/response.Response"
  3043. }
  3044. },
  3045. "500": {
  3046. "description": "Internal Server Error",
  3047. "schema": {
  3048. "$ref": "#/definitions/response.Response"
  3049. }
  3050. }
  3051. }
  3052. }
  3053. },
  3054. "/admin/user/create": {
  3055. "post": {
  3056. "security": [
  3057. {
  3058. "token": []
  3059. }
  3060. ],
  3061. "description": "创建管理员",
  3062. "consumes": [
  3063. "application/json"
  3064. ],
  3065. "produces": [
  3066. "application/json"
  3067. ],
  3068. "tags": [
  3069. "用户"
  3070. ],
  3071. "summary": "创建管理员",
  3072. "parameters": [
  3073. {
  3074. "description": "管理员信息",
  3075. "name": "body",
  3076. "in": "body",
  3077. "required": true,
  3078. "schema": {
  3079. "$ref": "#/definitions/admin.UserForm"
  3080. }
  3081. }
  3082. ],
  3083. "responses": {
  3084. "200": {
  3085. "description": "OK",
  3086. "schema": {
  3087. "allOf": [
  3088. {
  3089. "$ref": "#/definitions/response.Response"
  3090. },
  3091. {
  3092. "type": "object",
  3093. "properties": {
  3094. "data": {
  3095. "$ref": "#/definitions/model.User"
  3096. }
  3097. }
  3098. }
  3099. ]
  3100. }
  3101. },
  3102. "500": {
  3103. "description": "Internal Server Error",
  3104. "schema": {
  3105. "$ref": "#/definitions/response.Response"
  3106. }
  3107. }
  3108. }
  3109. }
  3110. },
  3111. "/admin/user/current": {
  3112. "get": {
  3113. "security": [
  3114. {
  3115. "token": []
  3116. }
  3117. ],
  3118. "description": "当前用户",
  3119. "consumes": [
  3120. "application/json"
  3121. ],
  3122. "produces": [
  3123. "application/json"
  3124. ],
  3125. "tags": [
  3126. "用户"
  3127. ],
  3128. "summary": "当前用户",
  3129. "responses": {
  3130. "200": {
  3131. "description": "OK",
  3132. "schema": {
  3133. "allOf": [
  3134. {
  3135. "$ref": "#/definitions/response.Response"
  3136. },
  3137. {
  3138. "type": "object",
  3139. "properties": {
  3140. "data": {
  3141. "$ref": "#/definitions/admin.LoginPayload"
  3142. }
  3143. }
  3144. }
  3145. ]
  3146. }
  3147. },
  3148. "500": {
  3149. "description": "Internal Server Error",
  3150. "schema": {
  3151. "$ref": "#/definitions/response.Response"
  3152. }
  3153. }
  3154. }
  3155. }
  3156. },
  3157. "/admin/user/delete": {
  3158. "post": {
  3159. "security": [
  3160. {
  3161. "token": []
  3162. }
  3163. ],
  3164. "description": "管理员编删除",
  3165. "consumes": [
  3166. "application/json"
  3167. ],
  3168. "produces": [
  3169. "application/json"
  3170. ],
  3171. "tags": [
  3172. "用户"
  3173. ],
  3174. "summary": "管理员删除",
  3175. "parameters": [
  3176. {
  3177. "description": "用户信息",
  3178. "name": "body",
  3179. "in": "body",
  3180. "required": true,
  3181. "schema": {
  3182. "$ref": "#/definitions/admin.UserForm"
  3183. }
  3184. }
  3185. ],
  3186. "responses": {
  3187. "200": {
  3188. "description": "OK",
  3189. "schema": {
  3190. "$ref": "#/definitions/response.Response"
  3191. }
  3192. },
  3193. "500": {
  3194. "description": "Internal Server Error",
  3195. "schema": {
  3196. "$ref": "#/definitions/response.Response"
  3197. }
  3198. }
  3199. }
  3200. }
  3201. },
  3202. "/admin/user/detail/{id}": {
  3203. "get": {
  3204. "security": [
  3205. {
  3206. "token": []
  3207. }
  3208. ],
  3209. "description": "管理员详情",
  3210. "consumes": [
  3211. "application/json"
  3212. ],
  3213. "produces": [
  3214. "application/json"
  3215. ],
  3216. "tags": [
  3217. "用户"
  3218. ],
  3219. "summary": "管理员详情",
  3220. "parameters": [
  3221. {
  3222. "type": "integer",
  3223. "description": "ID",
  3224. "name": "id",
  3225. "in": "path",
  3226. "required": true
  3227. }
  3228. ],
  3229. "responses": {
  3230. "200": {
  3231. "description": "OK",
  3232. "schema": {
  3233. "allOf": [
  3234. {
  3235. "$ref": "#/definitions/response.Response"
  3236. },
  3237. {
  3238. "type": "object",
  3239. "properties": {
  3240. "data": {
  3241. "$ref": "#/definitions/model.User"
  3242. }
  3243. }
  3244. }
  3245. ]
  3246. }
  3247. },
  3248. "500": {
  3249. "description": "Internal Server Error",
  3250. "schema": {
  3251. "$ref": "#/definitions/response.Response"
  3252. }
  3253. }
  3254. }
  3255. }
  3256. },
  3257. "/admin/user/list": {
  3258. "get": {
  3259. "security": [
  3260. {
  3261. "token": []
  3262. }
  3263. ],
  3264. "description": "管理员列表",
  3265. "consumes": [
  3266. "application/json"
  3267. ],
  3268. "produces": [
  3269. "application/json"
  3270. ],
  3271. "tags": [
  3272. "用户"
  3273. ],
  3274. "summary": "管理员列表",
  3275. "parameters": [
  3276. {
  3277. "type": "integer",
  3278. "description": "页码",
  3279. "name": "page",
  3280. "in": "query"
  3281. },
  3282. {
  3283. "type": "integer",
  3284. "description": "页大小",
  3285. "name": "page_size",
  3286. "in": "query"
  3287. },
  3288. {
  3289. "type": "integer",
  3290. "description": "账户",
  3291. "name": "username",
  3292. "in": "query"
  3293. }
  3294. ],
  3295. "responses": {
  3296. "200": {
  3297. "description": "OK",
  3298. "schema": {
  3299. "allOf": [
  3300. {
  3301. "$ref": "#/definitions/response.Response"
  3302. },
  3303. {
  3304. "type": "object",
  3305. "properties": {
  3306. "data": {
  3307. "$ref": "#/definitions/model.UserList"
  3308. }
  3309. }
  3310. }
  3311. ]
  3312. }
  3313. },
  3314. "500": {
  3315. "description": "Internal Server Error",
  3316. "schema": {
  3317. "$ref": "#/definitions/response.Response"
  3318. }
  3319. }
  3320. }
  3321. }
  3322. },
  3323. "/admin/user/myOauth": {
  3324. "get": {
  3325. "security": [
  3326. {
  3327. "token": []
  3328. }
  3329. ],
  3330. "description": "我的授权",
  3331. "consumes": [
  3332. "application/json"
  3333. ],
  3334. "produces": [
  3335. "application/json"
  3336. ],
  3337. "tags": [
  3338. "用户"
  3339. ],
  3340. "summary": "我的授权",
  3341. "responses": {
  3342. "200": {
  3343. "description": "OK",
  3344. "schema": {
  3345. "allOf": [
  3346. {
  3347. "$ref": "#/definitions/response.Response"
  3348. },
  3349. {
  3350. "type": "object",
  3351. "properties": {
  3352. "data": {
  3353. "type": "array",
  3354. "items": {
  3355. "$ref": "#/definitions/admin.UserOauthItem"
  3356. }
  3357. }
  3358. }
  3359. }
  3360. ]
  3361. }
  3362. },
  3363. "500": {
  3364. "description": "Internal Server Error",
  3365. "schema": {
  3366. "$ref": "#/definitions/response.Response"
  3367. }
  3368. }
  3369. }
  3370. }
  3371. },
  3372. "/admin/user/myPeer": {
  3373. "get": {
  3374. "security": [
  3375. {
  3376. "token": []
  3377. }
  3378. ],
  3379. "description": "我的设备列表",
  3380. "consumes": [
  3381. "application/json"
  3382. ],
  3383. "produces": [
  3384. "application/json"
  3385. ],
  3386. "tags": [
  3387. "设备"
  3388. ],
  3389. "summary": "我的设备列表",
  3390. "parameters": [
  3391. {
  3392. "type": "integer",
  3393. "description": "页码",
  3394. "name": "page",
  3395. "in": "query"
  3396. },
  3397. {
  3398. "type": "integer",
  3399. "description": "页大小",
  3400. "name": "page_size",
  3401. "in": "query"
  3402. },
  3403. {
  3404. "type": "integer",
  3405. "description": "时间",
  3406. "name": "time_ago",
  3407. "in": "query"
  3408. },
  3409. {
  3410. "type": "string",
  3411. "description": "ID",
  3412. "name": "id",
  3413. "in": "query"
  3414. },
  3415. {
  3416. "type": "string",
  3417. "description": "主机名",
  3418. "name": "hostname",
  3419. "in": "query"
  3420. },
  3421. {
  3422. "type": "string",
  3423. "description": "uuids 用逗号分隔",
  3424. "name": "uuids",
  3425. "in": "query"
  3426. }
  3427. ],
  3428. "responses": {
  3429. "200": {
  3430. "description": "OK",
  3431. "schema": {
  3432. "allOf": [
  3433. {
  3434. "$ref": "#/definitions/response.Response"
  3435. },
  3436. {
  3437. "type": "object",
  3438. "properties": {
  3439. "data": {
  3440. "$ref": "#/definitions/model.PeerList"
  3441. }
  3442. }
  3443. }
  3444. ]
  3445. }
  3446. },
  3447. "500": {
  3448. "description": "Internal Server Error",
  3449. "schema": {
  3450. "$ref": "#/definitions/response.Response"
  3451. }
  3452. }
  3453. }
  3454. }
  3455. },
  3456. "/admin/user/update": {
  3457. "post": {
  3458. "security": [
  3459. {
  3460. "token": []
  3461. }
  3462. ],
  3463. "description": "管理员编辑",
  3464. "consumes": [
  3465. "application/json"
  3466. ],
  3467. "produces": [
  3468. "application/json"
  3469. ],
  3470. "tags": [
  3471. "用户"
  3472. ],
  3473. "summary": "管理员编辑",
  3474. "parameters": [
  3475. {
  3476. "description": "用户信息",
  3477. "name": "body",
  3478. "in": "body",
  3479. "required": true,
  3480. "schema": {
  3481. "$ref": "#/definitions/admin.UserForm"
  3482. }
  3483. }
  3484. ],
  3485. "responses": {
  3486. "200": {
  3487. "description": "OK",
  3488. "schema": {
  3489. "allOf": [
  3490. {
  3491. "$ref": "#/definitions/response.Response"
  3492. },
  3493. {
  3494. "type": "object",
  3495. "properties": {
  3496. "data": {
  3497. "$ref": "#/definitions/model.User"
  3498. }
  3499. }
  3500. }
  3501. ]
  3502. }
  3503. },
  3504. "500": {
  3505. "description": "Internal Server Error",
  3506. "schema": {
  3507. "$ref": "#/definitions/response.Response"
  3508. }
  3509. }
  3510. }
  3511. }
  3512. },
  3513. "/admin/user/updatePassword": {
  3514. "post": {
  3515. "security": [
  3516. {
  3517. "token": []
  3518. }
  3519. ],
  3520. "description": "修改密码",
  3521. "consumes": [
  3522. "application/json"
  3523. ],
  3524. "produces": [
  3525. "application/json"
  3526. ],
  3527. "tags": [
  3528. "用户"
  3529. ],
  3530. "summary": "修改密码",
  3531. "parameters": [
  3532. {
  3533. "description": "用户信息",
  3534. "name": "body",
  3535. "in": "body",
  3536. "required": true,
  3537. "schema": {
  3538. "$ref": "#/definitions/admin.UserPasswordForm"
  3539. }
  3540. }
  3541. ],
  3542. "responses": {
  3543. "200": {
  3544. "description": "OK",
  3545. "schema": {
  3546. "$ref": "#/definitions/response.Response"
  3547. }
  3548. },
  3549. "500": {
  3550. "description": "Internal Server Error",
  3551. "schema": {
  3552. "$ref": "#/definitions/response.Response"
  3553. }
  3554. }
  3555. }
  3556. }
  3557. },
  3558. "/admin/user_token/delete": {
  3559. "post": {
  3560. "security": [
  3561. {
  3562. "token": []
  3563. }
  3564. ],
  3565. "description": "登录凭证删除",
  3566. "consumes": [
  3567. "application/json"
  3568. ],
  3569. "produces": [
  3570. "application/json"
  3571. ],
  3572. "tags": [
  3573. "登录凭证"
  3574. ],
  3575. "summary": "登录凭证删除",
  3576. "parameters": [
  3577. {
  3578. "description": "登录凭证信息",
  3579. "name": "body",
  3580. "in": "body",
  3581. "required": true,
  3582. "schema": {
  3583. "$ref": "#/definitions/model.UserToken"
  3584. }
  3585. }
  3586. ],
  3587. "responses": {
  3588. "200": {
  3589. "description": "OK",
  3590. "schema": {
  3591. "$ref": "#/definitions/response.Response"
  3592. }
  3593. },
  3594. "500": {
  3595. "description": "Internal Server Error",
  3596. "schema": {
  3597. "$ref": "#/definitions/response.Response"
  3598. }
  3599. }
  3600. }
  3601. }
  3602. },
  3603. "/admin/user_token/list": {
  3604. "get": {
  3605. "security": [
  3606. {
  3607. "token": []
  3608. }
  3609. ],
  3610. "description": "登录凭证列表",
  3611. "consumes": [
  3612. "application/json"
  3613. ],
  3614. "produces": [
  3615. "application/json"
  3616. ],
  3617. "tags": [
  3618. "登录凭证"
  3619. ],
  3620. "summary": "登录凭证列表",
  3621. "parameters": [
  3622. {
  3623. "type": "integer",
  3624. "description": "页码",
  3625. "name": "page",
  3626. "in": "query"
  3627. },
  3628. {
  3629. "type": "integer",
  3630. "description": "页大小",
  3631. "name": "page_size",
  3632. "in": "query"
  3633. },
  3634. {
  3635. "type": "integer",
  3636. "description": "用户ID",
  3637. "name": "user_id",
  3638. "in": "query"
  3639. }
  3640. ],
  3641. "responses": {
  3642. "200": {
  3643. "description": "OK",
  3644. "schema": {
  3645. "allOf": [
  3646. {
  3647. "$ref": "#/definitions/response.Response"
  3648. },
  3649. {
  3650. "type": "object",
  3651. "properties": {
  3652. "data": {
  3653. "$ref": "#/definitions/model.UserTokenList"
  3654. }
  3655. }
  3656. }
  3657. ]
  3658. }
  3659. },
  3660. "500": {
  3661. "description": "Internal Server Error",
  3662. "schema": {
  3663. "$ref": "#/definitions/response.Response"
  3664. }
  3665. }
  3666. }
  3667. }
  3668. }
  3669. },
  3670. "definitions": {
  3671. "Gwen_http_request_admin.Login": {
  3672. "type": "object",
  3673. "required": [
  3674. "password",
  3675. "username"
  3676. ],
  3677. "properties": {
  3678. "password": {
  3679. "type": "string"
  3680. },
  3681. "platform": {
  3682. "type": "string"
  3683. },
  3684. "username": {
  3685. "type": "string"
  3686. }
  3687. }
  3688. },
  3689. "admin.AddressBookForm": {
  3690. "type": "object",
  3691. "required": [
  3692. "id"
  3693. ],
  3694. "properties": {
  3695. "alias": {
  3696. "type": "string"
  3697. },
  3698. "collection_id": {
  3699. "type": "integer"
  3700. },
  3701. "forceAlwaysRelay": {
  3702. "type": "boolean"
  3703. },
  3704. "hash": {
  3705. "type": "string"
  3706. },
  3707. "hostname": {
  3708. "type": "string"
  3709. },
  3710. "id": {
  3711. "type": "string"
  3712. },
  3713. "loginName": {
  3714. "type": "string"
  3715. },
  3716. "online": {
  3717. "type": "boolean"
  3718. },
  3719. "password": {
  3720. "type": "string"
  3721. },
  3722. "platform": {
  3723. "type": "string"
  3724. },
  3725. "rdpPort": {
  3726. "type": "string"
  3727. },
  3728. "rdpUsername": {
  3729. "type": "string"
  3730. },
  3731. "row_id": {
  3732. "type": "integer"
  3733. },
  3734. "sameServer": {
  3735. "type": "boolean"
  3736. },
  3737. "tags": {
  3738. "type": "array",
  3739. "items": {
  3740. "type": "string"
  3741. }
  3742. },
  3743. "user_id": {
  3744. "type": "integer"
  3745. },
  3746. "user_ids": {
  3747. "type": "array",
  3748. "items": {
  3749. "type": "integer"
  3750. }
  3751. },
  3752. "username": {
  3753. "type": "string"
  3754. }
  3755. }
  3756. },
  3757. "admin.AuditConnLogIds": {
  3758. "type": "object",
  3759. "required": [
  3760. "ids"
  3761. ],
  3762. "properties": {
  3763. "ids": {
  3764. "type": "array",
  3765. "items": {
  3766. "type": "integer"
  3767. }
  3768. }
  3769. }
  3770. },
  3771. "admin.AuditFileLogIds": {
  3772. "type": "object",
  3773. "required": [
  3774. "ids"
  3775. ],
  3776. "properties": {
  3777. "ids": {
  3778. "type": "array",
  3779. "items": {
  3780. "type": "integer"
  3781. }
  3782. }
  3783. }
  3784. },
  3785. "admin.ChangeCurPasswordForm": {
  3786. "type": "object",
  3787. "required": [
  3788. "new_password",
  3789. "old_password"
  3790. ],
  3791. "properties": {
  3792. "new_password": {
  3793. "type": "string",
  3794. "maxLength": 20,
  3795. "minLength": 4
  3796. },
  3797. "old_password": {
  3798. "type": "string",
  3799. "maxLength": 20,
  3800. "minLength": 4
  3801. }
  3802. }
  3803. },
  3804. "admin.GroupForm": {
  3805. "type": "object",
  3806. "required": [
  3807. "name"
  3808. ],
  3809. "properties": {
  3810. "id": {
  3811. "type": "integer"
  3812. },
  3813. "name": {
  3814. "type": "string"
  3815. },
  3816. "type": {
  3817. "type": "integer"
  3818. }
  3819. }
  3820. },
  3821. "admin.LoginLogIds": {
  3822. "type": "object",
  3823. "required": [
  3824. "ids"
  3825. ],
  3826. "properties": {
  3827. "ids": {
  3828. "type": "array",
  3829. "items": {
  3830. "type": "integer"
  3831. }
  3832. }
  3833. }
  3834. },
  3835. "admin.LoginPayload": {
  3836. "type": "object",
  3837. "properties": {
  3838. "avatar": {
  3839. "type": "string"
  3840. },
  3841. "email": {
  3842. "type": "string"
  3843. },
  3844. "nickname": {
  3845. "type": "string"
  3846. },
  3847. "route_names": {
  3848. "type": "array",
  3849. "items": {
  3850. "type": "string"
  3851. }
  3852. },
  3853. "token": {
  3854. "type": "string"
  3855. },
  3856. "username": {
  3857. "type": "string"
  3858. }
  3859. }
  3860. },
  3861. "admin.OauthForm": {
  3862. "type": "object",
  3863. "required": [
  3864. "client_id",
  3865. "client_secret",
  3866. "oauth_type",
  3867. "redirect_url"
  3868. ],
  3869. "properties": {
  3870. "auto_register": {
  3871. "type": "boolean"
  3872. },
  3873. "client_id": {
  3874. "type": "string"
  3875. },
  3876. "client_secret": {
  3877. "type": "string"
  3878. },
  3879. "id": {
  3880. "type": "integer"
  3881. },
  3882. "issuer": {
  3883. "type": "string"
  3884. },
  3885. "oauth_type": {
  3886. "type": "string"
  3887. },
  3888. "op": {
  3889. "type": "string"
  3890. },
  3891. "redirect_url": {
  3892. "type": "string"
  3893. },
  3894. "scopes": {
  3895. "type": "string"
  3896. }
  3897. }
  3898. },
  3899. "admin.PeerBatchDeleteForm": {
  3900. "type": "object",
  3901. "required": [
  3902. "row_ids"
  3903. ],
  3904. "properties": {
  3905. "row_ids": {
  3906. "type": "array",
  3907. "items": {
  3908. "type": "integer"
  3909. }
  3910. }
  3911. }
  3912. },
  3913. "admin.PeerForm": {
  3914. "type": "object",
  3915. "properties": {
  3916. "cpu": {
  3917. "type": "string"
  3918. },
  3919. "hostname": {
  3920. "type": "string"
  3921. },
  3922. "id": {
  3923. "type": "string"
  3924. },
  3925. "memory": {
  3926. "type": "string"
  3927. },
  3928. "os": {
  3929. "type": "string"
  3930. },
  3931. "row_id": {
  3932. "type": "integer"
  3933. },
  3934. "username": {
  3935. "type": "string"
  3936. },
  3937. "uuid": {
  3938. "type": "string"
  3939. },
  3940. "version": {
  3941. "type": "string"
  3942. }
  3943. }
  3944. },
  3945. "admin.ShareByWebClientForm": {
  3946. "type": "object",
  3947. "required": [
  3948. "id",
  3949. "password",
  3950. "password_type"
  3951. ],
  3952. "properties": {
  3953. "expire": {
  3954. "type": "integer"
  3955. },
  3956. "id": {
  3957. "type": "string"
  3958. },
  3959. "password": {
  3960. "type": "string"
  3961. },
  3962. "password_type": {
  3963. "description": "只能是once,fixed",
  3964. "type": "string",
  3965. "enum": [
  3966. "once",
  3967. "fixed"
  3968. ]
  3969. }
  3970. }
  3971. },
  3972. "admin.TagForm": {
  3973. "type": "object",
  3974. "required": [
  3975. "color",
  3976. "name"
  3977. ],
  3978. "properties": {
  3979. "collection_id": {
  3980. "type": "integer"
  3981. },
  3982. "color": {
  3983. "type": "integer"
  3984. },
  3985. "id": {
  3986. "type": "integer"
  3987. },
  3988. "name": {
  3989. "type": "string"
  3990. },
  3991. "user_id": {
  3992. "type": "integer"
  3993. }
  3994. }
  3995. },
  3996. "admin.UserForm": {
  3997. "type": "object",
  3998. "required": [
  3999. "group_id",
  4000. "status",
  4001. "username"
  4002. ],
  4003. "properties": {
  4004. "avatar": {
  4005. "type": "string"
  4006. },
  4007. "email": {
  4008. "description": "validate:\"required,email\" email不强制",
  4009. "type": "string"
  4010. },
  4011. "group_id": {
  4012. "type": "integer"
  4013. },
  4014. "id": {
  4015. "type": "integer"
  4016. },
  4017. "is_admin": {
  4018. "type": "boolean"
  4019. },
  4020. "nickname": {
  4021. "description": "Password string `json:\"password\" validate:\"required,gte=4,lte=20\"`",
  4022. "type": "string"
  4023. },
  4024. "status": {
  4025. "minimum": 0,
  4026. "allOf": [
  4027. {
  4028. "$ref": "#/definitions/model.StatusCode"
  4029. }
  4030. ]
  4031. },
  4032. "username": {
  4033. "type": "string",
  4034. "maxLength": 10,
  4035. "minLength": 2
  4036. }
  4037. }
  4038. },
  4039. "admin.UserOauthItem": {
  4040. "type": "object",
  4041. "properties": {
  4042. "op": {
  4043. "type": "string"
  4044. },
  4045. "status": {
  4046. "type": "integer"
  4047. }
  4048. }
  4049. },
  4050. "admin.UserPasswordForm": {
  4051. "type": "object",
  4052. "required": [
  4053. "id",
  4054. "password"
  4055. ],
  4056. "properties": {
  4057. "id": {
  4058. "type": "integer"
  4059. },
  4060. "password": {
  4061. "type": "string",
  4062. "maxLength": 20,
  4063. "minLength": 4
  4064. }
  4065. }
  4066. },
  4067. "model.AddressBook": {
  4068. "type": "object",
  4069. "properties": {
  4070. "alias": {
  4071. "type": "string"
  4072. },
  4073. "collection": {
  4074. "$ref": "#/definitions/model.AddressBookCollection"
  4075. },
  4076. "collection_id": {
  4077. "type": "integer"
  4078. },
  4079. "created_at": {
  4080. "type": "string"
  4081. },
  4082. "forceAlwaysRelay": {
  4083. "type": "boolean"
  4084. },
  4085. "hash": {
  4086. "type": "string"
  4087. },
  4088. "hostname": {
  4089. "type": "string"
  4090. },
  4091. "id": {
  4092. "type": "string"
  4093. },
  4094. "loginName": {
  4095. "type": "string"
  4096. },
  4097. "online": {
  4098. "type": "boolean"
  4099. },
  4100. "password": {
  4101. "type": "string"
  4102. },
  4103. "platform": {
  4104. "type": "string"
  4105. },
  4106. "rdpPort": {
  4107. "type": "string"
  4108. },
  4109. "rdpUsername": {
  4110. "type": "string"
  4111. },
  4112. "row_id": {
  4113. "type": "integer"
  4114. },
  4115. "sameServer": {
  4116. "type": "boolean"
  4117. },
  4118. "tags": {
  4119. "type": "array",
  4120. "items": {
  4121. "type": "string"
  4122. }
  4123. },
  4124. "updated_at": {
  4125. "type": "string"
  4126. },
  4127. "user_id": {
  4128. "type": "integer"
  4129. },
  4130. "username": {
  4131. "type": "string"
  4132. }
  4133. }
  4134. },
  4135. "model.AddressBookCollection": {
  4136. "type": "object",
  4137. "required": [
  4138. "name"
  4139. ],
  4140. "properties": {
  4141. "created_at": {
  4142. "type": "string"
  4143. },
  4144. "id": {
  4145. "type": "integer"
  4146. },
  4147. "name": {
  4148. "type": "string"
  4149. },
  4150. "updated_at": {
  4151. "type": "string"
  4152. },
  4153. "user_id": {
  4154. "type": "integer"
  4155. }
  4156. }
  4157. },
  4158. "model.AddressBookCollectionList": {
  4159. "type": "object",
  4160. "properties": {
  4161. "list": {
  4162. "type": "array",
  4163. "items": {
  4164. "$ref": "#/definitions/model.AddressBookCollection"
  4165. }
  4166. },
  4167. "page": {
  4168. "type": "integer"
  4169. },
  4170. "page_size": {
  4171. "type": "integer"
  4172. },
  4173. "total": {
  4174. "type": "integer"
  4175. }
  4176. }
  4177. },
  4178. "model.AddressBookCollectionRule": {
  4179. "type": "object",
  4180. "required": [
  4181. "collection_id",
  4182. "rule",
  4183. "to_id",
  4184. "type"
  4185. ],
  4186. "properties": {
  4187. "collection_id": {
  4188. "type": "integer"
  4189. },
  4190. "created_at": {
  4191. "type": "string"
  4192. },
  4193. "id": {
  4194. "type": "integer"
  4195. },
  4196. "rule": {
  4197. "description": "0: 无 1: 读 2: 读写 3: 完全控制",
  4198. "type": "integer",
  4199. "maximum": 3,
  4200. "minimum": 1
  4201. },
  4202. "to_id": {
  4203. "type": "integer"
  4204. },
  4205. "type": {
  4206. "description": "1: 个人 2: 群组",
  4207. "type": "integer",
  4208. "maximum": 2,
  4209. "minimum": 1
  4210. },
  4211. "updated_at": {
  4212. "type": "string"
  4213. },
  4214. "user_id": {
  4215. "type": "integer"
  4216. }
  4217. }
  4218. },
  4219. "model.AddressBookList": {
  4220. "type": "object",
  4221. "properties": {
  4222. "list": {
  4223. "type": "array",
  4224. "items": {
  4225. "$ref": "#/definitions/model.AddressBook"
  4226. }
  4227. },
  4228. "page": {
  4229. "type": "integer"
  4230. },
  4231. "page_size": {
  4232. "type": "integer"
  4233. },
  4234. "total": {
  4235. "type": "integer"
  4236. }
  4237. }
  4238. },
  4239. "model.AuditConn": {
  4240. "type": "object",
  4241. "properties": {
  4242. "action": {
  4243. "type": "string"
  4244. },
  4245. "close_time": {
  4246. "type": "integer"
  4247. },
  4248. "conn_id": {
  4249. "type": "integer"
  4250. },
  4251. "created_at": {
  4252. "type": "string"
  4253. },
  4254. "from_name": {
  4255. "type": "string"
  4256. },
  4257. "from_peer": {
  4258. "type": "string"
  4259. },
  4260. "id": {
  4261. "type": "integer"
  4262. },
  4263. "ip": {
  4264. "type": "string"
  4265. },
  4266. "peer_id": {
  4267. "type": "string"
  4268. },
  4269. "session_id": {
  4270. "type": "string"
  4271. },
  4272. "type": {
  4273. "type": "integer"
  4274. },
  4275. "updated_at": {
  4276. "type": "string"
  4277. },
  4278. "uuid": {
  4279. "type": "string"
  4280. }
  4281. }
  4282. },
  4283. "model.AuditConnList": {
  4284. "type": "object",
  4285. "properties": {
  4286. "list": {
  4287. "type": "array",
  4288. "items": {
  4289. "$ref": "#/definitions/model.AuditConn"
  4290. }
  4291. },
  4292. "page": {
  4293. "type": "integer"
  4294. },
  4295. "page_size": {
  4296. "type": "integer"
  4297. },
  4298. "total": {
  4299. "type": "integer"
  4300. }
  4301. }
  4302. },
  4303. "model.AuditFile": {
  4304. "type": "object",
  4305. "properties": {
  4306. "created_at": {
  4307. "type": "string"
  4308. },
  4309. "from_name": {
  4310. "type": "string"
  4311. },
  4312. "from_peer": {
  4313. "type": "string"
  4314. },
  4315. "id": {
  4316. "type": "integer"
  4317. },
  4318. "info": {
  4319. "type": "string"
  4320. },
  4321. "ip": {
  4322. "type": "string"
  4323. },
  4324. "is_file": {
  4325. "type": "boolean"
  4326. },
  4327. "num": {
  4328. "type": "integer"
  4329. },
  4330. "path": {
  4331. "type": "string"
  4332. },
  4333. "peer_id": {
  4334. "type": "string"
  4335. },
  4336. "type": {
  4337. "type": "integer"
  4338. },
  4339. "updated_at": {
  4340. "type": "string"
  4341. },
  4342. "uuid": {
  4343. "type": "string"
  4344. }
  4345. }
  4346. },
  4347. "model.AuditFileList": {
  4348. "type": "object",
  4349. "properties": {
  4350. "list": {
  4351. "type": "array",
  4352. "items": {
  4353. "$ref": "#/definitions/model.AuditFile"
  4354. }
  4355. },
  4356. "page": {
  4357. "type": "integer"
  4358. },
  4359. "page_size": {
  4360. "type": "integer"
  4361. },
  4362. "total": {
  4363. "type": "integer"
  4364. }
  4365. }
  4366. },
  4367. "model.Group": {
  4368. "type": "object",
  4369. "properties": {
  4370. "created_at": {
  4371. "type": "string"
  4372. },
  4373. "id": {
  4374. "type": "integer"
  4375. },
  4376. "name": {
  4377. "type": "string"
  4378. },
  4379. "type": {
  4380. "type": "integer"
  4381. },
  4382. "updated_at": {
  4383. "type": "string"
  4384. }
  4385. }
  4386. },
  4387. "model.GroupList": {
  4388. "type": "object",
  4389. "properties": {
  4390. "list": {
  4391. "type": "array",
  4392. "items": {
  4393. "$ref": "#/definitions/model.Group"
  4394. }
  4395. },
  4396. "page": {
  4397. "type": "integer"
  4398. },
  4399. "page_size": {
  4400. "type": "integer"
  4401. },
  4402. "total": {
  4403. "type": "integer"
  4404. }
  4405. }
  4406. },
  4407. "model.LoginLog": {
  4408. "type": "object",
  4409. "properties": {
  4410. "client": {
  4411. "description": "webadmin,webclient,app,",
  4412. "type": "string"
  4413. },
  4414. "created_at": {
  4415. "type": "string"
  4416. },
  4417. "device_id": {
  4418. "type": "string"
  4419. },
  4420. "id": {
  4421. "type": "integer"
  4422. },
  4423. "ip": {
  4424. "type": "string"
  4425. },
  4426. "platform": {
  4427. "description": "windows,linux,mac,android,ios",
  4428. "type": "string"
  4429. },
  4430. "type": {
  4431. "description": "account,oauth",
  4432. "type": "string"
  4433. },
  4434. "updated_at": {
  4435. "type": "string"
  4436. },
  4437. "user_id": {
  4438. "type": "integer"
  4439. },
  4440. "user_token_id": {
  4441. "type": "integer"
  4442. },
  4443. "uuid": {
  4444. "type": "string"
  4445. }
  4446. }
  4447. },
  4448. "model.LoginLogList": {
  4449. "type": "object",
  4450. "properties": {
  4451. "list": {
  4452. "type": "array",
  4453. "items": {
  4454. "$ref": "#/definitions/model.LoginLog"
  4455. }
  4456. },
  4457. "page": {
  4458. "type": "integer"
  4459. },
  4460. "page_size": {
  4461. "type": "integer"
  4462. },
  4463. "total": {
  4464. "type": "integer"
  4465. }
  4466. }
  4467. },
  4468. "model.Oauth": {
  4469. "type": "object",
  4470. "properties": {
  4471. "auto_register": {
  4472. "type": "boolean"
  4473. },
  4474. "client_id": {
  4475. "type": "string"
  4476. },
  4477. "client_secret": {
  4478. "type": "string"
  4479. },
  4480. "created_at": {
  4481. "type": "string"
  4482. },
  4483. "id": {
  4484. "type": "integer"
  4485. },
  4486. "issuer": {
  4487. "type": "string"
  4488. },
  4489. "oauth_type": {
  4490. "type": "string"
  4491. },
  4492. "op": {
  4493. "type": "string"
  4494. },
  4495. "redirect_url": {
  4496. "type": "string"
  4497. },
  4498. "scopes": {
  4499. "type": "string"
  4500. },
  4501. "updated_at": {
  4502. "type": "string"
  4503. }
  4504. }
  4505. },
  4506. "model.OauthList": {
  4507. "type": "object",
  4508. "properties": {
  4509. "list": {
  4510. "type": "array",
  4511. "items": {
  4512. "$ref": "#/definitions/model.Oauth"
  4513. }
  4514. },
  4515. "page": {
  4516. "type": "integer"
  4517. },
  4518. "page_size": {
  4519. "type": "integer"
  4520. },
  4521. "total": {
  4522. "type": "integer"
  4523. }
  4524. }
  4525. },
  4526. "model.Peer": {
  4527. "type": "object",
  4528. "properties": {
  4529. "cpu": {
  4530. "type": "string"
  4531. },
  4532. "created_at": {
  4533. "type": "string"
  4534. },
  4535. "hostname": {
  4536. "type": "string"
  4537. },
  4538. "id": {
  4539. "type": "string"
  4540. },
  4541. "last_online_ip": {
  4542. "type": "string"
  4543. },
  4544. "last_online_time": {
  4545. "type": "integer"
  4546. },
  4547. "memory": {
  4548. "type": "string"
  4549. },
  4550. "os": {
  4551. "type": "string"
  4552. },
  4553. "row_id": {
  4554. "type": "integer"
  4555. },
  4556. "updated_at": {
  4557. "type": "string"
  4558. },
  4559. "user": {
  4560. "$ref": "#/definitions/model.User"
  4561. },
  4562. "user_id": {
  4563. "type": "integer"
  4564. },
  4565. "username": {
  4566. "type": "string"
  4567. },
  4568. "uuid": {
  4569. "type": "string"
  4570. },
  4571. "version": {
  4572. "type": "string"
  4573. }
  4574. }
  4575. },
  4576. "model.PeerList": {
  4577. "type": "object",
  4578. "properties": {
  4579. "list": {
  4580. "type": "array",
  4581. "items": {
  4582. "$ref": "#/definitions/model.Peer"
  4583. }
  4584. },
  4585. "page": {
  4586. "type": "integer"
  4587. },
  4588. "page_size": {
  4589. "type": "integer"
  4590. },
  4591. "total": {
  4592. "type": "integer"
  4593. }
  4594. }
  4595. },
  4596. "model.StatusCode": {
  4597. "type": "integer",
  4598. "enum": [
  4599. 1,
  4600. 2
  4601. ],
  4602. "x-enum-comments": {
  4603. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  4604. "COMMON_STATUS_ENABLE": "通用状态 启用"
  4605. },
  4606. "x-enum-varnames": [
  4607. "COMMON_STATUS_ENABLE",
  4608. "COMMON_STATUS_DISABLED"
  4609. ]
  4610. },
  4611. "model.Tag": {
  4612. "type": "object",
  4613. "properties": {
  4614. "collection": {
  4615. "$ref": "#/definitions/model.AddressBookCollection"
  4616. },
  4617. "collection_id": {
  4618. "type": "integer"
  4619. },
  4620. "color": {
  4621. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  4622. "type": "integer"
  4623. },
  4624. "created_at": {
  4625. "type": "string"
  4626. },
  4627. "id": {
  4628. "type": "integer"
  4629. },
  4630. "name": {
  4631. "type": "string"
  4632. },
  4633. "updated_at": {
  4634. "type": "string"
  4635. },
  4636. "user_id": {
  4637. "type": "integer"
  4638. }
  4639. }
  4640. },
  4641. "model.TagList": {
  4642. "type": "object",
  4643. "properties": {
  4644. "list": {
  4645. "type": "array",
  4646. "items": {
  4647. "$ref": "#/definitions/model.Tag"
  4648. }
  4649. },
  4650. "page": {
  4651. "type": "integer"
  4652. },
  4653. "page_size": {
  4654. "type": "integer"
  4655. },
  4656. "total": {
  4657. "type": "integer"
  4658. }
  4659. }
  4660. },
  4661. "model.User": {
  4662. "type": "object",
  4663. "properties": {
  4664. "avatar": {
  4665. "type": "string"
  4666. },
  4667. "created_at": {
  4668. "type": "string"
  4669. },
  4670. "email": {
  4671. "type": "string"
  4672. },
  4673. "group_id": {
  4674. "type": "integer"
  4675. },
  4676. "id": {
  4677. "type": "integer"
  4678. },
  4679. "is_admin": {
  4680. "type": "boolean"
  4681. },
  4682. "nickname": {
  4683. "type": "string"
  4684. },
  4685. "status": {
  4686. "$ref": "#/definitions/model.StatusCode"
  4687. },
  4688. "updated_at": {
  4689. "type": "string"
  4690. },
  4691. "username": {
  4692. "type": "string"
  4693. }
  4694. }
  4695. },
  4696. "model.UserList": {
  4697. "type": "object",
  4698. "properties": {
  4699. "list": {
  4700. "type": "array",
  4701. "items": {
  4702. "$ref": "#/definitions/model.User"
  4703. }
  4704. },
  4705. "page": {
  4706. "type": "integer"
  4707. },
  4708. "page_size": {
  4709. "type": "integer"
  4710. },
  4711. "total": {
  4712. "type": "integer"
  4713. }
  4714. }
  4715. },
  4716. "model.UserToken": {
  4717. "type": "object",
  4718. "properties": {
  4719. "created_at": {
  4720. "type": "string"
  4721. },
  4722. "device_id": {
  4723. "type": "string"
  4724. },
  4725. "device_uuid": {
  4726. "type": "string"
  4727. },
  4728. "expired_at": {
  4729. "type": "integer"
  4730. },
  4731. "id": {
  4732. "type": "integer"
  4733. },
  4734. "token": {
  4735. "type": "string"
  4736. },
  4737. "updated_at": {
  4738. "type": "string"
  4739. },
  4740. "user_id": {
  4741. "type": "integer"
  4742. }
  4743. }
  4744. },
  4745. "model.UserTokenList": {
  4746. "type": "object",
  4747. "properties": {
  4748. "list": {
  4749. "type": "array",
  4750. "items": {
  4751. "$ref": "#/definitions/model.UserToken"
  4752. }
  4753. },
  4754. "page": {
  4755. "type": "integer"
  4756. },
  4757. "page_size": {
  4758. "type": "integer"
  4759. },
  4760. "total": {
  4761. "type": "integer"
  4762. }
  4763. }
  4764. },
  4765. "response.ErrorResponse": {
  4766. "type": "object",
  4767. "properties": {
  4768. "error": {
  4769. "type": "string"
  4770. }
  4771. }
  4772. },
  4773. "response.Response": {
  4774. "type": "object",
  4775. "properties": {
  4776. "code": {
  4777. "type": "integer"
  4778. },
  4779. "data": {},
  4780. "message": {
  4781. "type": "string"
  4782. }
  4783. }
  4784. }
  4785. },
  4786. "securityDefinitions": {
  4787. "BearerAuth": {
  4788. "type": "apiKey",
  4789. "name": "Authorization",
  4790. "in": "header"
  4791. },
  4792. "token": {
  4793. "type": "apiKey",
  4794. "name": "api-token",
  4795. "in": "header"
  4796. }
  4797. }
  4798. }