mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
22 lines
404 B
Protocol Buffer
22 lines
404 B
Protocol Buffer
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 {} |