added some more entities for work demo
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef PAYLOAD_HPP
|
||||
#define PAYLOAD_HPP
|
||||
|
||||
#include "../core/Model.hpp"
|
||||
|
||||
#include "matador/utils/base_class.hpp"
|
||||
|
||||
namespace work::models::jobs {
|
||||
struct Payload : core::Model {
|
||||
std::string type;
|
||||
template<typename Operator>
|
||||
void process( Operator& op ) {
|
||||
namespace field = matador::access;
|
||||
field::process( op, *matador::base_class<Model>( this ) );
|
||||
field::attribute( op, "type", type, 255 );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //PAYLOAD_HPP
|
||||
Reference in New Issue
Block a user