12345678910111213141516171819202122 |
- package signature_request
- import (
- "encoding/json"
- "testing"
- )
- func TestDingTalkAlert(t *testing.T) {
- var msg DingTalkTextAlert
- msg.MsgType = "text"
- msg.Text.Content = "测试"
- js, _ := json.Marshal(msg)
- alert := DingTalkAlert(
- "xxx",
- "xxx",
- js,
- )
- t.Log(alert)
- }
|