Skip to content

Commit

Permalink
Fix DTOs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed May 23, 2020
1 parent 2920956 commit 912a04d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dto/ConfigDto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

#include OATPP_CODEGEN_BEGIN(DTO)

class ConfigDto : public oatpp::Object {
class ConfigDto : public oatpp::DTO {

DTO_INIT(ConfigDto, Object)
DTO_INIT(ConfigDto, DTO)

DTO_FIELD(Int32, port);
DTO_FIELD(String, swaggerHost);
Expand Down
4 changes: 2 additions & 2 deletions src/dto/ErrorDto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

#include OATPP_CODEGEN_BEGIN(DTO)

class ErrorDto : public oatpp::Object {
class ErrorDto : public oatpp::DTO {

DTO_INIT(ErrorDto, Object)
DTO_INIT(ErrorDto, DTO)

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

0 comments on commit 912a04d

Please sign in to comment.