Some clean up for insert song records into the database

This commit is contained in:
kdeng00
2019-08-25 14:54:09 -04:00
parent d54715ac25
commit 2145adb039
6 changed files with 143 additions and 71 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef SONGDTO_H_
#define SONGDTO_H_
#include "oatpp/core/data/mapping/type/Object.hpp"
#include "oatpp/core/macro/codegen.hpp"
#include OATPP_CODEGEN_BEGIN(DTO)
class songDto : public oatpp::data::mapping::type::Object
{
DTO_INIT(songDto, Object)
DTO_FIELD(Int32, id);
DTO_FIELD(String, title);
DTO_FIELD(String, artist);
DTO_FIELD(String, album);
DTO_FIELD(String, genre);
DTO_FIELD(Int32, year);
DTO_FIELD(Int32, duration);
};
#include OATPP_CODEGEN_END(DTO)
#endif