mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
The User now inherits from Resource.
This commit is contained in:
parent
c372eaa8cf
commit
a8cb81598b
@ -628,7 +628,7 @@ void User::create_validators() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
User::User() :
|
User::User() :
|
||||||
Object() {
|
Resource() {
|
||||||
|
|
||||||
id = 0;
|
id = 0;
|
||||||
rank = 0;
|
rank = 0;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef USER_H
|
#ifndef USER_H
|
||||||
#define USER_H
|
#define USER_H
|
||||||
|
|
||||||
#include "core/object.h"
|
#include "core/resource.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -10,8 +10,8 @@
|
|||||||
class Request;
|
class Request;
|
||||||
class FormValidator;
|
class FormValidator;
|
||||||
|
|
||||||
class User : public Object {
|
class User : public Resource {
|
||||||
RCPP_OBJECT(User, Object);
|
RCPP_OBJECT(User, Resource);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int id;
|
int id;
|
||||||
|
Loading…
Reference in New Issue
Block a user