syntax = "proto3"; package notification; option go_package="./notification"; // OKResp message OKResp {} // NoneReq message NoneReq {} message SendMailReq { string to = 1; string subject = 2; string body = 3; string from =4; } message SendSMSReq { string to = 1; string body = 2; string recipient_name=3; } message TemplateReq { string language = 1; string template_id = 2; } message TemplateResp { string title = 1; string body = 2; } service SenderService { // SendMail 寄信 rpc SendMail(SendMailReq) returns(OKResp); // SendSms 寄簡訊 rpc SendSms(SendSMSReq) returns(OKResp); // 取得 Template rpc GetStaticTemplate(TemplateReq) returns(TemplateResp); }