responses.go 576 B

1234567891011121314151617181920212223242526272829303132
  1. package types
  2. type Option struct {
  3. Text string `json:"text"`
  4. Value string `json:"value"`
  5. }
  6. type Context struct {
  7. Action string `json:"action"`
  8. }
  9. type Integration struct {
  10. Url string `json:"url"`
  11. Context Context `json:"context"`
  12. }
  13. type Action struct {
  14. Name string `json:"name"`
  15. Integration Integration `json:"integration"`
  16. Type string `json:"type"`
  17. Options []Option `json:"options"`
  18. }
  19. type Attachment struct {
  20. Actions []Action `json:"actions"`
  21. }
  22. type OptAttachments struct {
  23. Attachments []Attachment `json:"attachments"`
  24. }