forked from lthn/blockchain
25 lines
No EOL
407 B
C++
25 lines
No EOL
407 B
C++
|
|
#ifndef PAGEDTO_HPP
|
|
#define PAGEDTO_HPP
|
|
|
|
#include "oatpp/core/macro/codegen.hpp"
|
|
#include "oatpp/core/Types.hpp"
|
|
|
|
#include OATPP_CODEGEN_BEGIN(DTO)
|
|
|
|
template<class T>
|
|
class PageDto : public oatpp::DTO {
|
|
|
|
DTO_INIT(PageDto, DTO);
|
|
|
|
DTO_FIELD(UInt32, offset);
|
|
DTO_FIELD(UInt32, limit);
|
|
DTO_FIELD(UInt32, count);
|
|
DTO_FIELD(Vector<T>, items);
|
|
|
|
};
|
|
|
|
|
|
#include OATPP_CODEGEN_END(DTO)
|
|
|
|
#endif //PAGEDTO_HPP
|