admin_swagger.yaml 67 KB

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