48 lines
1.1 KiB
Go
48 lines
1.1 KiB
Go
package model
|
|
|
|
const (
|
|
ConfigTypeSys = "Sys"
|
|
ConfigTypePricePack = "PricePack"
|
|
ConfigTypeFreightPack = "FreightPack"
|
|
ConfigTypeBank = "Bank"
|
|
ConfigTypeRole = "Role"
|
|
ConfigTypeJxStore = "JxStore"
|
|
ConfigTypeCookie = "Cookie"
|
|
ConfigTypeMemberCard = "MemberCard"
|
|
)
|
|
|
|
const (
|
|
ConfigSysFakeOrderMobiles = "FakeOrderMobiles" // 假订单手机
|
|
ConfigSysEbaiBoxFee = "EbaiBoxFee" // 饿百打包费
|
|
ConfigSysMtwmBoxFee = "MtwmBoxFee" // 美团外卖打包费
|
|
ConfigSysMtwmSkuBoxFee = "MtwmSkuBoxFee" // 美团外卖单商品打包费
|
|
)
|
|
|
|
const (
|
|
MemberCardTypeMonth = 1 //1个月的会员
|
|
MemberCardTypeYear = 2 //1年的会员
|
|
)
|
|
|
|
var (
|
|
ConfigTypeName = map[string]string{
|
|
ConfigTypeSys: "系统",
|
|
ConfigTypeCookie: "Cookie",
|
|
ConfigTypeMemberCard: "会员卡",
|
|
}
|
|
)
|
|
|
|
type NewConfig struct {
|
|
ModelIDCULD
|
|
|
|
Type string `orm:"size(16)" json:"type"`
|
|
Key string `orm:"size(32)" json:"key"`
|
|
Value string `orm:"size(9999)" json:"value"`
|
|
}
|
|
|
|
func (*NewConfig) TableUnique() [][]string {
|
|
return [][]string{
|
|
[]string{"Key", "Type", "DeletedAt"},
|
|
[]string{"Type", "Key", "DeletedAt"},
|
|
}
|
|
}
|