disable_sms.go 517 B

12345678910111213141516171819202122232425262728293031
  1. package smsplat
  2. import (
  3. "git.wenlab.co/joe/kettle/sms"
  4. )
  5. type disableSms struct{}
  6. func NewDisableSms() sms.ISms {
  7. return &disableSms{}
  8. }
  9. func (self *disableSms) Send(phone, msg string) error {
  10. return nil
  11. }
  12. func (self *disableSms) SendTpl(phone, tpl string, params []byte) error {
  13. return nil
  14. }
  15. func (self *disableSms) GetBalance() (float64, error) {
  16. return 0.0, nil
  17. }
  18. func (self *disableSms) GetAvailable() (int64, error) {
  19. return 0, nil
  20. }
  21. func (self *disableSms) Name() string {
  22. return "disableSms"
  23. }