admin_swagger.yaml 87 KB

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