diff --git a/base/res_field.go b/base/res_field.go index ef081e5..8d8ba0f 100644 --- a/base/res_field.go +++ b/base/res_field.go @@ -17,14 +17,14 @@ import ( // 资源字段 type ResField struct { - Uuid string `db:"uuid"` - Name string `db:"name"` - Code string `db:"code"` - CodeResource string `db:"codeResource"` - DataType res_type.ResFieldByString `db:"table_type"` - Length string `db:"length"` - Comment string `db:"comment"` - Default string `db:"default"` + Uuid string `db:"uuid"` + Name string `db:"name"` + Code string `db:"code"` + CodeResource string `db:"codeResource"` + DataType contracts.ResDataType `db:"table_type"` + Length string `db:"length"` + Comment string `db:"comment"` + Default string `db:"default"` } func (this ResField) ToStructField(tags ...string) reflect.StructField {