syntax = "proto3";
package notification;

service NotificationService {
  rpc SendEmailVerificationCode (EmailVerificationCodeRequest) returns (NotificationResultResponse);
  rpc SendPhoneVerificationCode (PhoneVerificationCodeRequest) returns (NotificationResultResponse);
}

message EmailVerificationCodeRequest {
  string email = 1;
  string code = 2;
  bool is_auth = 3;
}

message PhoneVerificationCodeRequest {
  string phone = 1;
  string code = 2;
  bool is_auth = 3;
}

message NotificationResultResponse {
  bool success = 1;
  string message = 2;
}
