mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
fix default value with QUERY macro
This commit is contained in:
parent
3f37fa7008
commit
0202d08725
@ -211,7 +211,8 @@ info->queryParams.add(#NAME, TYPE::Class::getType());
|
||||
info->queryParams.add(QUALIFIER, TYPE::Class::getType());
|
||||
|
||||
#define OATPP_MACRO_API_CONTROLLER_QUERY_INFO_3(TYPE, NAME, QUALIFIER, DEFAULT) \
|
||||
info->queryParams.add(QUALIFIER, TYPE::Class::getType());
|
||||
info->queryParams.add(QUALIFIER, TYPE::Class::getType()); \
|
||||
info->queryParams[QUALIFIER].required = false;
|
||||
|
||||
#define OATPP_MACRO_API_CONTROLLER_QUERY_INFO(TYPE, PARAM_LIST) \
|
||||
OATPP_MACRO_API_CONTROLLER_MACRO_SELECTOR(OATPP_MACRO_API_CONTROLLER_QUERY_INFO_, TYPE, OATPP_MACRO_UNFOLD_VA_ARGS PARAM_LIST)
|
||||
|
Loading…
Reference in New Issue
Block a user