update common
This commit is contained in:
10
common.go
10
common.go
@ -58,6 +58,16 @@ func GetParamType(docParamType string, formatType string) consts.DataType {
|
||||
return consts.DataTypeUint
|
||||
case "string":
|
||||
return consts.DataTypeString
|
||||
case "object":
|
||||
return consts.DataTypeMapStrAny
|
||||
case "array":
|
||||
if formatType == "integer" {
|
||||
return consts.DataTypeSliceInt
|
||||
} else if formatType == "string" {
|
||||
return consts.DataTypeSliceString
|
||||
} else {
|
||||
return consts.DataTypeSliceAny
|
||||
}
|
||||
default:
|
||||
return consts.DataTypeMapStrAny
|
||||
}
|
||||
|
Reference in New Issue
Block a user