admin_swagger.yaml 67 KB

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