types.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. }
  26. type ContactFieldTemplate struct {
  27. Type *string `json:"type,omitempty"`
  28. Id *string `json:"id,omitempty"`
  29. Label *string `json:"label,omitempty"`
  30. Options []ContactFieldTemplateOptions `json:"options,omitempty"`
  31. Value []string `json:"value,omitempty"`
  32. }
  33. type ContactFieldTemplateOptions struct {
  34. Label *string `json:"type,omitempty"`
  35. Value *string `json:"value,omitempty"`
  36. }