|
|
|
@@ -188,6 +188,21 @@ func musicMsgTemplate() string { |
|
|
|
</xml>` |
|
|
|
} |
|
|
|
|
|
|
|
func buildSampleArticleMsg(ToUserName string) (msg string) { |
|
|
|
art := Article{} |
|
|
|
art.title = "bcti" |
|
|
|
art.description = "f;alsfjl;dsajfls;ajfl;sajl;fjdsal;fsdla;\nfjsdal;fjasd;lfdas;\n" |
|
|
|
art.picURL = "http://placehold.it/360x200" |
|
|
|
art.url = "http://doc.biukop.com.au/" |
|
|
|
|
|
|
|
articles := []Article{} |
|
|
|
articles = append(articles, art) |
|
|
|
articles = append(articles, art) |
|
|
|
articles = append(articles, art) |
|
|
|
msg = buildNewsMsg(ToUserName, "标题", "描述", articles) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
func buildNewsMsg(ToUserName, title, description string, articles []Article) (msg string) { |
|
|
|
count := 0 |
|
|
|
items := []string{} |