forked from ebhomengo/niki
16 lines
233 B
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,
|
||
|
}
|
||
|
}
|