package domain type StateConfig struct { Enable bool `bson:"enable" json:"enable"` } type SocConfig struct { Enable bool `bson:"enable" json:"enable"` } type APowerConfig struct { Enable bool `bson:"enable" json:"enable"` } type AlarmConfig struct { Enable bool `bson:"enable" json:"enable"` } type VersionConfig struct { Enable bool `bson:"enable" json:"enable"` } type TariffsConfig struct { Enable bool `bson:"enable" json:"enable"` } type OthersConfig struct { Enable bool `bson:"enable" json:"enable"` } type MonitorPageConfig struct { State StateConfig `bson:"state" json:"state"` Soc SocConfig `bson:"soc" json:"soc"` APower APowerConfig `bson:"aPower" json:"aPower"` Alarm AlarmConfig `bson:"alarm" json:"alarm"` Version VersionConfig `bson:"version" json:"version"` Tariffs TariffsConfig `bson:"tariffs" json:"tariffs"` Others OthersConfig `bson:"others" json:"others"` } type SitesMonitorConfig struct { Name string `bson:"name" json:"name"` Description string `bson:"description" json:"description"` SiteList []string `bson:"siteList" json:"siteList"` PageConfig *MonitorPageConfig `bson:"pageConfig,omitempty" json:"pageConfig,omitempty"` }