mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-09-23 03:36:40 +08:00
curl类型,数据库浮点数判断返回,列表查询时候用到
This commit is contained in:
parent
70e9f966c3
commit
1826cb43ab
@ -219,6 +219,8 @@ func IsNumberType(goType string) bool {
|
|||||||
switch goType {
|
switch goType {
|
||||||
case GoTypeInt, GoTypeUint, GoTypeInt64, GoTypeUint64:
|
case GoTypeInt, GoTypeUint, GoTypeInt64, GoTypeUint64:
|
||||||
return true
|
return true
|
||||||
|
case GoTypeFloat32, GoTypeFloat64:
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user