Skip to content

Commit 912a04d

Browse files
committed
Fix DTOs.
1 parent 2920956 commit 912a04d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/dto/ConfigDto.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#include OATPP_CODEGEN_BEGIN(DTO)
99

10-
class ConfigDto : public oatpp::Object {
10+
class ConfigDto : public oatpp::DTO {
1111

12-
DTO_INIT(ConfigDto, Object)
12+
DTO_INIT(ConfigDto, DTO)
1313

1414
DTO_FIELD(Int32, port);
1515
DTO_FIELD(String, swaggerHost);

src/dto/ErrorDto.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#include OATPP_CODEGEN_BEGIN(DTO)
99

10-
class ErrorDto : public oatpp::Object {
10+
class ErrorDto : public oatpp::DTO {
1111

12-
DTO_INIT(ErrorDto, Object)
12+
DTO_INIT(ErrorDto, DTO)
1313

1414
DTO_FIELD(String, service) = "example-postgresql: user-service";
1515
DTO_FIELD(Int32, code);

0 commit comments

Comments
 (0)