types.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package custom_types
  2. type Condition struct {
  3. Equal int `json:"equal"`
  4. LabelIdList []uint64 `json:"labelIdList"`
  5. }
  6. type Action struct {
  7. Type int `json:"type"`
  8. Content string `json:"content"`
  9. Meta *Meta `json:"meta,omitempty"`
  10. }
  11. type Meta struct {
  12. Filename string `json:"filename,omitempty"`
  13. }
  14. type ActionForward struct {
  15. Wxid string `json:"wxid"`
  16. Action []Action `json:"action"`
  17. }
  18. type LabelDist struct {
  19. LabelID uint64 `json:"label_id"`
  20. Count uint64 `json:"count"`
  21. }
  22. type OriginalData struct {
  23. Request interface{} `json:"request"`
  24. Response interface{} `json:"response"`
  25. VResponse *VResponse `json:"vResponse"`
  26. }
  27. type ContactFieldTemplate struct {
  28. Type *string `json:"type,omitempty"`
  29. Id *string `json:"id,omitempty"`
  30. Label *string `json:"label,omitempty"`
  31. Options []ContactFieldTemplateOptions `json:"options,omitempty"`
  32. Value []string `json:"value,omitempty"`
  33. }
  34. type ContactFieldTemplateOptions struct {
  35. Label *string `json:"type,omitempty"`
  36. Value *string `json:"value,omitempty"`
  37. }
  38. type VResponse struct {
  39. ID string `json:"id"`
  40. Model string `json:"model"`
  41. ResponseData []VResponseData `json:"responseData"`
  42. }
  43. type VResponseData struct {
  44. ID string `json:"id"`
  45. Model string `json:"model,omitempty"`
  46. }