curl类型,数据库浮点数判断返回,列表查询时候用到

This commit is contained in:
tak 2023-12-11 11:22:23 +08:00
parent 70e9f966c3
commit 1826cb43ab

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
}