added some more entities for work demo
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#ifndef USERINFO_HPP
|
||||
#define USERINFO_HPP
|
||||
|
||||
#include "matador/utils/access.hpp"
|
||||
|
||||
namespace work::core {
|
||||
struct UserInfo {
|
||||
unsigned long long user_session_id;
|
||||
std::string user_role;
|
||||
std::string database_name;
|
||||
|
||||
template<typename Operator>
|
||||
void process( Operator& op ) {
|
||||
namespace field = matador::access;
|
||||
field::attribute( op, "user_session_id", user_session_id );
|
||||
field::attribute( op, "user_role", user_role, 255 );
|
||||
field::attribute( op, "database_name", database_name, 255 );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //USERINFO_HPP
|
||||
Reference in New Issue
Block a user