admin_swagger.yaml 94 KB

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