package smsplat import ( "git.wenlab.co/joe/kettle/sms" ) type disableSms struct{} func NewDisableSms() sms.ISms { return &disableSms{} } func (self *disableSms) Send(phone, msg string) error { return nil } func (self *disableSms) SendTpl(phone, tpl string, params []byte) error { return nil } func (self *disableSms) GetBalance() (float64, error) { return 0.0, nil } func (self *disableSms) GetAvailable() (int64, error) { return 0, nil } func (self *disableSms) Name() string { return "disableSms" }