yydsqu

Results 2 comments of yydsqu

> > 什么意思? mysql json 类型映射的时候不支持通过bee generate自动化的生成代码,现在改修的项目有大量的json类型 Name string `orm:"type(json);size(1024)"`也有问题,可不可支持mysql 的json类型的对应,可以修改成对应map类型或者自定义struct

测试model ```go type GoodsImages []string func (e *GoodsImages) FieldType() int { return orm.TypeJSONField } type Skus struct { GoodsImages GoodsImages `orm:"type(json);description(商品图片)"` } ``` mysql 自动创建表时生成的mysql语法:`goods_images ` varchar(255) NOT NULL DEFAULT...