Skip to content
New issue

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

decimal 类型字段会转为 string #94

Open
QingsiLiu opened this issue Jan 16, 2025 · 2 comments
Open

decimal 类型字段会转为 string #94

QingsiLiu opened this issue Jan 16, 2025 · 2 comments

Comments

@QingsiLiu
Copy link

image

使用 gorm_gen 工具生成的会是 float64,而我们框架生成了 string,这个可以直接转为float64 吗?

@zhufuyi
Copy link
Collaborator

zhufuyi commented Jan 16, 2025

后续版本会引用这个库 https://github.com/shopspring/decimal 来处理mysql的decimal类型。

@QingsiLiu
Copy link
Author

后续版本会引用这个库 https://github.com/shopspring/decimal 来处理mysql的decimal类型。

好滴好滴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants