syntax = "proto3";


package sendOtp;
option go_package = "contract/goprotobuf/account";

message LoginOrRegisterRequest{
  string phoneNumber = 1;
  string verifyCode = 2;
}

message LoginOrRegisterResponse {
  uint64 id = 1;
  string phoneNumber = 2;
}


message SendOtpRequest {
  string phoneNumber = 1;
}

message SendOtpResponse {}

service AccountService {
  rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
  rpc LoginOrRegister(LoginOrRegisterRequest) returns(LoginOrRegisterResponse);
}

