We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-gorm/playground#1
table原始表中是tinyint的项目,应该对应go中的int8,但是经过gen生成的全都是int32
The text was updated successfully, but these errors were encountered:
@zaaztt 这个是设计如此哈;业务场景使用更多的就是 int32和int64,所以默认都是生成这两个了
不满足你们诉求的可以通过FIeldType或者是datamapping 配置哈
Sorry, something went wrong.
@zaaztt 这个是设计如此哈;业务场景使用更多的就是 int32和int64,所以默认都是生成这两个了 不满足你们诉求的可以通过FIeldType或者是datamapping 配置哈
@qqxhb 推荐我直接修改gen生成的struct吗?比如手动把int32改成int8
@zaaztt 这个是设计如此哈;业务场景使用更多的就是 int32和int64,所以默认都是生成这两个了 不满足你们诉求的可以通过FIeldType或者是datamapping 配置哈 @qqxhb 推荐我直接修改gen生成的struct吗?比如手动把int32改成int8
不推荐哈,因为直接改struct下次生成又被覆盖了
No branches or pull requests
GORM Playground Link
go-gorm/playground#1
Description
table原始表中是tinyint的项目,应该对应go中的int8,但是经过gen生成的全都是int32
The text was updated successfully, but these errors were encountered: