[fix] 修正 ResField DataType 的数据类型

This commit is contained in:
what-00 2023-04-12 19:53:45 +08:00
parent 3deedff8bc
commit ce72472106

View File

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