No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

61 líneas
850B

  1. //analyze xml message
  2. package main
  3. //all xml message has these headers
  4. type Header struct {
  5. ToUserName string
  6. FromUserName string
  7. CreatTime int64
  8. MsgType string
  9. }
  10. //text message
  11. type TextMsg struct {
  12. Content string
  13. MsgId int64
  14. }
  15. //picture
  16. type PicMsg struct {
  17. PicUrl string
  18. MeidaId string
  19. MsgId int64
  20. }
  21. //voice
  22. type VoiceMsg struct {
  23. MeidaId string
  24. Format string
  25. MsgId int64
  26. }
  27. //video
  28. type VideoMsg struct {
  29. MediaId string
  30. ThumbMediaId string
  31. MsgId int64
  32. }
  33. //short video
  34. type ShortVideo struct {
  35. MeidaId string
  36. ThumbMediaId string
  37. MsgId int64
  38. }
  39. //Location Info
  40. type Location struct {
  41. Location_X float64
  42. Location_Y float64
  43. Scale int
  44. Label string
  45. MsgId int64
  46. }
  47. type LinkMsg struct {
  48. Title string
  49. Description string
  50. Url string
  51. MsgId int64
  52. }