+onSysConfigChanged

This commit is contained in:
gazebo
2019-12-31 10:28:52 +08:00
parent 174727bafc
commit 229601c11e
3 changed files with 76 additions and 28 deletions

View File

@@ -1,7 +1,5 @@
package model
import "reflect"
const (
ConfigTypeSys = "Sys"
ConfigTypePricePack = "PricePack"
@@ -17,12 +15,6 @@ const (
ConfigSysMtwmSkuBoxFee = "MtwmSkuBoxFee" // 美团外卖单商品打包费
)
type SysConfigLimit struct {
ValueType reflect.Kind
MinValue int64
MaxValue int64
}
var (
ConfigTypeName = map[string]string{
ConfigTypeSys: "系统",
@@ -31,24 +23,6 @@ var (
ConfigTypeBank: "银行",
ConfigTypeRole: "角色",
}
SysConfigLimitMap = map[string]*SysConfigLimit{
ConfigSysEbaiBoxFee: &SysConfigLimit{
ValueType: reflect.Int,
MinValue: 0,
MaxValue: 500,
},
ConfigSysMtwmBoxFee: &SysConfigLimit{
ValueType: reflect.Int,
MinValue: 0,
MaxValue: 500,
},
ConfigSysMtwmSkuBoxFee: &SysConfigLimit{
ValueType: reflect.Int,
MinValue: 0,
MaxValue: 50,
},
}
)
type NewConfig struct {