Sms audit (#186)

This commit is contained in:
Dominic Wong
2021-08-11 17:04:02 +01:00
committed by GitHub
parent 0f367123ca
commit b254b65549
5 changed files with 52 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.6
// protoc v3.15.5
// source: proto/sms.proto
package sms
@@ -20,17 +20,17 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Send an SMS. Include international dialing code in the number
// Send an SMS.
type SendRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// who is the message from?
// who is the message from? The message will be suffixed with "Sent from <from>"
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
// number of the person it's to
// the destination phone number including the international dialling code (e.g. +44)
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
// the message to send
// the main body of the message to send
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}
@@ -92,7 +92,7 @@ type SendResponse struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// will return "ok" if sent and "failed" if there was a problem
// will return "ok" if successful
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// any additional info
Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`