Files
jx-callback/business/model/new_config.go
2019-08-07 18:16:44 +08:00

33 lines
656 B
Go

package model
const (
ConfigTypeSys = "Sys"
ConfigTypePricePack = "PricePack"
ConfigTypeBank = "Bank"
ConfigTypeRole = "Role"
)
var (
ConfigTypeName = map[string]string{
ConfigTypeSys: "系统",
ConfigTypePricePack: "价格包",
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"},
}
}