added some more entities for work demo
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef ID_LIST_PAYLOAD_HPP
|
||||
#define ID_LIST_PAYLOAD_HPP
|
||||
|
||||
#include "Payload.hpp"
|
||||
|
||||
#include "matador/object/collection.hpp"
|
||||
|
||||
namespace work::models::jobs {
|
||||
struct IdListPayload : Payload {
|
||||
matador::object::collection<unsigned long long> ids;
|
||||
template<typename Operator>
|
||||
void process( Operator& op ) {
|
||||
namespace field = matador::access;
|
||||
field::process( op, *matador::base_class<Payload>( this ) );
|
||||
field::has_many( op, "payload_ids", ids );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //ID_LIST_PAYLOAD_HPP
|
||||
Reference in New Issue
Block a user