mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-22 14:55:16 +00:00
M3O SDK Concept
This commit is contained in:
22
examples/otp/proto/otp.proto
Normal file
22
examples/otp/proto/otp.proto
Normal file
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package example.otp;
|
||||
option go_package = "github.com/m3o/m3o-go-examples/otp/proto;otp";
|
||||
|
||||
service OTP {
|
||||
rpc Send(SendRequest) returns (SendResponse);
|
||||
rpc Verify(VerifyRequest) returns (VerifyResponse);
|
||||
}
|
||||
|
||||
message SendRequest {
|
||||
string phone_number = 1;
|
||||
}
|
||||
|
||||
message SendResponse {}
|
||||
|
||||
message VerifyRequest {
|
||||
string phone_number = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
message VerifyResponse {}
|
||||
Reference in New Issue
Block a user