forked from ebhomengo/niki
1
0
Fork 0
niki/service/notification/service.go

16 lines
233 B
Go

package notification
type SmsAdapter interface {
Send(phoneNumber string, message string)
}
type Service struct {
smsAdapter SmsAdapter
}
func New(smsAdapter SmsAdapter) Service {
return Service{
smsAdapter: smsAdapter,
}
}