Added main controller and user entity

This commit is contained in:
mirrerror
2023-09-21 10:21:31 +03:00
parent ac175a6bd2
commit ccea0d393c
3 changed files with 48 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
package entities;
public enum Role {
UNREGISTERED, REGISTERED, ADMIN;
}

View File

@@ -0,0 +1,32 @@
package entities;
public class User {
private long id;
private String name;
private String email;
private String login;
private String password;
private Role role;
public User(long id, String name) {
this.id = id;
this.name = name;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}