Saving changes. Updated oatpp version has some breaking changes
This commit is contained in:
+16
-15
@@ -1,28 +1,29 @@
|
||||
#ifndef SONGDTO_H_
|
||||
#define SONGDTO_H_
|
||||
|
||||
#include "oatpp/core/data/mapping/type/Object.hpp"
|
||||
#include "oatpp/core/macro/codegen.hpp"
|
||||
#include <oatpp/core/Types.hpp>
|
||||
// #include <oatpp/core/data/mapping/type/Object.hpp>
|
||||
#include <oatpp/core/macro/codegen.hpp>
|
||||
|
||||
#include "model/Models.h"
|
||||
|
||||
namespace dto {
|
||||
#include OATPP_CODEGEN_BEGIN(DTO)
|
||||
|
||||
class SongDto : public oatpp::data::mapping::type::Object {
|
||||
DTO_INIT(SongDto, Object)
|
||||
class SongDto : public oatpp::DTO {
|
||||
DTO_INIT(SongDto, DTO)
|
||||
|
||||
DTO_FIELD(Int32, id);
|
||||
DTO_FIELD(String, title);
|
||||
DTO_FIELD(String, artist);
|
||||
DTO_FIELD(String, album_artist);
|
||||
DTO_FIELD(String, album);
|
||||
DTO_FIELD(String, genre);
|
||||
DTO_FIELD(Int32, track);
|
||||
DTO_FIELD(Int32, disc);
|
||||
DTO_FIELD(Int32, year);
|
||||
DTO_FIELD(Int32, duration);
|
||||
DTO_FIELD(Int32, coverart_id);
|
||||
DTO_FIELD(oatpp::Int32, id);
|
||||
DTO_FIELD(oatpp::String, title);
|
||||
DTO_FIELD(oatpp::String, artist);
|
||||
DTO_FIELD(oatpp::String, album_artist);
|
||||
DTO_FIELD(oatpp::String, album);
|
||||
DTO_FIELD(oatpp::String, genre);
|
||||
DTO_FIELD(oatpp::Int32, track);
|
||||
DTO_FIELD(oatpp::Int32, disc);
|
||||
DTO_FIELD(oatpp::Int32, year);
|
||||
DTO_FIELD(oatpp::Int32, duration);
|
||||
DTO_FIELD(oatpp::Int32, coverart_id);
|
||||
};
|
||||
|
||||
#include OATPP_CODEGEN_END(DTO)
|
||||
|
||||
Reference in New Issue
Block a user