text.go 231 B

1234567891011121314
  1. package message
  2. //Text 文本消息
  3. type Text struct {
  4. CommonToken
  5. Content string `xml:"Content"`
  6. }
  7. //NewText 初始化文本消息
  8. func NewText(content string) *Text {
  9. text := new(Text)
  10. text.Content = content
  11. return text
  12. }