- add: ability to refresh the current session
- add: delete type to delete character request - add: ability to update key in redis - add: handle alive packet to refresh the session - fix: delete now actually returns the time remaining correctly - fix: character list now has the correct time until character deletion
This commit is contained in:
@@ -7,6 +7,7 @@ service AuthService {
|
||||
rpc Logout(LogoutRequest) returns (Empty);
|
||||
rpc ValidateToken(ValidateTokenRequest) returns (ValidateTokenResponse);
|
||||
rpc ValidateSession(ValidateSessionRequest) returns (ValidateSessionResponse);
|
||||
rpc RefreshSession(ValidateSessionRequest) returns (ValidateSessionResponse);
|
||||
rpc Register (RegisterRequest) returns (RegisterResponse);
|
||||
rpc RequestPasswordReset (PasswordResetRequest) returns (PasswordResetResponse);
|
||||
rpc ResetPassword (ResetPasswordRequest) returns (ResetPasswordResponse);
|
||||
|
||||
@@ -35,6 +35,7 @@ message CreateCharacterResponse {
|
||||
message DeleteCharacterRequest {
|
||||
string user_id = 1;
|
||||
string char_id = 2;
|
||||
int32 delete_type = 3;
|
||||
}
|
||||
|
||||
message DeleteCharacterResponse {
|
||||
|
||||
@@ -39,6 +39,7 @@ message CreateCharacterResponse {
|
||||
message DeleteCharacterRequest {
|
||||
int32 user_id = 1;
|
||||
int32 character_id = 2;
|
||||
int32 delete_type = 3;
|
||||
}
|
||||
|
||||
message DeleteCharacterResponse {
|
||||
@@ -56,7 +57,8 @@ message Character {
|
||||
string position = 9;
|
||||
string created_at = 10;
|
||||
string updated_at = 11;
|
||||
bool is_active = 12;
|
||||
string deleted_at = 12;
|
||||
bool is_active = 13;
|
||||
}
|
||||
|
||||
message Empty {}
|
||||
|
||||
@@ -5,6 +5,7 @@ package session_service_api;
|
||||
service SessionService {
|
||||
rpc CreateSession (CreateSessionRequest) returns (SessionResponse);
|
||||
rpc GetSession (GetSessionRequest) returns (SessionResponse);
|
||||
rpc RefreshSession (GetSessionRequest) returns (SessionResponse);
|
||||
rpc DeleteSession (DeleteSessionRequest) returns (Empty);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user