package model const ( ConfigTypeSys = "Sys" ConfigTypePricePack = "PricePack" ConfigTypeFreightPack = "FreightPack" ConfigTypeBank = "Bank" ConfigTypeRole = "Role" ) const ( ConfigSysFakeOrderMobiles = "FakeOrderMobiles" // 假订单手机 ) var ( ConfigTypeName = map[string]string{ ConfigTypeSys: "系统", ConfigTypePricePack: "价格包", ConfigTypeFreightPack: "免运包", ConfigTypeBank: "银行", ConfigTypeRole: "角色", } ) type NewConfig struct { ModelIDCULD Type string `orm:"size(16)" json:"type"` Key string `orm:"size(32)" json:"key"` Value string `orm:"size(4096)" json:"value"` } func (*NewConfig) TableUnique() [][]string { return [][]string{ []string{"Key", "Type", "DeletedAt"}, []string{"Type", "Key", "DeletedAt"}, } }