This commit is contained in:
2021-12-22 19:09:04 +08:00
parent 0ac81a4405
commit 4e0cb3c02c
9 changed files with 126 additions and 72 deletions

View File

@@ -13,21 +13,8 @@
package msg
import (
xml2 "encoding/xml"
"fmt"
"testing"
"time"
)
func Test_Post(t *testing.T) {
wMsg := &xml{
ToUserName: "rMsg.FromUserName",
FromUserName: "rMsg.ToUserName",
CreateTime: int(time.Now().Unix()),
MsgType: "text",
Content: "收到,谢谢!",
}
bty, _ := xml2.Marshal(wMsg)
fmt.Println(string(bty))
}