|
@@ -12,16 +12,18 @@ const (
|
|
)
|
|
)
|
|
const (
|
|
const (
|
|
// configCode
|
|
// configCode
|
|
- HTCPELoginUrl = "HtCpeLoginUrl"
|
|
|
|
- ShowMediaView = "ShowMediaView"
|
|
|
|
- PaymentWay = "PaymentWay"
|
|
|
|
|
|
+ HTCPELoginUrl = "HtCpeLoginUrl"
|
|
|
|
+ ChartLibUrlPrefix = "ChartLibUrlPrefix"
|
|
|
|
+ ShowMediaView = "ShowMediaView"
|
|
|
|
+ PaymentWay = "PaymentWay"
|
|
)
|
|
)
|
|
|
|
|
|
// SysConfigMap 用于存储错误码和错误信息的映射
|
|
// SysConfigMap 用于存储错误码和错误信息的映射
|
|
var SysConfigMap = map[string]*Config{
|
|
var SysConfigMap = map[string]*Config{
|
|
- HTCPELoginUrl: {ConfigId: 1000, ConfigType: ConfigTypeStr},
|
|
|
|
- ShowMediaView: {ConfigId: 1001, ConfigType: ConfigTypeInt},
|
|
|
|
- PaymentWay: {ConfigId: 1003, ConfigType: ConfigTypeStr},
|
|
|
|
|
|
+ HTCPELoginUrl: {ConfigId: 1000, ConfigType: ConfigTypeStr},
|
|
|
|
+ ShowMediaView: {ConfigId: 1001, ConfigType: ConfigTypeInt},
|
|
|
|
+ ChartLibUrlPrefix: {ConfigId: 1002, ConfigType: ConfigTypeStr},
|
|
|
|
+ PaymentWay: {ConfigId: 1003, ConfigType: ConfigTypeStr},
|
|
}
|
|
}
|
|
|
|
|
|
func GetConfig(code string) *Config {
|
|
func GetConfig(code string) *Config {
|