Merge pull request #73 from aklivecai/tak

curd 数据库浮点数判断返回,列表查询时候用到
This commit is contained in:
孟帅 2023-12-13 10:28:43 +08:00 committed by GitHub
commit 90f0e85774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,6 +219,8 @@ func IsNumberType(goType string) bool {
switch goType {
case GoTypeInt, GoTypeUint, GoTypeInt64, GoTypeUint64:
return true
case GoTypeFloat32, GoTypeFloat64:
return true
}
return false
}