admin_swagger.yaml 94 KB

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