type AttributeValue struct {
ID int `json:"id" gorm:"primaryKey"`
AttrID int `json:"attrId" gorm:"comment:属性id" `
Value string `json:"value" gorm:"值"`
}
type Dict struct {
Type int `json:"type" gorm:"primaryKey;comment:类型"`
Key string `json:"key" gorm:"primaryKey;comment:键"`
Value string `json:"value" gorm:"comment:值"`
Seq int `json:"seq" gorm:"comment:排序"`
}
type Enum struct {
ID int `json:"id" gorm:"primaryKey"`
Name string `json:"name" gorm:"comment:名称"`
Group int `json:"group" gorm:"uniqueIndex;comment:枚举组"`
}
type EnumValue struct {
ID int `json:"id" gorm:"primaryKey"`
EnumID int `json:"enumId" gorm:"comment:枚举id"`
Index int `json:"index" gorm:"comment:索引"`
Value string `json:"value" gorm:"comment:值"`
}
type Object struct {
ID int `json:"id" gorm:"primaryKey"`
FieldID int `json:"fieldId" gorm:"comment:字段id"`
Value string `json:"value" gorm:"comment:值"`
}
type StructField struct {
ID int `json:"id" gorm:"primaryKey"`
StructID int `json:"structId" gorm:"comment:结构体id"`
PID int `json:"pid" gorm:"comment:父级id"`
Name string `json:"name" gorm:"comment:名称"`
Type int `json:"type" gorm:"comment:类型"`
}