feat: added auth for telegram stage

This commit is contained in:
2025-07-16 20:34:29 +03:00
parent bae7a0267d
commit fcdc4476df
9 changed files with 68 additions and 14 deletions

View File

@@ -1,14 +1,16 @@
syntax = "proto3";
option csharp_namespace = "JOBot.Proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/empty.proto";
service User {
rpc Register (RegisterRequest) returns (RegisterResponse);
rpc GetUser (GetUserRequest) returns (GetUserResponse);
rpc AcceptEula (AcceptEulaRequest) returns (AcceptEulaResponse);
rpc GetHeadHunterAuthHook(GetHeadHunterAuthHookRequest) returns (GetHeadHunterAuthHookResponse);
}
import "google/protobuf/wrappers.proto";
message RegisterRequest{
int64 user_id = 1;
google.protobuf.StringValue username = 2;
@@ -37,4 +39,12 @@ message AcceptEulaRequest {
message AcceptEulaResponse{
bool success = 1;
}
message GetHeadHunterAuthHookRequest{
int64 user_id = 1;
}
message GetHeadHunterAuthHookResponse{
string registration_url = 1;
}