2026-04-09 10:01:23 +08:00
|
|
|
package response
|
|
|
|
|
|
2026-08-21 00:41:07 +08:00
|
|
|
import "code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
|
2026-04-09 10:01:23 +08:00
|
|
|
|
|
|
|
|
type MessageResponse struct {
|
2026-04-17 11:53:25 +08:00
|
|
|
ID int64 `json:"id"`
|
2026-08-28 22:23:13 +08:00
|
|
|
ConversationID int64 `json:"conversation_id"`
|
|
|
|
|
RequestID string `json:"request_id,omitempty"`
|
|
|
|
|
ClientMsgID string `json:"client_msg_id,omitempty"`
|
|
|
|
|
SenderType enums.IMSenderType `json:"sender_type"`
|
|
|
|
|
SenderID int64 `json:"sender_id"`
|
|
|
|
|
SenderName string `json:"sender_name,omitempty"`
|
|
|
|
|
SenderAvatar string `json:"sender_avatar,omitempty"`
|
|
|
|
|
MessageType enums.IMMessageType `json:"message_type"`
|
2026-04-17 11:53:25 +08:00
|
|
|
Content string `json:"content"`
|
|
|
|
|
Payload string `json:"payload,omitempty"`
|
2026-08-28 22:23:13 +08:00
|
|
|
SendStatus enums.IMMessageStatus `json:"send_status"`
|
|
|
|
|
SentAt string `json:"sent_at,omitempty"`
|
|
|
|
|
DeliveredAt string `json:"delivered_at,omitempty"`
|
|
|
|
|
ReadAt string `json:"read_at,omitempty"`
|
|
|
|
|
CustomerRead bool `json:"customer_read"`
|
|
|
|
|
CustomerReadAt string `json:"customer_read_at,omitempty"`
|
|
|
|
|
AgentRead bool `json:"agent_read"`
|
|
|
|
|
AgentReadAt string `json:"agent_read_at,omitempty"`
|
|
|
|
|
RecalledAt string `json:"recalled_at,omitempty"`
|
|
|
|
|
QuotedMessageID int64 `json:"quoted_message_id,omitempty"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|