admin_swagger.json 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268
  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/app-config": {
  343. "get": {
  344. "security": [
  345. {
  346. "token": []
  347. }
  348. ],
  349. "description": "APP服务配置",
  350. "consumes": [
  351. "application/json"
  352. ],
  353. "produces": [
  354. "application/json"
  355. ],
  356. "tags": [
  357. "ADMIN"
  358. ],
  359. "summary": "APP服务配置",
  360. "responses": {
  361. "200": {
  362. "description": "OK",
  363. "schema": {
  364. "$ref": "#/definitions/response.Response"
  365. }
  366. },
  367. "500": {
  368. "description": "Internal Server Error",
  369. "schema": {
  370. "$ref": "#/definitions/response.Response"
  371. }
  372. }
  373. }
  374. }
  375. },
  376. "/admin/audit_conn/delete": {
  377. "post": {
  378. "security": [
  379. {
  380. "token": []
  381. }
  382. ],
  383. "description": "链接日志删除",
  384. "consumes": [
  385. "application/json"
  386. ],
  387. "produces": [
  388. "application/json"
  389. ],
  390. "tags": [
  391. "链接日志"
  392. ],
  393. "summary": "链接日志删除",
  394. "parameters": [
  395. {
  396. "description": "链接日志信息",
  397. "name": "body",
  398. "in": "body",
  399. "required": true,
  400. "schema": {
  401. "$ref": "#/definitions/model.AuditConn"
  402. }
  403. }
  404. ],
  405. "responses": {
  406. "200": {
  407. "description": "OK",
  408. "schema": {
  409. "$ref": "#/definitions/response.Response"
  410. }
  411. },
  412. "500": {
  413. "description": "Internal Server Error",
  414. "schema": {
  415. "$ref": "#/definitions/response.Response"
  416. }
  417. }
  418. }
  419. }
  420. },
  421. "/admin/audit_conn/list": {
  422. "get": {
  423. "security": [
  424. {
  425. "token": []
  426. }
  427. ],
  428. "description": "链接日志列表",
  429. "consumes": [
  430. "application/json"
  431. ],
  432. "produces": [
  433. "application/json"
  434. ],
  435. "tags": [
  436. "链接日志"
  437. ],
  438. "summary": "链接日志列表",
  439. "parameters": [
  440. {
  441. "type": "integer",
  442. "description": "页码",
  443. "name": "page",
  444. "in": "query"
  445. },
  446. {
  447. "type": "integer",
  448. "description": "页大小",
  449. "name": "page_size",
  450. "in": "query"
  451. },
  452. {
  453. "type": "integer",
  454. "description": "目标设备",
  455. "name": "peer_id",
  456. "in": "query"
  457. },
  458. {
  459. "type": "integer",
  460. "description": "来源设备",
  461. "name": "from_peer",
  462. "in": "query"
  463. }
  464. ],
  465. "responses": {
  466. "200": {
  467. "description": "OK",
  468. "schema": {
  469. "allOf": [
  470. {
  471. "$ref": "#/definitions/response.Response"
  472. },
  473. {
  474. "type": "object",
  475. "properties": {
  476. "data": {
  477. "$ref": "#/definitions/model.AuditConnList"
  478. }
  479. }
  480. }
  481. ]
  482. }
  483. },
  484. "500": {
  485. "description": "Internal Server Error",
  486. "schema": {
  487. "$ref": "#/definitions/response.Response"
  488. }
  489. }
  490. }
  491. }
  492. },
  493. "/admin/file/oss_token": {
  494. "get": {
  495. "security": [
  496. {
  497. "token": []
  498. }
  499. ],
  500. "description": "获取ossToken",
  501. "consumes": [
  502. "application/json"
  503. ],
  504. "produces": [
  505. "application/json"
  506. ],
  507. "tags": [
  508. "文件"
  509. ],
  510. "summary": "获取ossToken",
  511. "responses": {
  512. "200": {
  513. "description": "OK",
  514. "schema": {
  515. "$ref": "#/definitions/response.Response"
  516. }
  517. },
  518. "500": {
  519. "description": "Internal Server Error",
  520. "schema": {
  521. "$ref": "#/definitions/response.Response"
  522. }
  523. }
  524. }
  525. }
  526. },
  527. "/admin/file/upload": {
  528. "post": {
  529. "security": [
  530. {
  531. "token": []
  532. }
  533. ],
  534. "description": "上传文件到本地",
  535. "consumes": [
  536. "multipart/form-data"
  537. ],
  538. "produces": [
  539. "application/json"
  540. ],
  541. "tags": [
  542. "文件"
  543. ],
  544. "summary": "上传文件到本地",
  545. "parameters": [
  546. {
  547. "type": "file",
  548. "description": "上传文件示例",
  549. "name": "file",
  550. "in": "formData",
  551. "required": true
  552. }
  553. ],
  554. "responses": {
  555. "200": {
  556. "description": "OK",
  557. "schema": {
  558. "$ref": "#/definitions/response.Response"
  559. }
  560. },
  561. "500": {
  562. "description": "Internal Server Error",
  563. "schema": {
  564. "$ref": "#/definitions/response.Response"
  565. }
  566. }
  567. }
  568. }
  569. },
  570. "/admin/group/create": {
  571. "post": {
  572. "security": [
  573. {
  574. "token": []
  575. }
  576. ],
  577. "description": "创建群组",
  578. "consumes": [
  579. "application/json"
  580. ],
  581. "produces": [
  582. "application/json"
  583. ],
  584. "tags": [
  585. "群组"
  586. ],
  587. "summary": "创建群组",
  588. "parameters": [
  589. {
  590. "description": "群组信息",
  591. "name": "body",
  592. "in": "body",
  593. "required": true,
  594. "schema": {
  595. "$ref": "#/definitions/admin.GroupForm"
  596. }
  597. }
  598. ],
  599. "responses": {
  600. "200": {
  601. "description": "OK",
  602. "schema": {
  603. "allOf": [
  604. {
  605. "$ref": "#/definitions/response.Response"
  606. },
  607. {
  608. "type": "object",
  609. "properties": {
  610. "data": {
  611. "$ref": "#/definitions/model.Group"
  612. }
  613. }
  614. }
  615. ]
  616. }
  617. },
  618. "500": {
  619. "description": "Internal Server Error",
  620. "schema": {
  621. "$ref": "#/definitions/response.Response"
  622. }
  623. }
  624. }
  625. }
  626. },
  627. "/admin/group/delete": {
  628. "post": {
  629. "security": [
  630. {
  631. "token": []
  632. }
  633. ],
  634. "description": "群组删除",
  635. "consumes": [
  636. "application/json"
  637. ],
  638. "produces": [
  639. "application/json"
  640. ],
  641. "tags": [
  642. "群组"
  643. ],
  644. "summary": "群组删除",
  645. "parameters": [
  646. {
  647. "description": "群组信息",
  648. "name": "body",
  649. "in": "body",
  650. "required": true,
  651. "schema": {
  652. "$ref": "#/definitions/admin.GroupForm"
  653. }
  654. }
  655. ],
  656. "responses": {
  657. "200": {
  658. "description": "OK",
  659. "schema": {
  660. "$ref": "#/definitions/response.Response"
  661. }
  662. },
  663. "500": {
  664. "description": "Internal Server Error",
  665. "schema": {
  666. "$ref": "#/definitions/response.Response"
  667. }
  668. }
  669. }
  670. }
  671. },
  672. "/admin/group/detail/{id}": {
  673. "get": {
  674. "security": [
  675. {
  676. "token": []
  677. }
  678. ],
  679. "description": "群组详情",
  680. "consumes": [
  681. "application/json"
  682. ],
  683. "produces": [
  684. "application/json"
  685. ],
  686. "tags": [
  687. "群组"
  688. ],
  689. "summary": "群组详情",
  690. "parameters": [
  691. {
  692. "type": "integer",
  693. "description": "ID",
  694. "name": "id",
  695. "in": "path",
  696. "required": true
  697. }
  698. ],
  699. "responses": {
  700. "200": {
  701. "description": "OK",
  702. "schema": {
  703. "allOf": [
  704. {
  705. "$ref": "#/definitions/response.Response"
  706. },
  707. {
  708. "type": "object",
  709. "properties": {
  710. "data": {
  711. "$ref": "#/definitions/model.Group"
  712. }
  713. }
  714. }
  715. ]
  716. }
  717. },
  718. "500": {
  719. "description": "Internal Server Error",
  720. "schema": {
  721. "$ref": "#/definitions/response.Response"
  722. }
  723. }
  724. }
  725. }
  726. },
  727. "/admin/group/list": {
  728. "get": {
  729. "security": [
  730. {
  731. "token": []
  732. }
  733. ],
  734. "description": "群组列表",
  735. "consumes": [
  736. "application/json"
  737. ],
  738. "produces": [
  739. "application/json"
  740. ],
  741. "tags": [
  742. "群组"
  743. ],
  744. "summary": "群组列表",
  745. "parameters": [
  746. {
  747. "type": "integer",
  748. "description": "页码",
  749. "name": "page",
  750. "in": "query"
  751. },
  752. {
  753. "type": "integer",
  754. "description": "页大小",
  755. "name": "page_size",
  756. "in": "query"
  757. }
  758. ],
  759. "responses": {
  760. "200": {
  761. "description": "OK",
  762. "schema": {
  763. "allOf": [
  764. {
  765. "$ref": "#/definitions/response.Response"
  766. },
  767. {
  768. "type": "object",
  769. "properties": {
  770. "data": {
  771. "$ref": "#/definitions/model.GroupList"
  772. }
  773. }
  774. }
  775. ]
  776. }
  777. },
  778. "500": {
  779. "description": "Internal Server Error",
  780. "schema": {
  781. "$ref": "#/definitions/response.Response"
  782. }
  783. }
  784. }
  785. }
  786. },
  787. "/admin/group/update": {
  788. "post": {
  789. "security": [
  790. {
  791. "token": []
  792. }
  793. ],
  794. "description": "群组编辑",
  795. "consumes": [
  796. "application/json"
  797. ],
  798. "produces": [
  799. "application/json"
  800. ],
  801. "tags": [
  802. "群组"
  803. ],
  804. "summary": "群组编辑",
  805. "parameters": [
  806. {
  807. "description": "群组信息",
  808. "name": "body",
  809. "in": "body",
  810. "required": true,
  811. "schema": {
  812. "$ref": "#/definitions/admin.GroupForm"
  813. }
  814. }
  815. ],
  816. "responses": {
  817. "200": {
  818. "description": "OK",
  819. "schema": {
  820. "allOf": [
  821. {
  822. "$ref": "#/definitions/response.Response"
  823. },
  824. {
  825. "type": "object",
  826. "properties": {
  827. "data": {
  828. "$ref": "#/definitions/model.Group"
  829. }
  830. }
  831. }
  832. ]
  833. }
  834. },
  835. "500": {
  836. "description": "Internal Server Error",
  837. "schema": {
  838. "$ref": "#/definitions/response.Response"
  839. }
  840. }
  841. }
  842. }
  843. },
  844. "/admin/login": {
  845. "post": {
  846. "security": [
  847. {
  848. "token": []
  849. }
  850. ],
  851. "description": "登录",
  852. "consumes": [
  853. "application/json"
  854. ],
  855. "produces": [
  856. "application/json"
  857. ],
  858. "tags": [
  859. "登录"
  860. ],
  861. "summary": "登录",
  862. "parameters": [
  863. {
  864. "description": "登录信息",
  865. "name": "body",
  866. "in": "body",
  867. "required": true,
  868. "schema": {
  869. "$ref": "#/definitions/Gwen_http_request_admin.Login"
  870. }
  871. }
  872. ],
  873. "responses": {
  874. "200": {
  875. "description": "OK",
  876. "schema": {
  877. "allOf": [
  878. {
  879. "$ref": "#/definitions/response.Response"
  880. },
  881. {
  882. "type": "object",
  883. "properties": {
  884. "data": {
  885. "$ref": "#/definitions/admin.LoginPayload"
  886. }
  887. }
  888. }
  889. ]
  890. }
  891. },
  892. "500": {
  893. "description": "Internal Server Error",
  894. "schema": {
  895. "$ref": "#/definitions/response.Response"
  896. }
  897. }
  898. }
  899. }
  900. },
  901. "/admin/loginLog/delete": {
  902. "post": {
  903. "security": [
  904. {
  905. "token": []
  906. }
  907. ],
  908. "description": "登录日志删除",
  909. "consumes": [
  910. "application/json"
  911. ],
  912. "produces": [
  913. "application/json"
  914. ],
  915. "tags": [
  916. "登录日志"
  917. ],
  918. "summary": "登录日志删除",
  919. "parameters": [
  920. {
  921. "description": "登录日志信息",
  922. "name": "body",
  923. "in": "body",
  924. "required": true,
  925. "schema": {
  926. "$ref": "#/definitions/model.LoginLog"
  927. }
  928. }
  929. ],
  930. "responses": {
  931. "200": {
  932. "description": "OK",
  933. "schema": {
  934. "$ref": "#/definitions/response.Response"
  935. }
  936. },
  937. "500": {
  938. "description": "Internal Server Error",
  939. "schema": {
  940. "$ref": "#/definitions/response.Response"
  941. }
  942. }
  943. }
  944. }
  945. },
  946. "/admin/loginLog/detail/{id}": {
  947. "get": {
  948. "security": [
  949. {
  950. "token": []
  951. }
  952. ],
  953. "description": "登录日志详情",
  954. "consumes": [
  955. "application/json"
  956. ],
  957. "produces": [
  958. "application/json"
  959. ],
  960. "tags": [
  961. "登录日志"
  962. ],
  963. "summary": "登录日志详情",
  964. "parameters": [
  965. {
  966. "type": "integer",
  967. "description": "ID",
  968. "name": "id",
  969. "in": "path",
  970. "required": true
  971. }
  972. ],
  973. "responses": {
  974. "200": {
  975. "description": "OK",
  976. "schema": {
  977. "allOf": [
  978. {
  979. "$ref": "#/definitions/response.Response"
  980. },
  981. {
  982. "type": "object",
  983. "properties": {
  984. "data": {
  985. "$ref": "#/definitions/model.LoginLog"
  986. }
  987. }
  988. }
  989. ]
  990. }
  991. },
  992. "500": {
  993. "description": "Internal Server Error",
  994. "schema": {
  995. "$ref": "#/definitions/response.Response"
  996. }
  997. }
  998. }
  999. }
  1000. },
  1001. "/admin/loginLog/list": {
  1002. "get": {
  1003. "security": [
  1004. {
  1005. "token": []
  1006. }
  1007. ],
  1008. "description": "登录日志列表",
  1009. "consumes": [
  1010. "application/json"
  1011. ],
  1012. "produces": [
  1013. "application/json"
  1014. ],
  1015. "tags": [
  1016. "登录日志"
  1017. ],
  1018. "summary": "登录日志列表",
  1019. "parameters": [
  1020. {
  1021. "type": "integer",
  1022. "description": "页码",
  1023. "name": "page",
  1024. "in": "query"
  1025. },
  1026. {
  1027. "type": "integer",
  1028. "description": "页大小",
  1029. "name": "page_size",
  1030. "in": "query"
  1031. },
  1032. {
  1033. "type": "integer",
  1034. "description": "用户ID",
  1035. "name": "user_id",
  1036. "in": "query"
  1037. }
  1038. ],
  1039. "responses": {
  1040. "200": {
  1041. "description": "OK",
  1042. "schema": {
  1043. "allOf": [
  1044. {
  1045. "$ref": "#/definitions/response.Response"
  1046. },
  1047. {
  1048. "type": "object",
  1049. "properties": {
  1050. "data": {
  1051. "$ref": "#/definitions/model.LoginLogList"
  1052. }
  1053. }
  1054. }
  1055. ]
  1056. }
  1057. },
  1058. "500": {
  1059. "description": "Internal Server Error",
  1060. "schema": {
  1061. "$ref": "#/definitions/response.Response"
  1062. }
  1063. }
  1064. }
  1065. }
  1066. },
  1067. "/admin/logout": {
  1068. "post": {
  1069. "description": "登出",
  1070. "consumes": [
  1071. "application/json"
  1072. ],
  1073. "produces": [
  1074. "application/json"
  1075. ],
  1076. "tags": [
  1077. "登录"
  1078. ],
  1079. "summary": "登出",
  1080. "responses": {
  1081. "200": {
  1082. "description": "OK",
  1083. "schema": {
  1084. "$ref": "#/definitions/response.Response"
  1085. }
  1086. },
  1087. "500": {
  1088. "description": "Internal Server Error",
  1089. "schema": {
  1090. "$ref": "#/definitions/response.Response"
  1091. }
  1092. }
  1093. }
  1094. }
  1095. },
  1096. "/admin/oauth/create": {
  1097. "post": {
  1098. "security": [
  1099. {
  1100. "token": []
  1101. }
  1102. ],
  1103. "description": "创建Oauth",
  1104. "consumes": [
  1105. "application/json"
  1106. ],
  1107. "produces": [
  1108. "application/json"
  1109. ],
  1110. "tags": [
  1111. "Oauth"
  1112. ],
  1113. "summary": "创建Oauth",
  1114. "parameters": [
  1115. {
  1116. "description": "Oauth信息",
  1117. "name": "body",
  1118. "in": "body",
  1119. "required": true,
  1120. "schema": {
  1121. "$ref": "#/definitions/admin.OauthForm"
  1122. }
  1123. }
  1124. ],
  1125. "responses": {
  1126. "200": {
  1127. "description": "OK",
  1128. "schema": {
  1129. "allOf": [
  1130. {
  1131. "$ref": "#/definitions/response.Response"
  1132. },
  1133. {
  1134. "type": "object",
  1135. "properties": {
  1136. "data": {
  1137. "$ref": "#/definitions/model.Oauth"
  1138. }
  1139. }
  1140. }
  1141. ]
  1142. }
  1143. },
  1144. "500": {
  1145. "description": "Internal Server Error",
  1146. "schema": {
  1147. "$ref": "#/definitions/response.Response"
  1148. }
  1149. }
  1150. }
  1151. }
  1152. },
  1153. "/admin/oauth/delete": {
  1154. "post": {
  1155. "security": [
  1156. {
  1157. "token": []
  1158. }
  1159. ],
  1160. "description": "Oauth删除",
  1161. "consumes": [
  1162. "application/json"
  1163. ],
  1164. "produces": [
  1165. "application/json"
  1166. ],
  1167. "tags": [
  1168. "Oauth"
  1169. ],
  1170. "summary": "Oauth删除",
  1171. "parameters": [
  1172. {
  1173. "description": "Oauth信息",
  1174. "name": "body",
  1175. "in": "body",
  1176. "required": true,
  1177. "schema": {
  1178. "$ref": "#/definitions/admin.OauthForm"
  1179. }
  1180. }
  1181. ],
  1182. "responses": {
  1183. "200": {
  1184. "description": "OK",
  1185. "schema": {
  1186. "$ref": "#/definitions/response.Response"
  1187. }
  1188. },
  1189. "500": {
  1190. "description": "Internal Server Error",
  1191. "schema": {
  1192. "$ref": "#/definitions/response.Response"
  1193. }
  1194. }
  1195. }
  1196. }
  1197. },
  1198. "/admin/oauth/detail/{id}": {
  1199. "get": {
  1200. "security": [
  1201. {
  1202. "token": []
  1203. }
  1204. ],
  1205. "description": "Oauth详情",
  1206. "consumes": [
  1207. "application/json"
  1208. ],
  1209. "produces": [
  1210. "application/json"
  1211. ],
  1212. "tags": [
  1213. "Oauth"
  1214. ],
  1215. "summary": "Oauth详情",
  1216. "parameters": [
  1217. {
  1218. "type": "integer",
  1219. "description": "ID",
  1220. "name": "id",
  1221. "in": "path",
  1222. "required": true
  1223. }
  1224. ],
  1225. "responses": {
  1226. "200": {
  1227. "description": "OK",
  1228. "schema": {
  1229. "allOf": [
  1230. {
  1231. "$ref": "#/definitions/response.Response"
  1232. },
  1233. {
  1234. "type": "object",
  1235. "properties": {
  1236. "data": {
  1237. "$ref": "#/definitions/model.Oauth"
  1238. }
  1239. }
  1240. }
  1241. ]
  1242. }
  1243. },
  1244. "500": {
  1245. "description": "Internal Server Error",
  1246. "schema": {
  1247. "$ref": "#/definitions/response.Response"
  1248. }
  1249. }
  1250. }
  1251. }
  1252. },
  1253. "/admin/oauth/list": {
  1254. "get": {
  1255. "security": [
  1256. {
  1257. "token": []
  1258. }
  1259. ],
  1260. "description": "Oauth列表",
  1261. "consumes": [
  1262. "application/json"
  1263. ],
  1264. "produces": [
  1265. "application/json"
  1266. ],
  1267. "tags": [
  1268. "Oauth"
  1269. ],
  1270. "summary": "Oauth列表",
  1271. "parameters": [
  1272. {
  1273. "type": "integer",
  1274. "description": "页码",
  1275. "name": "page",
  1276. "in": "query"
  1277. },
  1278. {
  1279. "type": "integer",
  1280. "description": "页大小",
  1281. "name": "page_size",
  1282. "in": "query"
  1283. }
  1284. ],
  1285. "responses": {
  1286. "200": {
  1287. "description": "OK",
  1288. "schema": {
  1289. "allOf": [
  1290. {
  1291. "$ref": "#/definitions/response.Response"
  1292. },
  1293. {
  1294. "type": "object",
  1295. "properties": {
  1296. "data": {
  1297. "$ref": "#/definitions/model.OauthList"
  1298. }
  1299. }
  1300. }
  1301. ]
  1302. }
  1303. },
  1304. "500": {
  1305. "description": "Internal Server Error",
  1306. "schema": {
  1307. "$ref": "#/definitions/response.Response"
  1308. }
  1309. }
  1310. }
  1311. }
  1312. },
  1313. "/admin/oauth/update": {
  1314. "post": {
  1315. "security": [
  1316. {
  1317. "token": []
  1318. }
  1319. ],
  1320. "description": "Oauth编辑",
  1321. "consumes": [
  1322. "application/json"
  1323. ],
  1324. "produces": [
  1325. "application/json"
  1326. ],
  1327. "tags": [
  1328. "Oauth"
  1329. ],
  1330. "summary": "Oauth编辑",
  1331. "parameters": [
  1332. {
  1333. "description": "Oauth信息",
  1334. "name": "body",
  1335. "in": "body",
  1336. "required": true,
  1337. "schema": {
  1338. "$ref": "#/definitions/admin.OauthForm"
  1339. }
  1340. }
  1341. ],
  1342. "responses": {
  1343. "200": {
  1344. "description": "OK",
  1345. "schema": {
  1346. "allOf": [
  1347. {
  1348. "$ref": "#/definitions/response.Response"
  1349. },
  1350. {
  1351. "type": "object",
  1352. "properties": {
  1353. "data": {
  1354. "$ref": "#/definitions/model.OauthList"
  1355. }
  1356. }
  1357. }
  1358. ]
  1359. }
  1360. },
  1361. "500": {
  1362. "description": "Internal Server Error",
  1363. "schema": {
  1364. "$ref": "#/definitions/response.Response"
  1365. }
  1366. }
  1367. }
  1368. }
  1369. },
  1370. "/admin/peer/create": {
  1371. "post": {
  1372. "security": [
  1373. {
  1374. "token": []
  1375. }
  1376. ],
  1377. "description": "创建设备",
  1378. "consumes": [
  1379. "application/json"
  1380. ],
  1381. "produces": [
  1382. "application/json"
  1383. ],
  1384. "tags": [
  1385. "设备"
  1386. ],
  1387. "summary": "创建设备",
  1388. "parameters": [
  1389. {
  1390. "description": "设备信息",
  1391. "name": "body",
  1392. "in": "body",
  1393. "required": true,
  1394. "schema": {
  1395. "$ref": "#/definitions/admin.PeerForm"
  1396. }
  1397. }
  1398. ],
  1399. "responses": {
  1400. "200": {
  1401. "description": "OK",
  1402. "schema": {
  1403. "allOf": [
  1404. {
  1405. "$ref": "#/definitions/response.Response"
  1406. },
  1407. {
  1408. "type": "object",
  1409. "properties": {
  1410. "data": {
  1411. "$ref": "#/definitions/model.Peer"
  1412. }
  1413. }
  1414. }
  1415. ]
  1416. }
  1417. },
  1418. "500": {
  1419. "description": "Internal Server Error",
  1420. "schema": {
  1421. "$ref": "#/definitions/response.Response"
  1422. }
  1423. }
  1424. }
  1425. }
  1426. },
  1427. "/admin/peer/delete": {
  1428. "post": {
  1429. "security": [
  1430. {
  1431. "token": []
  1432. }
  1433. ],
  1434. "description": "批量设备删除",
  1435. "consumes": [
  1436. "application/json"
  1437. ],
  1438. "produces": [
  1439. "application/json"
  1440. ],
  1441. "tags": [
  1442. "设备"
  1443. ],
  1444. "summary": "批量设备删除",
  1445. "parameters": [
  1446. {
  1447. "description": "设备id",
  1448. "name": "body",
  1449. "in": "body",
  1450. "required": true,
  1451. "schema": {
  1452. "$ref": "#/definitions/admin.PeerBatchDeleteForm"
  1453. }
  1454. }
  1455. ],
  1456. "responses": {
  1457. "200": {
  1458. "description": "OK",
  1459. "schema": {
  1460. "$ref": "#/definitions/response.Response"
  1461. }
  1462. },
  1463. "500": {
  1464. "description": "Internal Server Error",
  1465. "schema": {
  1466. "$ref": "#/definitions/response.Response"
  1467. }
  1468. }
  1469. }
  1470. }
  1471. },
  1472. "/admin/peer/detail/{id}": {
  1473. "get": {
  1474. "security": [
  1475. {
  1476. "token": []
  1477. }
  1478. ],
  1479. "description": "设备详情",
  1480. "consumes": [
  1481. "application/json"
  1482. ],
  1483. "produces": [
  1484. "application/json"
  1485. ],
  1486. "tags": [
  1487. "设备"
  1488. ],
  1489. "summary": "设备详情",
  1490. "parameters": [
  1491. {
  1492. "type": "integer",
  1493. "description": "ID",
  1494. "name": "id",
  1495. "in": "path",
  1496. "required": true
  1497. }
  1498. ],
  1499. "responses": {
  1500. "200": {
  1501. "description": "OK",
  1502. "schema": {
  1503. "allOf": [
  1504. {
  1505. "$ref": "#/definitions/response.Response"
  1506. },
  1507. {
  1508. "type": "object",
  1509. "properties": {
  1510. "data": {
  1511. "$ref": "#/definitions/model.Peer"
  1512. }
  1513. }
  1514. }
  1515. ]
  1516. }
  1517. },
  1518. "500": {
  1519. "description": "Internal Server Error",
  1520. "schema": {
  1521. "$ref": "#/definitions/response.Response"
  1522. }
  1523. }
  1524. }
  1525. }
  1526. },
  1527. "/admin/peer/list": {
  1528. "get": {
  1529. "security": [
  1530. {
  1531. "token": []
  1532. }
  1533. ],
  1534. "description": "设备列表",
  1535. "consumes": [
  1536. "application/json"
  1537. ],
  1538. "produces": [
  1539. "application/json"
  1540. ],
  1541. "tags": [
  1542. "设备"
  1543. ],
  1544. "summary": "设备列表",
  1545. "parameters": [
  1546. {
  1547. "type": "integer",
  1548. "description": "页码",
  1549. "name": "page",
  1550. "in": "query"
  1551. },
  1552. {
  1553. "type": "integer",
  1554. "description": "页大小",
  1555. "name": "page_size",
  1556. "in": "query"
  1557. },
  1558. {
  1559. "type": "integer",
  1560. "description": "时间",
  1561. "name": "time_ago",
  1562. "in": "query"
  1563. },
  1564. {
  1565. "type": "string",
  1566. "description": "ID",
  1567. "name": "id",
  1568. "in": "query"
  1569. },
  1570. {
  1571. "type": "string",
  1572. "description": "主机名",
  1573. "name": "hostname",
  1574. "in": "query"
  1575. }
  1576. ],
  1577. "responses": {
  1578. "200": {
  1579. "description": "OK",
  1580. "schema": {
  1581. "allOf": [
  1582. {
  1583. "$ref": "#/definitions/response.Response"
  1584. },
  1585. {
  1586. "type": "object",
  1587. "properties": {
  1588. "data": {
  1589. "$ref": "#/definitions/model.PeerList"
  1590. }
  1591. }
  1592. }
  1593. ]
  1594. }
  1595. },
  1596. "500": {
  1597. "description": "Internal Server Error",
  1598. "schema": {
  1599. "$ref": "#/definitions/response.Response"
  1600. }
  1601. }
  1602. }
  1603. }
  1604. },
  1605. "/admin/peer/update": {
  1606. "post": {
  1607. "security": [
  1608. {
  1609. "token": []
  1610. }
  1611. ],
  1612. "description": "设备编辑",
  1613. "consumes": [
  1614. "application/json"
  1615. ],
  1616. "produces": [
  1617. "application/json"
  1618. ],
  1619. "tags": [
  1620. "设备"
  1621. ],
  1622. "summary": "设备编辑",
  1623. "parameters": [
  1624. {
  1625. "description": "设备信息",
  1626. "name": "body",
  1627. "in": "body",
  1628. "required": true,
  1629. "schema": {
  1630. "$ref": "#/definitions/admin.PeerForm"
  1631. }
  1632. }
  1633. ],
  1634. "responses": {
  1635. "200": {
  1636. "description": "OK",
  1637. "schema": {
  1638. "allOf": [
  1639. {
  1640. "$ref": "#/definitions/response.Response"
  1641. },
  1642. {
  1643. "type": "object",
  1644. "properties": {
  1645. "data": {
  1646. "$ref": "#/definitions/model.Peer"
  1647. }
  1648. }
  1649. }
  1650. ]
  1651. }
  1652. },
  1653. "500": {
  1654. "description": "Internal Server Error",
  1655. "schema": {
  1656. "$ref": "#/definitions/response.Response"
  1657. }
  1658. }
  1659. }
  1660. }
  1661. },
  1662. "/admin/server-config": {
  1663. "get": {
  1664. "security": [
  1665. {
  1666. "token": []
  1667. }
  1668. ],
  1669. "description": "服务配置,给webclient提供api-server",
  1670. "consumes": [
  1671. "application/json"
  1672. ],
  1673. "produces": [
  1674. "application/json"
  1675. ],
  1676. "tags": [
  1677. "ADMIN"
  1678. ],
  1679. "summary": "RUSTDESK服务配置",
  1680. "responses": {
  1681. "200": {
  1682. "description": "OK",
  1683. "schema": {
  1684. "$ref": "#/definitions/response.Response"
  1685. }
  1686. },
  1687. "500": {
  1688. "description": "Internal Server Error",
  1689. "schema": {
  1690. "$ref": "#/definitions/response.Response"
  1691. }
  1692. }
  1693. }
  1694. }
  1695. },
  1696. "/admin/tag/create": {
  1697. "post": {
  1698. "security": [
  1699. {
  1700. "token": []
  1701. }
  1702. ],
  1703. "description": "创建标签",
  1704. "consumes": [
  1705. "application/json"
  1706. ],
  1707. "produces": [
  1708. "application/json"
  1709. ],
  1710. "tags": [
  1711. "标签"
  1712. ],
  1713. "summary": "创建标签",
  1714. "parameters": [
  1715. {
  1716. "description": "标签信息",
  1717. "name": "body",
  1718. "in": "body",
  1719. "required": true,
  1720. "schema": {
  1721. "$ref": "#/definitions/admin.TagForm"
  1722. }
  1723. }
  1724. ],
  1725. "responses": {
  1726. "200": {
  1727. "description": "OK",
  1728. "schema": {
  1729. "allOf": [
  1730. {
  1731. "$ref": "#/definitions/response.Response"
  1732. },
  1733. {
  1734. "type": "object",
  1735. "properties": {
  1736. "data": {
  1737. "$ref": "#/definitions/model.Tag"
  1738. }
  1739. }
  1740. }
  1741. ]
  1742. }
  1743. },
  1744. "500": {
  1745. "description": "Internal Server Error",
  1746. "schema": {
  1747. "$ref": "#/definitions/response.Response"
  1748. }
  1749. }
  1750. }
  1751. }
  1752. },
  1753. "/admin/tag/delete": {
  1754. "post": {
  1755. "security": [
  1756. {
  1757. "token": []
  1758. }
  1759. ],
  1760. "description": "标签删除",
  1761. "consumes": [
  1762. "application/json"
  1763. ],
  1764. "produces": [
  1765. "application/json"
  1766. ],
  1767. "tags": [
  1768. "标签"
  1769. ],
  1770. "summary": "标签删除",
  1771. "parameters": [
  1772. {
  1773. "description": "标签信息",
  1774. "name": "body",
  1775. "in": "body",
  1776. "required": true,
  1777. "schema": {
  1778. "$ref": "#/definitions/admin.TagForm"
  1779. }
  1780. }
  1781. ],
  1782. "responses": {
  1783. "200": {
  1784. "description": "OK",
  1785. "schema": {
  1786. "$ref": "#/definitions/response.Response"
  1787. }
  1788. },
  1789. "500": {
  1790. "description": "Internal Server Error",
  1791. "schema": {
  1792. "$ref": "#/definitions/response.Response"
  1793. }
  1794. }
  1795. }
  1796. }
  1797. },
  1798. "/admin/tag/detail/{id}": {
  1799. "get": {
  1800. "security": [
  1801. {
  1802. "token": []
  1803. }
  1804. ],
  1805. "description": "标签详情",
  1806. "consumes": [
  1807. "application/json"
  1808. ],
  1809. "produces": [
  1810. "application/json"
  1811. ],
  1812. "tags": [
  1813. "标签"
  1814. ],
  1815. "summary": "标签详情",
  1816. "parameters": [
  1817. {
  1818. "type": "integer",
  1819. "description": "ID",
  1820. "name": "id",
  1821. "in": "path",
  1822. "required": true
  1823. }
  1824. ],
  1825. "responses": {
  1826. "200": {
  1827. "description": "OK",
  1828. "schema": {
  1829. "allOf": [
  1830. {
  1831. "$ref": "#/definitions/response.Response"
  1832. },
  1833. {
  1834. "type": "object",
  1835. "properties": {
  1836. "data": {
  1837. "$ref": "#/definitions/model.Tag"
  1838. }
  1839. }
  1840. }
  1841. ]
  1842. }
  1843. },
  1844. "500": {
  1845. "description": "Internal Server Error",
  1846. "schema": {
  1847. "$ref": "#/definitions/response.Response"
  1848. }
  1849. }
  1850. }
  1851. }
  1852. },
  1853. "/admin/tag/list": {
  1854. "get": {
  1855. "security": [
  1856. {
  1857. "token": []
  1858. }
  1859. ],
  1860. "description": "标签列表",
  1861. "consumes": [
  1862. "application/json"
  1863. ],
  1864. "produces": [
  1865. "application/json"
  1866. ],
  1867. "tags": [
  1868. "标签"
  1869. ],
  1870. "summary": "标签列表",
  1871. "parameters": [
  1872. {
  1873. "type": "integer",
  1874. "description": "页码",
  1875. "name": "page",
  1876. "in": "query"
  1877. },
  1878. {
  1879. "type": "integer",
  1880. "description": "页大小",
  1881. "name": "page_size",
  1882. "in": "query"
  1883. },
  1884. {
  1885. "type": "integer",
  1886. "description": "是否是我的",
  1887. "name": "is_my",
  1888. "in": "query"
  1889. },
  1890. {
  1891. "type": "integer",
  1892. "description": "用户id",
  1893. "name": "user_id",
  1894. "in": "query"
  1895. }
  1896. ],
  1897. "responses": {
  1898. "200": {
  1899. "description": "OK",
  1900. "schema": {
  1901. "allOf": [
  1902. {
  1903. "$ref": "#/definitions/response.Response"
  1904. },
  1905. {
  1906. "type": "object",
  1907. "properties": {
  1908. "data": {
  1909. "$ref": "#/definitions/model.TagList"
  1910. }
  1911. }
  1912. }
  1913. ]
  1914. }
  1915. },
  1916. "500": {
  1917. "description": "Internal Server Error",
  1918. "schema": {
  1919. "$ref": "#/definitions/response.Response"
  1920. }
  1921. }
  1922. }
  1923. }
  1924. },
  1925. "/admin/tag/update": {
  1926. "post": {
  1927. "security": [
  1928. {
  1929. "token": []
  1930. }
  1931. ],
  1932. "description": "标签编辑",
  1933. "consumes": [
  1934. "application/json"
  1935. ],
  1936. "produces": [
  1937. "application/json"
  1938. ],
  1939. "tags": [
  1940. "标签"
  1941. ],
  1942. "summary": "标签编辑",
  1943. "parameters": [
  1944. {
  1945. "description": "标签信息",
  1946. "name": "body",
  1947. "in": "body",
  1948. "required": true,
  1949. "schema": {
  1950. "$ref": "#/definitions/admin.TagForm"
  1951. }
  1952. }
  1953. ],
  1954. "responses": {
  1955. "200": {
  1956. "description": "OK",
  1957. "schema": {
  1958. "allOf": [
  1959. {
  1960. "$ref": "#/definitions/response.Response"
  1961. },
  1962. {
  1963. "type": "object",
  1964. "properties": {
  1965. "data": {
  1966. "$ref": "#/definitions/model.Tag"
  1967. }
  1968. }
  1969. }
  1970. ]
  1971. }
  1972. },
  1973. "500": {
  1974. "description": "Internal Server Error",
  1975. "schema": {
  1976. "$ref": "#/definitions/response.Response"
  1977. }
  1978. }
  1979. }
  1980. }
  1981. },
  1982. "/admin/user/changeCurPwd": {
  1983. "post": {
  1984. "security": [
  1985. {
  1986. "token": []
  1987. }
  1988. ],
  1989. "description": "修改当前用户密码",
  1990. "consumes": [
  1991. "application/json"
  1992. ],
  1993. "produces": [
  1994. "application/json"
  1995. ],
  1996. "tags": [
  1997. "用户"
  1998. ],
  1999. "summary": "修改当前用户密码",
  2000. "parameters": [
  2001. {
  2002. "description": "用户信息",
  2003. "name": "body",
  2004. "in": "body",
  2005. "required": true,
  2006. "schema": {
  2007. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  2008. }
  2009. }
  2010. ],
  2011. "responses": {
  2012. "200": {
  2013. "description": "OK",
  2014. "schema": {
  2015. "$ref": "#/definitions/response.Response"
  2016. }
  2017. },
  2018. "500": {
  2019. "description": "Internal Server Error",
  2020. "schema": {
  2021. "$ref": "#/definitions/response.Response"
  2022. }
  2023. }
  2024. }
  2025. }
  2026. },
  2027. "/admin/user/create": {
  2028. "post": {
  2029. "security": [
  2030. {
  2031. "token": []
  2032. }
  2033. ],
  2034. "description": "创建管理员",
  2035. "consumes": [
  2036. "application/json"
  2037. ],
  2038. "produces": [
  2039. "application/json"
  2040. ],
  2041. "tags": [
  2042. "用户"
  2043. ],
  2044. "summary": "创建管理员",
  2045. "parameters": [
  2046. {
  2047. "description": "管理员信息",
  2048. "name": "body",
  2049. "in": "body",
  2050. "required": true,
  2051. "schema": {
  2052. "$ref": "#/definitions/admin.UserForm"
  2053. }
  2054. }
  2055. ],
  2056. "responses": {
  2057. "200": {
  2058. "description": "OK",
  2059. "schema": {
  2060. "allOf": [
  2061. {
  2062. "$ref": "#/definitions/response.Response"
  2063. },
  2064. {
  2065. "type": "object",
  2066. "properties": {
  2067. "data": {
  2068. "$ref": "#/definitions/model.User"
  2069. }
  2070. }
  2071. }
  2072. ]
  2073. }
  2074. },
  2075. "500": {
  2076. "description": "Internal Server Error",
  2077. "schema": {
  2078. "$ref": "#/definitions/response.Response"
  2079. }
  2080. }
  2081. }
  2082. }
  2083. },
  2084. "/admin/user/current": {
  2085. "get": {
  2086. "security": [
  2087. {
  2088. "token": []
  2089. }
  2090. ],
  2091. "description": "当前用户",
  2092. "consumes": [
  2093. "application/json"
  2094. ],
  2095. "produces": [
  2096. "application/json"
  2097. ],
  2098. "tags": [
  2099. "用户"
  2100. ],
  2101. "summary": "当前用户",
  2102. "responses": {
  2103. "200": {
  2104. "description": "OK",
  2105. "schema": {
  2106. "allOf": [
  2107. {
  2108. "$ref": "#/definitions/response.Response"
  2109. },
  2110. {
  2111. "type": "object",
  2112. "properties": {
  2113. "data": {
  2114. "$ref": "#/definitions/admin.LoginPayload"
  2115. }
  2116. }
  2117. }
  2118. ]
  2119. }
  2120. },
  2121. "500": {
  2122. "description": "Internal Server Error",
  2123. "schema": {
  2124. "$ref": "#/definitions/response.Response"
  2125. }
  2126. }
  2127. }
  2128. }
  2129. },
  2130. "/admin/user/delete": {
  2131. "post": {
  2132. "security": [
  2133. {
  2134. "token": []
  2135. }
  2136. ],
  2137. "description": "管理员编删除",
  2138. "consumes": [
  2139. "application/json"
  2140. ],
  2141. "produces": [
  2142. "application/json"
  2143. ],
  2144. "tags": [
  2145. "用户"
  2146. ],
  2147. "summary": "管理员删除",
  2148. "parameters": [
  2149. {
  2150. "description": "用户信息",
  2151. "name": "body",
  2152. "in": "body",
  2153. "required": true,
  2154. "schema": {
  2155. "$ref": "#/definitions/admin.UserForm"
  2156. }
  2157. }
  2158. ],
  2159. "responses": {
  2160. "200": {
  2161. "description": "OK",
  2162. "schema": {
  2163. "$ref": "#/definitions/response.Response"
  2164. }
  2165. },
  2166. "500": {
  2167. "description": "Internal Server Error",
  2168. "schema": {
  2169. "$ref": "#/definitions/response.Response"
  2170. }
  2171. }
  2172. }
  2173. }
  2174. },
  2175. "/admin/user/detail/{id}": {
  2176. "get": {
  2177. "security": [
  2178. {
  2179. "token": []
  2180. }
  2181. ],
  2182. "description": "管理员详情",
  2183. "consumes": [
  2184. "application/json"
  2185. ],
  2186. "produces": [
  2187. "application/json"
  2188. ],
  2189. "tags": [
  2190. "用户"
  2191. ],
  2192. "summary": "管理员详情",
  2193. "parameters": [
  2194. {
  2195. "type": "integer",
  2196. "description": "ID",
  2197. "name": "id",
  2198. "in": "path",
  2199. "required": true
  2200. }
  2201. ],
  2202. "responses": {
  2203. "200": {
  2204. "description": "OK",
  2205. "schema": {
  2206. "allOf": [
  2207. {
  2208. "$ref": "#/definitions/response.Response"
  2209. },
  2210. {
  2211. "type": "object",
  2212. "properties": {
  2213. "data": {
  2214. "$ref": "#/definitions/model.User"
  2215. }
  2216. }
  2217. }
  2218. ]
  2219. }
  2220. },
  2221. "500": {
  2222. "description": "Internal Server Error",
  2223. "schema": {
  2224. "$ref": "#/definitions/response.Response"
  2225. }
  2226. }
  2227. }
  2228. }
  2229. },
  2230. "/admin/user/list": {
  2231. "get": {
  2232. "security": [
  2233. {
  2234. "token": []
  2235. }
  2236. ],
  2237. "description": "管理员列表",
  2238. "consumes": [
  2239. "application/json"
  2240. ],
  2241. "produces": [
  2242. "application/json"
  2243. ],
  2244. "tags": [
  2245. "用户"
  2246. ],
  2247. "summary": "管理员列表",
  2248. "parameters": [
  2249. {
  2250. "type": "integer",
  2251. "description": "页码",
  2252. "name": "page",
  2253. "in": "query"
  2254. },
  2255. {
  2256. "type": "integer",
  2257. "description": "页大小",
  2258. "name": "page_size",
  2259. "in": "query"
  2260. },
  2261. {
  2262. "type": "integer",
  2263. "description": "账户",
  2264. "name": "username",
  2265. "in": "query"
  2266. }
  2267. ],
  2268. "responses": {
  2269. "200": {
  2270. "description": "OK",
  2271. "schema": {
  2272. "allOf": [
  2273. {
  2274. "$ref": "#/definitions/response.Response"
  2275. },
  2276. {
  2277. "type": "object",
  2278. "properties": {
  2279. "data": {
  2280. "$ref": "#/definitions/model.UserList"
  2281. }
  2282. }
  2283. }
  2284. ]
  2285. }
  2286. },
  2287. "500": {
  2288. "description": "Internal Server Error",
  2289. "schema": {
  2290. "$ref": "#/definitions/response.Response"
  2291. }
  2292. }
  2293. }
  2294. }
  2295. },
  2296. "/admin/user/myOauth": {
  2297. "get": {
  2298. "security": [
  2299. {
  2300. "token": []
  2301. }
  2302. ],
  2303. "description": "我的授权",
  2304. "consumes": [
  2305. "application/json"
  2306. ],
  2307. "produces": [
  2308. "application/json"
  2309. ],
  2310. "tags": [
  2311. "用户"
  2312. ],
  2313. "summary": "我的授权",
  2314. "responses": {
  2315. "200": {
  2316. "description": "OK",
  2317. "schema": {
  2318. "allOf": [
  2319. {
  2320. "$ref": "#/definitions/response.Response"
  2321. },
  2322. {
  2323. "type": "object",
  2324. "properties": {
  2325. "data": {
  2326. "type": "array",
  2327. "items": {
  2328. "$ref": "#/definitions/admin.UserOauthItem"
  2329. }
  2330. }
  2331. }
  2332. }
  2333. ]
  2334. }
  2335. },
  2336. "500": {
  2337. "description": "Internal Server Error",
  2338. "schema": {
  2339. "$ref": "#/definitions/response.Response"
  2340. }
  2341. }
  2342. }
  2343. }
  2344. },
  2345. "/admin/user/update": {
  2346. "post": {
  2347. "security": [
  2348. {
  2349. "token": []
  2350. }
  2351. ],
  2352. "description": "管理员编辑",
  2353. "consumes": [
  2354. "application/json"
  2355. ],
  2356. "produces": [
  2357. "application/json"
  2358. ],
  2359. "tags": [
  2360. "用户"
  2361. ],
  2362. "summary": "管理员编辑",
  2363. "parameters": [
  2364. {
  2365. "description": "用户信息",
  2366. "name": "body",
  2367. "in": "body",
  2368. "required": true,
  2369. "schema": {
  2370. "$ref": "#/definitions/admin.UserForm"
  2371. }
  2372. }
  2373. ],
  2374. "responses": {
  2375. "200": {
  2376. "description": "OK",
  2377. "schema": {
  2378. "allOf": [
  2379. {
  2380. "$ref": "#/definitions/response.Response"
  2381. },
  2382. {
  2383. "type": "object",
  2384. "properties": {
  2385. "data": {
  2386. "$ref": "#/definitions/model.User"
  2387. }
  2388. }
  2389. }
  2390. ]
  2391. }
  2392. },
  2393. "500": {
  2394. "description": "Internal Server Error",
  2395. "schema": {
  2396. "$ref": "#/definitions/response.Response"
  2397. }
  2398. }
  2399. }
  2400. }
  2401. },
  2402. "/admin/user/updatePassword": {
  2403. "post": {
  2404. "security": [
  2405. {
  2406. "token": []
  2407. }
  2408. ],
  2409. "description": "修改密码",
  2410. "consumes": [
  2411. "application/json"
  2412. ],
  2413. "produces": [
  2414. "application/json"
  2415. ],
  2416. "tags": [
  2417. "用户"
  2418. ],
  2419. "summary": "修改密码",
  2420. "parameters": [
  2421. {
  2422. "description": "用户信息",
  2423. "name": "body",
  2424. "in": "body",
  2425. "required": true,
  2426. "schema": {
  2427. "$ref": "#/definitions/admin.UserPasswordForm"
  2428. }
  2429. }
  2430. ],
  2431. "responses": {
  2432. "200": {
  2433. "description": "OK",
  2434. "schema": {
  2435. "$ref": "#/definitions/response.Response"
  2436. }
  2437. },
  2438. "500": {
  2439. "description": "Internal Server Error",
  2440. "schema": {
  2441. "$ref": "#/definitions/response.Response"
  2442. }
  2443. }
  2444. }
  2445. }
  2446. }
  2447. },
  2448. "definitions": {
  2449. "Gwen_http_request_admin.Login": {
  2450. "type": "object",
  2451. "required": [
  2452. "password",
  2453. "username"
  2454. ],
  2455. "properties": {
  2456. "password": {
  2457. "type": "string"
  2458. },
  2459. "platform": {
  2460. "type": "string"
  2461. },
  2462. "username": {
  2463. "type": "string"
  2464. }
  2465. }
  2466. },
  2467. "admin.AddressBookForm": {
  2468. "type": "object",
  2469. "required": [
  2470. "id"
  2471. ],
  2472. "properties": {
  2473. "alias": {
  2474. "type": "string"
  2475. },
  2476. "forceAlwaysRelay": {
  2477. "type": "boolean"
  2478. },
  2479. "hash": {
  2480. "type": "string"
  2481. },
  2482. "hostname": {
  2483. "type": "string"
  2484. },
  2485. "id": {
  2486. "type": "string"
  2487. },
  2488. "loginName": {
  2489. "type": "string"
  2490. },
  2491. "online": {
  2492. "type": "boolean"
  2493. },
  2494. "password": {
  2495. "type": "string"
  2496. },
  2497. "platform": {
  2498. "type": "string"
  2499. },
  2500. "rdpPort": {
  2501. "type": "string"
  2502. },
  2503. "rdpUsername": {
  2504. "type": "string"
  2505. },
  2506. "row_id": {
  2507. "type": "integer"
  2508. },
  2509. "sameServer": {
  2510. "type": "boolean"
  2511. },
  2512. "tags": {
  2513. "type": "array",
  2514. "items": {
  2515. "type": "string"
  2516. }
  2517. },
  2518. "user_id": {
  2519. "type": "integer"
  2520. },
  2521. "user_ids": {
  2522. "type": "array",
  2523. "items": {
  2524. "type": "integer"
  2525. }
  2526. },
  2527. "username": {
  2528. "type": "string"
  2529. }
  2530. }
  2531. },
  2532. "admin.ChangeCurPasswordForm": {
  2533. "type": "object",
  2534. "required": [
  2535. "new_password",
  2536. "old_password"
  2537. ],
  2538. "properties": {
  2539. "new_password": {
  2540. "type": "string",
  2541. "maxLength": 20,
  2542. "minLength": 4
  2543. },
  2544. "old_password": {
  2545. "type": "string",
  2546. "maxLength": 20,
  2547. "minLength": 4
  2548. }
  2549. }
  2550. },
  2551. "admin.GroupForm": {
  2552. "type": "object",
  2553. "required": [
  2554. "name"
  2555. ],
  2556. "properties": {
  2557. "id": {
  2558. "type": "integer"
  2559. },
  2560. "name": {
  2561. "type": "string"
  2562. }
  2563. }
  2564. },
  2565. "admin.LoginPayload": {
  2566. "type": "object",
  2567. "properties": {
  2568. "nickname": {
  2569. "type": "string"
  2570. },
  2571. "route_names": {
  2572. "type": "array",
  2573. "items": {
  2574. "type": "string"
  2575. }
  2576. },
  2577. "token": {
  2578. "type": "string"
  2579. },
  2580. "username": {
  2581. "type": "string"
  2582. }
  2583. }
  2584. },
  2585. "admin.OauthForm": {
  2586. "type": "object",
  2587. "required": [
  2588. "client_id",
  2589. "client_secret",
  2590. "op",
  2591. "redirect_url"
  2592. ],
  2593. "properties": {
  2594. "auto_register": {
  2595. "type": "boolean"
  2596. },
  2597. "client_id": {
  2598. "type": "string"
  2599. },
  2600. "client_secret": {
  2601. "type": "string"
  2602. },
  2603. "id": {
  2604. "type": "integer"
  2605. },
  2606. "op": {
  2607. "type": "string"
  2608. },
  2609. "redirect_url": {
  2610. "type": "string"
  2611. }
  2612. }
  2613. },
  2614. "admin.PeerBatchDeleteForm": {
  2615. "type": "object",
  2616. "required": [
  2617. "row_ids"
  2618. ],
  2619. "properties": {
  2620. "row_ids": {
  2621. "type": "array",
  2622. "items": {
  2623. "type": "integer"
  2624. }
  2625. }
  2626. }
  2627. },
  2628. "admin.PeerForm": {
  2629. "type": "object",
  2630. "properties": {
  2631. "cpu": {
  2632. "type": "string"
  2633. },
  2634. "hostname": {
  2635. "type": "string"
  2636. },
  2637. "id": {
  2638. "type": "string"
  2639. },
  2640. "memory": {
  2641. "type": "string"
  2642. },
  2643. "os": {
  2644. "type": "string"
  2645. },
  2646. "row_id": {
  2647. "type": "integer"
  2648. },
  2649. "username": {
  2650. "type": "string"
  2651. },
  2652. "uuid": {
  2653. "type": "string"
  2654. },
  2655. "version": {
  2656. "type": "string"
  2657. }
  2658. }
  2659. },
  2660. "admin.ShareByWebClientForm": {
  2661. "type": "object",
  2662. "required": [
  2663. "id",
  2664. "password",
  2665. "password_type"
  2666. ],
  2667. "properties": {
  2668. "expire": {
  2669. "type": "integer"
  2670. },
  2671. "id": {
  2672. "type": "string"
  2673. },
  2674. "password": {
  2675. "type": "string"
  2676. },
  2677. "password_type": {
  2678. "description": "只能是once,fixed",
  2679. "type": "string",
  2680. "enum": [
  2681. "once",
  2682. "fixed"
  2683. ]
  2684. }
  2685. }
  2686. },
  2687. "admin.TagForm": {
  2688. "type": "object",
  2689. "required": [
  2690. "color",
  2691. "name"
  2692. ],
  2693. "properties": {
  2694. "color": {
  2695. "type": "integer"
  2696. },
  2697. "id": {
  2698. "type": "integer"
  2699. },
  2700. "name": {
  2701. "type": "string"
  2702. },
  2703. "user_id": {
  2704. "type": "integer"
  2705. }
  2706. }
  2707. },
  2708. "admin.UserForm": {
  2709. "type": "object",
  2710. "required": [
  2711. "group_id",
  2712. "status",
  2713. "username"
  2714. ],
  2715. "properties": {
  2716. "avatar": {
  2717. "type": "string"
  2718. },
  2719. "group_id": {
  2720. "type": "integer"
  2721. },
  2722. "id": {
  2723. "type": "integer"
  2724. },
  2725. "is_admin": {
  2726. "type": "boolean"
  2727. },
  2728. "nickname": {
  2729. "description": "Password string `json:\"password\" validate:\"required,gte=4,lte=20\"`",
  2730. "type": "string"
  2731. },
  2732. "status": {
  2733. "minimum": 0,
  2734. "allOf": [
  2735. {
  2736. "$ref": "#/definitions/model.StatusCode"
  2737. }
  2738. ]
  2739. },
  2740. "username": {
  2741. "type": "string",
  2742. "maxLength": 10,
  2743. "minLength": 4
  2744. }
  2745. }
  2746. },
  2747. "admin.UserOauthItem": {
  2748. "type": "object",
  2749. "properties": {
  2750. "status": {
  2751. "type": "integer"
  2752. },
  2753. "third_type": {
  2754. "type": "string"
  2755. }
  2756. }
  2757. },
  2758. "admin.UserPasswordForm": {
  2759. "type": "object",
  2760. "required": [
  2761. "id",
  2762. "password"
  2763. ],
  2764. "properties": {
  2765. "id": {
  2766. "type": "integer"
  2767. },
  2768. "password": {
  2769. "type": "string",
  2770. "maxLength": 20,
  2771. "minLength": 4
  2772. }
  2773. }
  2774. },
  2775. "model.AddressBook": {
  2776. "type": "object",
  2777. "properties": {
  2778. "alias": {
  2779. "type": "string"
  2780. },
  2781. "created_at": {
  2782. "type": "string"
  2783. },
  2784. "forceAlwaysRelay": {
  2785. "type": "boolean"
  2786. },
  2787. "hash": {
  2788. "type": "string"
  2789. },
  2790. "hostname": {
  2791. "type": "string"
  2792. },
  2793. "id": {
  2794. "type": "string"
  2795. },
  2796. "loginName": {
  2797. "type": "string"
  2798. },
  2799. "online": {
  2800. "type": "boolean"
  2801. },
  2802. "password": {
  2803. "type": "string"
  2804. },
  2805. "platform": {
  2806. "type": "string"
  2807. },
  2808. "rdpPort": {
  2809. "type": "string"
  2810. },
  2811. "rdpUsername": {
  2812. "type": "string"
  2813. },
  2814. "row_id": {
  2815. "type": "integer"
  2816. },
  2817. "sameServer": {
  2818. "type": "boolean"
  2819. },
  2820. "tags": {
  2821. "type": "array",
  2822. "items": {
  2823. "type": "string"
  2824. }
  2825. },
  2826. "updated_at": {
  2827. "type": "string"
  2828. },
  2829. "user_id": {
  2830. "type": "integer"
  2831. },
  2832. "username": {
  2833. "type": "string"
  2834. }
  2835. }
  2836. },
  2837. "model.AddressBookList": {
  2838. "type": "object",
  2839. "properties": {
  2840. "list": {
  2841. "type": "array",
  2842. "items": {
  2843. "$ref": "#/definitions/model.AddressBook"
  2844. }
  2845. },
  2846. "page": {
  2847. "type": "integer"
  2848. },
  2849. "page_size": {
  2850. "type": "integer"
  2851. },
  2852. "total": {
  2853. "type": "integer"
  2854. }
  2855. }
  2856. },
  2857. "model.AuditConn": {
  2858. "type": "object",
  2859. "properties": {
  2860. "action": {
  2861. "type": "string"
  2862. },
  2863. "close_time": {
  2864. "type": "integer"
  2865. },
  2866. "conn_id": {
  2867. "type": "integer"
  2868. },
  2869. "created_at": {
  2870. "type": "string"
  2871. },
  2872. "from_name": {
  2873. "type": "string"
  2874. },
  2875. "from_peer": {
  2876. "type": "string"
  2877. },
  2878. "id": {
  2879. "type": "integer"
  2880. },
  2881. "ip": {
  2882. "type": "string"
  2883. },
  2884. "peer_id": {
  2885. "type": "string"
  2886. },
  2887. "session_id": {
  2888. "type": "string"
  2889. },
  2890. "type": {
  2891. "type": "integer"
  2892. },
  2893. "updated_at": {
  2894. "type": "string"
  2895. },
  2896. "uuid": {
  2897. "type": "string"
  2898. }
  2899. }
  2900. },
  2901. "model.AuditConnList": {
  2902. "type": "object",
  2903. "properties": {
  2904. "list": {
  2905. "type": "array",
  2906. "items": {
  2907. "$ref": "#/definitions/model.AuditConn"
  2908. }
  2909. },
  2910. "page": {
  2911. "type": "integer"
  2912. },
  2913. "page_size": {
  2914. "type": "integer"
  2915. },
  2916. "total": {
  2917. "type": "integer"
  2918. }
  2919. }
  2920. },
  2921. "model.Group": {
  2922. "type": "object",
  2923. "properties": {
  2924. "created_at": {
  2925. "type": "string"
  2926. },
  2927. "id": {
  2928. "type": "integer"
  2929. },
  2930. "name": {
  2931. "type": "string"
  2932. },
  2933. "type": {
  2934. "type": "integer"
  2935. },
  2936. "updated_at": {
  2937. "type": "string"
  2938. }
  2939. }
  2940. },
  2941. "model.GroupList": {
  2942. "type": "object",
  2943. "properties": {
  2944. "list": {
  2945. "type": "array",
  2946. "items": {
  2947. "$ref": "#/definitions/model.Group"
  2948. }
  2949. },
  2950. "page": {
  2951. "type": "integer"
  2952. },
  2953. "page_size": {
  2954. "type": "integer"
  2955. },
  2956. "total": {
  2957. "type": "integer"
  2958. }
  2959. }
  2960. },
  2961. "model.LoginLog": {
  2962. "type": "object",
  2963. "properties": {
  2964. "client": {
  2965. "description": "webadmin,webclient,app,",
  2966. "type": "string"
  2967. },
  2968. "created_at": {
  2969. "type": "string"
  2970. },
  2971. "id": {
  2972. "type": "integer"
  2973. },
  2974. "ip": {
  2975. "type": "string"
  2976. },
  2977. "platform": {
  2978. "description": "windows,linux,mac,android,ios",
  2979. "type": "string"
  2980. },
  2981. "type": {
  2982. "description": "account,oauth",
  2983. "type": "string"
  2984. },
  2985. "updated_at": {
  2986. "type": "string"
  2987. },
  2988. "user_id": {
  2989. "type": "integer"
  2990. },
  2991. "uuid": {
  2992. "type": "string"
  2993. }
  2994. }
  2995. },
  2996. "model.LoginLogList": {
  2997. "type": "object",
  2998. "properties": {
  2999. "list": {
  3000. "type": "array",
  3001. "items": {
  3002. "$ref": "#/definitions/model.LoginLog"
  3003. }
  3004. },
  3005. "page": {
  3006. "type": "integer"
  3007. },
  3008. "page_size": {
  3009. "type": "integer"
  3010. },
  3011. "total": {
  3012. "type": "integer"
  3013. }
  3014. }
  3015. },
  3016. "model.Oauth": {
  3017. "type": "object",
  3018. "properties": {
  3019. "auto_register": {
  3020. "type": "boolean"
  3021. },
  3022. "client_id": {
  3023. "type": "string"
  3024. },
  3025. "client_secret": {
  3026. "type": "string"
  3027. },
  3028. "created_at": {
  3029. "type": "string"
  3030. },
  3031. "id": {
  3032. "type": "integer"
  3033. },
  3034. "op": {
  3035. "type": "string"
  3036. },
  3037. "redirect_url": {
  3038. "type": "string"
  3039. },
  3040. "updated_at": {
  3041. "type": "string"
  3042. }
  3043. }
  3044. },
  3045. "model.OauthList": {
  3046. "type": "object",
  3047. "properties": {
  3048. "list": {
  3049. "type": "array",
  3050. "items": {
  3051. "$ref": "#/definitions/model.Oauth"
  3052. }
  3053. },
  3054. "page": {
  3055. "type": "integer"
  3056. },
  3057. "page_size": {
  3058. "type": "integer"
  3059. },
  3060. "total": {
  3061. "type": "integer"
  3062. }
  3063. }
  3064. },
  3065. "model.Peer": {
  3066. "type": "object",
  3067. "properties": {
  3068. "cpu": {
  3069. "type": "string"
  3070. },
  3071. "created_at": {
  3072. "type": "string"
  3073. },
  3074. "hostname": {
  3075. "type": "string"
  3076. },
  3077. "id": {
  3078. "type": "string"
  3079. },
  3080. "last_online_time": {
  3081. "type": "integer"
  3082. },
  3083. "memory": {
  3084. "type": "string"
  3085. },
  3086. "os": {
  3087. "type": "string"
  3088. },
  3089. "row_id": {
  3090. "type": "integer"
  3091. },
  3092. "updated_at": {
  3093. "type": "string"
  3094. },
  3095. "user": {
  3096. "$ref": "#/definitions/model.User"
  3097. },
  3098. "user_id": {
  3099. "type": "integer"
  3100. },
  3101. "username": {
  3102. "type": "string"
  3103. },
  3104. "uuid": {
  3105. "type": "string"
  3106. },
  3107. "version": {
  3108. "type": "string"
  3109. }
  3110. }
  3111. },
  3112. "model.PeerList": {
  3113. "type": "object",
  3114. "properties": {
  3115. "list": {
  3116. "type": "array",
  3117. "items": {
  3118. "$ref": "#/definitions/model.Peer"
  3119. }
  3120. },
  3121. "page": {
  3122. "type": "integer"
  3123. },
  3124. "page_size": {
  3125. "type": "integer"
  3126. },
  3127. "total": {
  3128. "type": "integer"
  3129. }
  3130. }
  3131. },
  3132. "model.StatusCode": {
  3133. "type": "integer",
  3134. "enum": [
  3135. 1,
  3136. 2
  3137. ],
  3138. "x-enum-comments": {
  3139. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  3140. "COMMON_STATUS_ENABLE": "通用状态 启用"
  3141. },
  3142. "x-enum-varnames": [
  3143. "COMMON_STATUS_ENABLE",
  3144. "COMMON_STATUS_DISABLED"
  3145. ]
  3146. },
  3147. "model.Tag": {
  3148. "type": "object",
  3149. "properties": {
  3150. "color": {
  3151. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  3152. "type": "integer"
  3153. },
  3154. "created_at": {
  3155. "type": "string"
  3156. },
  3157. "id": {
  3158. "type": "integer"
  3159. },
  3160. "name": {
  3161. "type": "string"
  3162. },
  3163. "updated_at": {
  3164. "type": "string"
  3165. },
  3166. "user_id": {
  3167. "type": "integer"
  3168. }
  3169. }
  3170. },
  3171. "model.TagList": {
  3172. "type": "object",
  3173. "properties": {
  3174. "list": {
  3175. "type": "array",
  3176. "items": {
  3177. "$ref": "#/definitions/model.Tag"
  3178. }
  3179. },
  3180. "page": {
  3181. "type": "integer"
  3182. },
  3183. "page_size": {
  3184. "type": "integer"
  3185. },
  3186. "total": {
  3187. "type": "integer"
  3188. }
  3189. }
  3190. },
  3191. "model.User": {
  3192. "type": "object",
  3193. "properties": {
  3194. "avatar": {
  3195. "type": "string"
  3196. },
  3197. "created_at": {
  3198. "type": "string"
  3199. },
  3200. "group_id": {
  3201. "type": "integer"
  3202. },
  3203. "id": {
  3204. "type": "integer"
  3205. },
  3206. "is_admin": {
  3207. "type": "boolean"
  3208. },
  3209. "nickname": {
  3210. "type": "string"
  3211. },
  3212. "status": {
  3213. "$ref": "#/definitions/model.StatusCode"
  3214. },
  3215. "updated_at": {
  3216. "type": "string"
  3217. },
  3218. "username": {
  3219. "type": "string"
  3220. }
  3221. }
  3222. },
  3223. "model.UserList": {
  3224. "type": "object",
  3225. "properties": {
  3226. "list": {
  3227. "type": "array",
  3228. "items": {
  3229. "$ref": "#/definitions/model.User"
  3230. }
  3231. },
  3232. "page": {
  3233. "type": "integer"
  3234. },
  3235. "page_size": {
  3236. "type": "integer"
  3237. },
  3238. "total": {
  3239. "type": "integer"
  3240. }
  3241. }
  3242. },
  3243. "response.Response": {
  3244. "type": "object",
  3245. "properties": {
  3246. "code": {
  3247. "type": "integer"
  3248. },
  3249. "data": {},
  3250. "message": {
  3251. "type": "string"
  3252. }
  3253. }
  3254. }
  3255. },
  3256. "securityDefinitions": {
  3257. "BearerAuth": {
  3258. "type": "apiKey",
  3259. "name": "Authorization",
  3260. "in": "header"
  3261. },
  3262. "token": {
  3263. "type": "apiKey",
  3264. "name": "api-token",
  3265. "in": "header"
  3266. }
  3267. }
  3268. }