Add email validation service

This commit is contained in:
2024-03-21 16:07:25 +01:00
parent 9535487822
commit aab79085e6
3 changed files with 25 additions and 6 deletions

View File

@ -0,0 +1,23 @@
/// This file has messages for describing environments
syntax = "proto3";
package email;
import "google/protobuf/empty.proto";
option go_package = "git.badhouseplants.net/softplayer/softplayer-go-proto/pkg/email";
/*
* A service that should handle email validation
*/
service EmailValidation {
rpc SendRequest (RequestValidation) returns (google.protobuf.Empty) {}
rpc ValidateEmail (Code) returns (google.protobuf.Empty) {}
}
message RequestValidation {
string user_id = 0;
}
message ConfirmValidation {
string user_id = 0;
int32 code = 1;
}