added a bigger real-life demo
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#ifndef LDAP_IMPORT_SETTINGS_HPP
|
||||
#define LDAP_IMPORT_SETTINGS_HPP
|
||||
|
||||
#include "../core/Model.hpp"
|
||||
|
||||
#include "matador/utils/base_class.hpp"
|
||||
|
||||
namespace work::models::admin {
|
||||
|
||||
struct LdapImportSettings : core::Model {
|
||||
std::string default_role;
|
||||
unsigned int sync_interval;
|
||||
unsigned int network_timeout;
|
||||
|
||||
template<typename Operator>
|
||||
void process( Operator& op ) {
|
||||
namespace field = matador::access;
|
||||
field::process( op, *matador::base_class<Model>( this ) );
|
||||
field::attribute( op, "default_role", default_role, 511 );
|
||||
field::attribute( op, "sync_interval", sync_interval );
|
||||
field::attribute( op, "network_timeout", network_timeout );
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif //LDAP_IMPORT_SETTINGS_HPP
|
||||
Reference in New Issue
Block a user