wxmsg.go 432 B

1234567891011121314151617
  1. package http
  2. type WxMessage struct {
  3. XMLName string `xml:"xml"`
  4. Text string `xml:"chardata"`
  5. ToUserName string `xml:"ToUserName"`
  6. FromUserName string `xml:"FromUserName"`
  7. CreateTime string `xml:"CreateTime"`
  8. MsgType string `xml:"MsgType"`
  9. Event string `xml:"Event"`
  10. EventKey string `xml:"EventKey"`
  11. Ticket string `xml:"Ticket"`
  12. }
  13. func (p WxMessage) Validate() error {
  14. return nil
  15. }