model.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package chatbot
  2. /**
  3. * @Author linya.jj
  4. * @Date 2023/3/22 18:30
  5. */
  6. type BotCallbackDataAtUserModel struct {
  7. DingtalkId string `json:"dingtalkId"`
  8. StaffId string `json:"staffId"`
  9. }
  10. type BotCallbackDataTextModel struct {
  11. Content string `json:"content"`
  12. }
  13. type BotCallbackDataModel struct {
  14. ConversationId string `json:"conversationId"`
  15. AtUsers []BotCallbackDataAtUserModel `json:"atUsers"`
  16. ChatbotCorpId string `json:"chatbotCorpId"`
  17. ChatbotUserId string `json:"chatbotUserId"`
  18. MsgId string `json:"msgId"`
  19. SenderNick string `json:"senderNick"`
  20. IsAdmin bool `json:"isAdmin"`
  21. SenderStaffId string `json:"senderStaffId"`
  22. SessionWebhookExpiredTime int64 `json:"sessionWebhookExpiredTime"`
  23. CreateAt int64 `json:"createAt"`
  24. SenderCorpId string `json:"senderCorpId"`
  25. ConversationType string `json:"conversationType"`
  26. SenderId string `json:"senderId"`
  27. ConversationTitle string `json:"conversationTitle"`
  28. IsInAtList bool `json:"isInAtList"`
  29. SessionWebhook string `json:"sessionWebhook"`
  30. Text BotCallbackDataTextModel `json:"text"`
  31. Msgtype string `json:"msgtype"`
  32. Content interface{} `json:"content"`
  33. }