Add email validation service
This commit is contained in:
parent
9535487822
commit
aab79085e6
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ docker-docs-gen:
|
|||||||
|
|
||||||
docker-lint:
|
docker-lint:
|
||||||
$(CONTAINER_TOOL) run --rm \
|
$(CONTAINER_TOOL) run --rm \
|
||||||
-v $$(pwd):/workspace \
|
-v $$(pwd):/workspace:z \
|
||||||
--workdir /workspace \
|
--workdir /workspace \
|
||||||
yoheimuta/protolint lint \
|
yoheimuta/protolint lint \
|
||||||
$$(find . -type f -iname "*.proto")
|
$$(find . -type f -iname "*.proto")
|
||||||
|
@ -10,9 +10,9 @@ option go_package = "git.badhouseplants.net/softplayer/softplayer-go-proto/pkg/a
|
|||||||
service Accounts {
|
service Accounts {
|
||||||
rpc SignUp (AccountWithPassword) returns (AccountFullWithToken) {}
|
rpc SignUp (AccountWithPassword) returns (AccountFullWithToken) {}
|
||||||
rpc SignIn (AccountWithPassword) returns (AccountFullWithToken) {}
|
rpc SignIn (AccountWithPassword) returns (AccountFullWithToken) {}
|
||||||
rpc ValidateEmail(AccountDataWithEmailCode) returns (google.protobuf.Empty) {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a environment UUID only
|
* Represents a environment UUID only
|
||||||
*/
|
*/
|
||||||
@ -46,7 +46,3 @@ message AccountFullWithToken {
|
|||||||
string token = 3;
|
string token = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AccountDataWithEmailCode {
|
|
||||||
AccountData data = 1;
|
|
||||||
int32 code = 2;
|
|
||||||
}
|
|
||||||
|
23
proto/email/email_v1.proto
Normal file
23
proto/email/email_v1.proto
Normal 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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user