go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

goctl: shopsping/decimal replace float64 to receive database decimal type

Open taobig opened this issue 2 years ago • 1 comments

目前的goctl会把db的decimal类型生成为float64/sql.NullFloat64。 希望使用github.com/shopspring/decimal的decimal.Decimal/decimal.NullDecimal来接收db的decimal类型,这样才能满足高精度的使用场景。或者希望能改进goctl设计能让使用者自定义类型映射。

taobig avatar Jun 10 '22 11:06 taobig

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 31 '22 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 14 '22 02:08 github-actions[bot]