Refine session user response
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
itzaname 2024-11-28 23:09:53 -05:00
parent cc0845f68e
commit fab429fc74

View File

@ -5,7 +5,7 @@ option go_package = "git.itzana.me/strafesnet/go-grpc/auth";
package auth; package auth;
service AuthService { service AuthService {
rpc GetSession(IdMessage) returns (SessionResponse); rpc GetSessionUser(IdMessage) returns (SessionUserResponse);
rpc GetGroupRole(IdMessage) returns (RoleReponse); rpc GetGroupRole(IdMessage) returns (RoleReponse);
rpc ValidateSession(IdMessage) returns (ValidateResponse); rpc ValidateSession(IdMessage) returns (ValidateResponse);
} }
@ -14,12 +14,10 @@ message IdMessage {
string SessionID = 1; string SessionID = 1;
} }
message SessionResponse { message SessionUserResponse {
string SessionID = 1; uint64 UserID = 1;
uint64 UserID = 2; string Username = 2;
string Username = 3; string AvatarURL = 3;
uint64 Created = 4;
uint64 Expires = 5;
} }
message RoleReponse { message RoleReponse {