完成基础请求参数构建

This commit is contained in:
2024-12-24 12:33:50 +08:00
parent ff2fa198ee
commit dd46f5ad80
4 changed files with 64 additions and 33 deletions

View File

@ -33,7 +33,7 @@ func GetUriPathParamList(uriPath string) []*define.ParamConfig {
Type: consts.DataTypeString.String(),
Title: param,
Description: param,
IsRequired: true,
Required: true,
})
}
return result
@ -59,7 +59,7 @@ func GetParamType(docParamType string, formatType string) consts.DataType {
case "string":
return consts.DataTypeString
default:
return consts.DataTypeAny
return consts.DataTypeMapStrAny
}
}