1、tbl_tmp表里面字段a是bytea类型
建数据表映射结构体如下:
type Tmp struct {
A []byte `gorm:"column:a"`
}
2、tbl_tmp表里面字段b是jsonb类型
建数据表映射结构体如下:
type Tmp struct {
B string `gorm:"column:b"`
}
1、tbl_tmp表里面字段a是bytea类型
建数据表映射结构体如下:
type Tmp struct {
A []byte `gorm:"column:a"`
}
2、tbl_tmp表里面字段b是jsonb类型
建数据表映射结构体如下:
type Tmp struct {
B string `gorm:"column:b"`
}