update consts

This commit is contained in:
2025-03-24 12:08:46 +08:00
parent 130c302ad2
commit 2363b2aa83
3 changed files with 83 additions and 28 deletions

View File

@ -64,7 +64,7 @@ func GetDataType(docParamType string, formatType string) string {
case "boolean":
return consts.DataTypeBool.String()
case "number", "float", "double", "float32", "float64":
return consts.DataTypeFloat.String()
return consts.DataTypeFloat64.String()
case "array":
if formatType == "integer" {
return consts.DataTypeSliceInt.String()