54 lines
1.2 KiB
Protocol Buffer
54 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
package emailAlerts;
|
|
//import "descriptor.proto";
|
|
//import "validator.proto";
|
|
|
|
option go_package = "./;emailAlerts";
|
|
|
|
service EmailAlerts{
|
|
rpc EmailAlertsSubmit(EmailAlertsSubmitReq) returns (EmailAlertsSubmitResp);
|
|
//========================= EmailInformatio ==============================
|
|
rpc GetEmailInformationList(GetEmailInformationListReq) returns (GetEmailInformationListResp);
|
|
}
|
|
|
|
message EmailAlertsSubmitReq{
|
|
string firstName = 1;
|
|
string lastName = 2;
|
|
string email = 3;
|
|
string company = 4;
|
|
string phone = 5;
|
|
}
|
|
|
|
message EmailAlertsSubmitResp{
|
|
string msg = 1;
|
|
}
|
|
|
|
//========================= EmailInformatio ==============================
|
|
message Filtrate{
|
|
string name = 1;
|
|
string email = 2;
|
|
string company = 3;
|
|
}
|
|
|
|
message GetEmailInformationListReq{
|
|
int32 page = 1;
|
|
int32 pageSize = 2;
|
|
Filtrate filtrate = 3;
|
|
}
|
|
|
|
message GetEmailInformationListResp{
|
|
string msg = 1;
|
|
int32 page=2;
|
|
int32 pageSize =3;
|
|
int32 total = 4;
|
|
repeated EmailInformation data = 5;
|
|
}
|
|
|
|
message EmailInformation{
|
|
int32 id = 1;
|
|
string fullName = 2;
|
|
string email = 3;
|
|
string company = 4;
|
|
string phone = 5;
|
|
string createdAt = 6;
|
|
} |