增加全局安全类参数解析

This commit is contained in:
2024-12-25 14:59:14 +08:00
parent e70634a318
commit 368fb02efc
4 changed files with 40 additions and 17 deletions

View File

@ -57,7 +57,7 @@ func GetDataType(docParamType string, formatType string) consts.DataType {
return consts.DataTypeInt
}
return consts.DataTypeUint
case "string":
case "string", "apikey":
return consts.DataTypeString
case "object":
return consts.DataTypeMapStrAny