mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
27 lines
563 B
Protocol Buffer
27 lines
563 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package sms;
|
|
|
|
option go_package = "./proto;sms";
|
|
|
|
service Sms {
|
|
rpc Send(SendRequest) returns (SendResponse) {}
|
|
}
|
|
|
|
// Send an SMS.
|
|
message SendRequest {
|
|
// who is the message from? The message will be suffixed with "Sent from <from>"
|
|
string from = 1;
|
|
// the destination phone number including the international dialling code (e.g. +44)
|
|
string to = 2;
|
|
// the main body of the message to send
|
|
string message = 3;
|
|
}
|
|
|
|
message SendResponse {
|
|
// will return "ok" if successful
|
|
string status = 1;
|
|
// any additional info
|
|
string info = 2;
|
|
}
|