mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-13 02:54:26 +08:00
feat: 初步支持 USB 网卡桥接;删除 OTG 端点预算管理
This commit is contained in:
@@ -10,6 +10,12 @@ import type {
|
||||
HidConfigUpdate,
|
||||
MsdConfig,
|
||||
MsdConfigUpdate,
|
||||
NetworkInterfaceInfo,
|
||||
OtgNetworkConfig,
|
||||
OtgNetworkConfigUpdate,
|
||||
OtgNetworkStatus,
|
||||
OtgConfigUpdate,
|
||||
OtgConfigResponse,
|
||||
AtxConfig,
|
||||
AtxConfigUpdate,
|
||||
AtxDevices,
|
||||
@@ -86,6 +92,28 @@ export const msdConfigApi = {
|
||||
}),
|
||||
}
|
||||
|
||||
export const otgNetworkApi = {
|
||||
get: () => request<OtgNetworkConfig>('/config/otg-network'),
|
||||
|
||||
update: (config: OtgNetworkConfigUpdate) =>
|
||||
request<OtgNetworkConfig>('/config/otg-network', {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(config),
|
||||
}),
|
||||
|
||||
status: () => request<OtgNetworkStatus>('/otg/network/status'),
|
||||
|
||||
interfaces: () => request<NetworkInterfaceInfo[]>('/devices/network'),
|
||||
}
|
||||
|
||||
export const otgConfigApi = {
|
||||
update: (config: OtgConfigUpdate) =>
|
||||
request<OtgConfigResponse>('/config/otg', {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(config),
|
||||
}),
|
||||
}
|
||||
|
||||
export interface WolHistoryEntry {
|
||||
mac_address: string
|
||||
updated_at: number
|
||||
|
||||
Reference in New Issue
Block a user