softplayer-proto/proto/email/email_v1.proto

24 lines
577 B
Protocol Buffer
Raw Normal View History

2024-03-21 15:07:25 +00:00
/// 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) {}
2024-03-21 15:10:54 +00:00
rpc ValidateEmail (ConfirmValidation) returns (google.protobuf.Empty) {}
2024-03-21 15:07:25 +00:00
}
message RequestValidation {
2024-03-21 15:10:54 +00:00
string user_id = 1;
2024-03-21 15:07:25 +00:00
}
message ConfirmValidation {
2024-03-21 15:10:54 +00:00
string user_id = 1;
int32 code = 2;
2024-03-21 15:07:25 +00:00
}