[FEAT] add get userID
This commit is contained in:
parent
8d63a758f7
commit
add346cf29
@ -19,4 +19,11 @@ public class GenericContext implements Principal {
|
||||
}
|
||||
return this.userByToken.name;
|
||||
}
|
||||
|
||||
public Long getUserID() {
|
||||
if (this.userByToken != null) {
|
||||
return this.userByToken.id;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user