mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-07 23:30:25 +08:00
用户界面设置中增加流量、带宽相关设置
This commit is contained in:
10
pkg/systemconfigs/bandwidth.go
Normal file
10
pkg/systemconfigs/bandwidth.go
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||||
|
|
||||||
|
package systemconfigs
|
||||||
|
|
||||||
|
type BandwidthUnit = string
|
||||||
|
|
||||||
|
const (
|
||||||
|
BandwidthUnitByte BandwidthUnit = "byte"
|
||||||
|
BandwidthUnitBit BandwidthUnit = "bit"
|
||||||
|
)
|
||||||
@@ -11,4 +11,8 @@ type UserUIConfig struct {
|
|||||||
FaviconFileId int64 `json:"faviconFileId"` // Favicon文件ID
|
FaviconFileId int64 `json:"faviconFileId"` // Favicon文件ID
|
||||||
LogoFileId int64 `json:"logoFileId"` // Logo文件ID
|
LogoFileId int64 `json:"logoFileId"` // Logo文件ID
|
||||||
TimeZone string `json:"timeZone"` // 时区
|
TimeZone string `json:"timeZone"` // 时区
|
||||||
|
|
||||||
|
BandwidthUnit BandwidthUnit `json:"bandwidthUnit"` // 带宽单位
|
||||||
|
ShowTrafficCharts bool `json:"showTrafficCharts" json:"showTrafficCharts"` // 是否显示流量相关图表和数据
|
||||||
|
ShowBandwidthCharts bool `json:"showBandwidthCharts" json:"showBandwidthCharts"` // 是否显示带宽相关图表和数据
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user