31 lines
540 B
Go
31 lines
540 B
Go
package model
|
|
|
|
const (
|
|
ConfigTypeSys = "Sys"
|
|
ConfigTypePricePack = "PricePack"
|
|
ConfigTypeBank = "Bank"
|
|
)
|
|
|
|
var (
|
|
ConfigTypeList = []string{
|
|
ConfigTypeSys,
|
|
ConfigTypePricePack,
|
|
ConfigTypeBank,
|
|
}
|
|
)
|
|
|
|
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"},
|
|
}
|
|
}
|