Files
ai-agent/internal/pkg/dto/response/message_response.go
T

28 lines
1.5 KiB
Go
Raw Normal View History

2026-04-09 10:01:23 +08:00
package response
import "code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
2026-04-09 10:01:23 +08:00
type MessageResponse struct {
ID int64 `json:"id"`
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"`
Content string `json:"content"`
Payload string `json:"payload,omitempty"`
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
}