mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
codegen: Fix QUERY(TYPE, NAME, QUALIFIER) macro
This commit is contained in:
parent
0de4459c45
commit
594ec76c7f
@ -172,7 +172,7 @@ if(!__param_validation_check_##NAME){ \
|
||||
|
||||
#define OATPP_MACRO_API_CONTROLLER_QUERY_2(TYPE, NAME, QUALIFIER) \
|
||||
const auto& __param_str_val_##NAME = __request->getQueryParameter(QUALIFIER); \
|
||||
if(!__param_str_val_##NAME) \
|
||||
if(!__param_str_val_##NAME) { \
|
||||
throw oatpp::web::protocol::http::HttpError(Status::CODE_400, \
|
||||
oatpp::String("Missing QUERY parameter '") + QUALIFIER + "'"); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user