Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package send
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.kundeng.us/phoenix/textsender-models/pkg/contact"
|
||||
)
|
||||
|
||||
type MessageSender struct {
|
||||
Numbers []contact.Contact
|
||||
}
|
||||
|
||||
|
||||
func (m *MessageSender) Send() error {
|
||||
if len(m.Numbers) == 0 {
|
||||
return fmt.Errorf("No numbers to send")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user