优化代码

This commit is contained in:
GoEdgeLab
2024-03-10 16:25:52 +08:00
parent 57f22f4fb2
commit 0529b115ef

View File

@@ -45,7 +45,7 @@ type UserUIConfig struct {
Theme ThemeConfig `yaml:"theme" json:"theme"` // 风格模板
}
func DefaultUserUIConfig() *UserUIConfig {
func NewUserUIConfig() *UserUIConfig {
var config = &UserUIConfig{
ProductName: "GoEdge",
UserSystemName: "GoEdge用户系统",
@@ -55,6 +55,7 @@ func DefaultUserUIConfig() *UserUIConfig {
BandwidthUnit: BandwidthUnitBit,
ShowBandwidthCharts: true,
ShowTrafficCharts: true,
TimeZone: "Asia/Shanghai",
}
// 服务相关