admin_swagger.json 107 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335
  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.AuditFile"
  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.AuditFileList"
  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. "type": {
  2564. "type": "integer"
  2565. }
  2566. }
  2567. },
  2568. "admin.LoginPayload": {
  2569. "type": "object",
  2570. "properties": {
  2571. "nickname": {
  2572. "type": "string"
  2573. },
  2574. "route_names": {
  2575. "type": "array",
  2576. "items": {
  2577. "type": "string"
  2578. }
  2579. },
  2580. "token": {
  2581. "type": "string"
  2582. },
  2583. "username": {
  2584. "type": "string"
  2585. }
  2586. }
  2587. },
  2588. "admin.OauthForm": {
  2589. "type": "object",
  2590. "required": [
  2591. "client_id",
  2592. "client_secret",
  2593. "op",
  2594. "redirect_url"
  2595. ],
  2596. "properties": {
  2597. "auto_register": {
  2598. "type": "boolean"
  2599. },
  2600. "client_id": {
  2601. "type": "string"
  2602. },
  2603. "client_secret": {
  2604. "type": "string"
  2605. },
  2606. "id": {
  2607. "type": "integer"
  2608. },
  2609. "op": {
  2610. "type": "string"
  2611. },
  2612. "redirect_url": {
  2613. "type": "string"
  2614. }
  2615. }
  2616. },
  2617. "admin.PeerBatchDeleteForm": {
  2618. "type": "object",
  2619. "required": [
  2620. "row_ids"
  2621. ],
  2622. "properties": {
  2623. "row_ids": {
  2624. "type": "array",
  2625. "items": {
  2626. "type": "integer"
  2627. }
  2628. }
  2629. }
  2630. },
  2631. "admin.PeerForm": {
  2632. "type": "object",
  2633. "properties": {
  2634. "cpu": {
  2635. "type": "string"
  2636. },
  2637. "hostname": {
  2638. "type": "string"
  2639. },
  2640. "id": {
  2641. "type": "string"
  2642. },
  2643. "memory": {
  2644. "type": "string"
  2645. },
  2646. "os": {
  2647. "type": "string"
  2648. },
  2649. "row_id": {
  2650. "type": "integer"
  2651. },
  2652. "username": {
  2653. "type": "string"
  2654. },
  2655. "uuid": {
  2656. "type": "string"
  2657. },
  2658. "version": {
  2659. "type": "string"
  2660. }
  2661. }
  2662. },
  2663. "admin.ShareByWebClientForm": {
  2664. "type": "object",
  2665. "required": [
  2666. "id",
  2667. "password",
  2668. "password_type"
  2669. ],
  2670. "properties": {
  2671. "expire": {
  2672. "type": "integer"
  2673. },
  2674. "id": {
  2675. "type": "string"
  2676. },
  2677. "password": {
  2678. "type": "string"
  2679. },
  2680. "password_type": {
  2681. "description": "只能是once,fixed",
  2682. "type": "string",
  2683. "enum": [
  2684. "once",
  2685. "fixed"
  2686. ]
  2687. }
  2688. }
  2689. },
  2690. "admin.TagForm": {
  2691. "type": "object",
  2692. "required": [
  2693. "color",
  2694. "name"
  2695. ],
  2696. "properties": {
  2697. "color": {
  2698. "type": "integer"
  2699. },
  2700. "id": {
  2701. "type": "integer"
  2702. },
  2703. "name": {
  2704. "type": "string"
  2705. },
  2706. "user_id": {
  2707. "type": "integer"
  2708. }
  2709. }
  2710. },
  2711. "admin.UserForm": {
  2712. "type": "object",
  2713. "required": [
  2714. "group_id",
  2715. "status",
  2716. "username"
  2717. ],
  2718. "properties": {
  2719. "avatar": {
  2720. "type": "string"
  2721. },
  2722. "group_id": {
  2723. "type": "integer"
  2724. },
  2725. "id": {
  2726. "type": "integer"
  2727. },
  2728. "is_admin": {
  2729. "type": "boolean"
  2730. },
  2731. "nickname": {
  2732. "description": "Password string `json:\"password\" validate:\"required,gte=4,lte=20\"`",
  2733. "type": "string"
  2734. },
  2735. "status": {
  2736. "minimum": 0,
  2737. "allOf": [
  2738. {
  2739. "$ref": "#/definitions/model.StatusCode"
  2740. }
  2741. ]
  2742. },
  2743. "username": {
  2744. "type": "string",
  2745. "maxLength": 10,
  2746. "minLength": 4
  2747. }
  2748. }
  2749. },
  2750. "admin.UserOauthItem": {
  2751. "type": "object",
  2752. "properties": {
  2753. "status": {
  2754. "type": "integer"
  2755. },
  2756. "third_type": {
  2757. "type": "string"
  2758. }
  2759. }
  2760. },
  2761. "admin.UserPasswordForm": {
  2762. "type": "object",
  2763. "required": [
  2764. "id",
  2765. "password"
  2766. ],
  2767. "properties": {
  2768. "id": {
  2769. "type": "integer"
  2770. },
  2771. "password": {
  2772. "type": "string",
  2773. "maxLength": 20,
  2774. "minLength": 4
  2775. }
  2776. }
  2777. },
  2778. "model.AddressBook": {
  2779. "type": "object",
  2780. "properties": {
  2781. "alias": {
  2782. "type": "string"
  2783. },
  2784. "created_at": {
  2785. "type": "string"
  2786. },
  2787. "forceAlwaysRelay": {
  2788. "type": "boolean"
  2789. },
  2790. "hash": {
  2791. "type": "string"
  2792. },
  2793. "hostname": {
  2794. "type": "string"
  2795. },
  2796. "id": {
  2797. "type": "string"
  2798. },
  2799. "loginName": {
  2800. "type": "string"
  2801. },
  2802. "online": {
  2803. "type": "boolean"
  2804. },
  2805. "password": {
  2806. "type": "string"
  2807. },
  2808. "platform": {
  2809. "type": "string"
  2810. },
  2811. "rdpPort": {
  2812. "type": "string"
  2813. },
  2814. "rdpUsername": {
  2815. "type": "string"
  2816. },
  2817. "row_id": {
  2818. "type": "integer"
  2819. },
  2820. "sameServer": {
  2821. "type": "boolean"
  2822. },
  2823. "tags": {
  2824. "type": "array",
  2825. "items": {
  2826. "type": "string"
  2827. }
  2828. },
  2829. "updated_at": {
  2830. "type": "string"
  2831. },
  2832. "user_id": {
  2833. "type": "integer"
  2834. },
  2835. "username": {
  2836. "type": "string"
  2837. }
  2838. }
  2839. },
  2840. "model.AddressBookList": {
  2841. "type": "object",
  2842. "properties": {
  2843. "list": {
  2844. "type": "array",
  2845. "items": {
  2846. "$ref": "#/definitions/model.AddressBook"
  2847. }
  2848. },
  2849. "page": {
  2850. "type": "integer"
  2851. },
  2852. "page_size": {
  2853. "type": "integer"
  2854. },
  2855. "total": {
  2856. "type": "integer"
  2857. }
  2858. }
  2859. },
  2860. "model.AuditConn": {
  2861. "type": "object",
  2862. "properties": {
  2863. "action": {
  2864. "type": "string"
  2865. },
  2866. "close_time": {
  2867. "type": "integer"
  2868. },
  2869. "conn_id": {
  2870. "type": "integer"
  2871. },
  2872. "created_at": {
  2873. "type": "string"
  2874. },
  2875. "from_name": {
  2876. "type": "string"
  2877. },
  2878. "from_peer": {
  2879. "type": "string"
  2880. },
  2881. "id": {
  2882. "type": "integer"
  2883. },
  2884. "ip": {
  2885. "type": "string"
  2886. },
  2887. "peer_id": {
  2888. "type": "string"
  2889. },
  2890. "session_id": {
  2891. "type": "string"
  2892. },
  2893. "type": {
  2894. "type": "integer"
  2895. },
  2896. "updated_at": {
  2897. "type": "string"
  2898. },
  2899. "uuid": {
  2900. "type": "string"
  2901. }
  2902. }
  2903. },
  2904. "model.AuditConnList": {
  2905. "type": "object",
  2906. "properties": {
  2907. "list": {
  2908. "type": "array",
  2909. "items": {
  2910. "$ref": "#/definitions/model.AuditConn"
  2911. }
  2912. },
  2913. "page": {
  2914. "type": "integer"
  2915. },
  2916. "page_size": {
  2917. "type": "integer"
  2918. },
  2919. "total": {
  2920. "type": "integer"
  2921. }
  2922. }
  2923. },
  2924. "model.AuditFile": {
  2925. "type": "object",
  2926. "properties": {
  2927. "created_at": {
  2928. "type": "string"
  2929. },
  2930. "from_name": {
  2931. "type": "string"
  2932. },
  2933. "from_peer": {
  2934. "type": "string"
  2935. },
  2936. "id": {
  2937. "type": "integer"
  2938. },
  2939. "info": {
  2940. "type": "string"
  2941. },
  2942. "ip": {
  2943. "type": "string"
  2944. },
  2945. "is_file": {
  2946. "type": "boolean"
  2947. },
  2948. "num": {
  2949. "type": "integer"
  2950. },
  2951. "path": {
  2952. "type": "string"
  2953. },
  2954. "peer_id": {
  2955. "type": "string"
  2956. },
  2957. "type": {
  2958. "type": "integer"
  2959. },
  2960. "updated_at": {
  2961. "type": "string"
  2962. },
  2963. "uuid": {
  2964. "type": "string"
  2965. }
  2966. }
  2967. },
  2968. "model.AuditFileList": {
  2969. "type": "object",
  2970. "properties": {
  2971. "list": {
  2972. "type": "array",
  2973. "items": {
  2974. "$ref": "#/definitions/model.AuditFile"
  2975. }
  2976. },
  2977. "page": {
  2978. "type": "integer"
  2979. },
  2980. "page_size": {
  2981. "type": "integer"
  2982. },
  2983. "total": {
  2984. "type": "integer"
  2985. }
  2986. }
  2987. },
  2988. "model.Group": {
  2989. "type": "object",
  2990. "properties": {
  2991. "created_at": {
  2992. "type": "string"
  2993. },
  2994. "id": {
  2995. "type": "integer"
  2996. },
  2997. "name": {
  2998. "type": "string"
  2999. },
  3000. "type": {
  3001. "type": "integer"
  3002. },
  3003. "updated_at": {
  3004. "type": "string"
  3005. }
  3006. }
  3007. },
  3008. "model.GroupList": {
  3009. "type": "object",
  3010. "properties": {
  3011. "list": {
  3012. "type": "array",
  3013. "items": {
  3014. "$ref": "#/definitions/model.Group"
  3015. }
  3016. },
  3017. "page": {
  3018. "type": "integer"
  3019. },
  3020. "page_size": {
  3021. "type": "integer"
  3022. },
  3023. "total": {
  3024. "type": "integer"
  3025. }
  3026. }
  3027. },
  3028. "model.LoginLog": {
  3029. "type": "object",
  3030. "properties": {
  3031. "client": {
  3032. "description": "webadmin,webclient,app,",
  3033. "type": "string"
  3034. },
  3035. "created_at": {
  3036. "type": "string"
  3037. },
  3038. "id": {
  3039. "type": "integer"
  3040. },
  3041. "ip": {
  3042. "type": "string"
  3043. },
  3044. "platform": {
  3045. "description": "windows,linux,mac,android,ios",
  3046. "type": "string"
  3047. },
  3048. "type": {
  3049. "description": "account,oauth",
  3050. "type": "string"
  3051. },
  3052. "updated_at": {
  3053. "type": "string"
  3054. },
  3055. "user_id": {
  3056. "type": "integer"
  3057. },
  3058. "uuid": {
  3059. "type": "string"
  3060. }
  3061. }
  3062. },
  3063. "model.LoginLogList": {
  3064. "type": "object",
  3065. "properties": {
  3066. "list": {
  3067. "type": "array",
  3068. "items": {
  3069. "$ref": "#/definitions/model.LoginLog"
  3070. }
  3071. },
  3072. "page": {
  3073. "type": "integer"
  3074. },
  3075. "page_size": {
  3076. "type": "integer"
  3077. },
  3078. "total": {
  3079. "type": "integer"
  3080. }
  3081. }
  3082. },
  3083. "model.Oauth": {
  3084. "type": "object",
  3085. "properties": {
  3086. "auto_register": {
  3087. "type": "boolean"
  3088. },
  3089. "client_id": {
  3090. "type": "string"
  3091. },
  3092. "client_secret": {
  3093. "type": "string"
  3094. },
  3095. "created_at": {
  3096. "type": "string"
  3097. },
  3098. "id": {
  3099. "type": "integer"
  3100. },
  3101. "op": {
  3102. "type": "string"
  3103. },
  3104. "redirect_url": {
  3105. "type": "string"
  3106. },
  3107. "updated_at": {
  3108. "type": "string"
  3109. }
  3110. }
  3111. },
  3112. "model.OauthList": {
  3113. "type": "object",
  3114. "properties": {
  3115. "list": {
  3116. "type": "array",
  3117. "items": {
  3118. "$ref": "#/definitions/model.Oauth"
  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.Peer": {
  3133. "type": "object",
  3134. "properties": {
  3135. "cpu": {
  3136. "type": "string"
  3137. },
  3138. "created_at": {
  3139. "type": "string"
  3140. },
  3141. "hostname": {
  3142. "type": "string"
  3143. },
  3144. "id": {
  3145. "type": "string"
  3146. },
  3147. "last_online_time": {
  3148. "type": "integer"
  3149. },
  3150. "memory": {
  3151. "type": "string"
  3152. },
  3153. "os": {
  3154. "type": "string"
  3155. },
  3156. "row_id": {
  3157. "type": "integer"
  3158. },
  3159. "updated_at": {
  3160. "type": "string"
  3161. },
  3162. "user": {
  3163. "$ref": "#/definitions/model.User"
  3164. },
  3165. "user_id": {
  3166. "type": "integer"
  3167. },
  3168. "username": {
  3169. "type": "string"
  3170. },
  3171. "uuid": {
  3172. "type": "string"
  3173. },
  3174. "version": {
  3175. "type": "string"
  3176. }
  3177. }
  3178. },
  3179. "model.PeerList": {
  3180. "type": "object",
  3181. "properties": {
  3182. "list": {
  3183. "type": "array",
  3184. "items": {
  3185. "$ref": "#/definitions/model.Peer"
  3186. }
  3187. },
  3188. "page": {
  3189. "type": "integer"
  3190. },
  3191. "page_size": {
  3192. "type": "integer"
  3193. },
  3194. "total": {
  3195. "type": "integer"
  3196. }
  3197. }
  3198. },
  3199. "model.StatusCode": {
  3200. "type": "integer",
  3201. "enum": [
  3202. 1,
  3203. 2
  3204. ],
  3205. "x-enum-comments": {
  3206. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  3207. "COMMON_STATUS_ENABLE": "通用状态 启用"
  3208. },
  3209. "x-enum-varnames": [
  3210. "COMMON_STATUS_ENABLE",
  3211. "COMMON_STATUS_DISABLED"
  3212. ]
  3213. },
  3214. "model.Tag": {
  3215. "type": "object",
  3216. "properties": {
  3217. "color": {
  3218. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  3219. "type": "integer"
  3220. },
  3221. "created_at": {
  3222. "type": "string"
  3223. },
  3224. "id": {
  3225. "type": "integer"
  3226. },
  3227. "name": {
  3228. "type": "string"
  3229. },
  3230. "updated_at": {
  3231. "type": "string"
  3232. },
  3233. "user_id": {
  3234. "type": "integer"
  3235. }
  3236. }
  3237. },
  3238. "model.TagList": {
  3239. "type": "object",
  3240. "properties": {
  3241. "list": {
  3242. "type": "array",
  3243. "items": {
  3244. "$ref": "#/definitions/model.Tag"
  3245. }
  3246. },
  3247. "page": {
  3248. "type": "integer"
  3249. },
  3250. "page_size": {
  3251. "type": "integer"
  3252. },
  3253. "total": {
  3254. "type": "integer"
  3255. }
  3256. }
  3257. },
  3258. "model.User": {
  3259. "type": "object",
  3260. "properties": {
  3261. "avatar": {
  3262. "type": "string"
  3263. },
  3264. "created_at": {
  3265. "type": "string"
  3266. },
  3267. "group_id": {
  3268. "type": "integer"
  3269. },
  3270. "id": {
  3271. "type": "integer"
  3272. },
  3273. "is_admin": {
  3274. "type": "boolean"
  3275. },
  3276. "nickname": {
  3277. "type": "string"
  3278. },
  3279. "status": {
  3280. "$ref": "#/definitions/model.StatusCode"
  3281. },
  3282. "updated_at": {
  3283. "type": "string"
  3284. },
  3285. "username": {
  3286. "type": "string"
  3287. }
  3288. }
  3289. },
  3290. "model.UserList": {
  3291. "type": "object",
  3292. "properties": {
  3293. "list": {
  3294. "type": "array",
  3295. "items": {
  3296. "$ref": "#/definitions/model.User"
  3297. }
  3298. },
  3299. "page": {
  3300. "type": "integer"
  3301. },
  3302. "page_size": {
  3303. "type": "integer"
  3304. },
  3305. "total": {
  3306. "type": "integer"
  3307. }
  3308. }
  3309. },
  3310. "response.Response": {
  3311. "type": "object",
  3312. "properties": {
  3313. "code": {
  3314. "type": "integer"
  3315. },
  3316. "data": {},
  3317. "message": {
  3318. "type": "string"
  3319. }
  3320. }
  3321. }
  3322. },
  3323. "securityDefinitions": {
  3324. "BearerAuth": {
  3325. "type": "apiKey",
  3326. "name": "Authorization",
  3327. "in": "header"
  3328. },
  3329. "token": {
  3330. "type": "apiKey",
  3331. "name": "api-token",
  3332. "in": "header"
  3333. }
  3334. }
  3335. }