Initial commit
This commit is contained in:
commit
9e0dccfd01
5 files changed
+33
No files matched your search
@@ -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