From fd5fe6865ad2d22651f963e8a79bbac7859a5bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flc=E3=82=9B?= Date: Mon, 15 Jan 2024 18:54:34 +0800 Subject: [PATCH] fix(sms): Renamed `gw` (#70) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Flcă‚› --- x/sms/sms.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x/sms/sms.go b/x/sms/sms.go index b3e2006..3f6b5b7 100644 --- a/x/sms/sms.go +++ b/x/sms/sms.go @@ -27,15 +27,15 @@ type Message struct { } type Sms struct { - gw Provider + provider Provider } -func New(gw Provider) *Sms { +func New(provider Provider) *Sms { return &Sms{ - gw: gw, + provider: provider, } } func (s *Sms) Send(ctx context.Context, message *Message) error { - return s.gw.Send(ctx, message) + return s.provider.Send(ctx, message) }