mirror of
https://github.com/Estom/notes.git
synced 2026-02-06 12:04:05 +08:00
28 lines
527 B
Go
28 lines
527 B
Go
/**
|
|
* @Author:zhoutao
|
|
* @Date:2020/12/12 上午9:32
|
|
* @Desc:
|
|
*/
|
|
|
|
package bridging
|
|
|
|
func ExampleCommonSMS() {
|
|
m := NewCommonMessage(ViaSMS())
|
|
m.SendMessage("sending by sms:have a drink", "boo")
|
|
}
|
|
|
|
func ExampleCommonEmail() {
|
|
m := NewCommonMessage(ViaEmail())
|
|
m.SendMessage("sending by email:have a drink", "boo")
|
|
}
|
|
|
|
func ExampleUrgencySMS() {
|
|
m := NewUrgencyMessage(ViaSMS())
|
|
m.SendMessage("have a drink", "boo")
|
|
}
|
|
|
|
func ExampleUrgencyEmail() {
|
|
m := NewUrgencyMessage(ViaEmail())
|
|
m.SendMessage("have a drink", "boo")
|
|
}
|