admin_swagger.yaml 72 KB

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