app-cloudep-notification-se.../generate/protobuf/service.proto

45 lines
797 B
Protocol Buffer
Raw Normal View History

2024-08-20 06:35:14 +00:00
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;
}
message SendSMSReq {
string to = 1;
string body = 2;
}
message SendByTemplateIDReq {
string to = 1;
string template_id =2;
string lang=3;
map<string, string> content_data = 4;
}
service SenderService {
// SendMail 寄信
rpc SendMail(SendMailReq) returns(OKResp);
// SendSMS 寄簡訊
rpc SendSms(SendSMSReq) returns(OKResp);
// SendMailByTemplateID 寄送模板信件
rpc SendMailByTemplateId(SendByTemplateIDReq) returns(OKResp);
// SendSMSByTemplateID 寄送模板簡訊
rpc SendSmsByTemplateId(SendByTemplateIDReq) returns(OKResp);
}