narasiahli-be/app/module/chat_history/response/chat_history.response.go

40 lines
1.2 KiB
Go
Raw Normal View History

2025-09-19 07:40:54 +00:00
package response
import (
"time"
)
// Chat History Sessions Response DTOs
type ChatHistorySessionsResponse struct {
ID uint `json:"id"`
SessionID string `json:"session_id"`
UserID uint `json:"user_id"`
AgentID string `json:"agent_id"`
Title string `json:"title"`
MessageCount int `json:"message_count"`
Status string `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
// Chat History Messages Response DTOs
type ChatHistoryMessagesResponse struct {
ID uint `json:"id"`
SessionID string `json:"session_id"`
MessageType string `json:"message_type"`
Content string `json:"content"`
CreatedAt time.Time `json:"created_at"`
}
// Combined Response for Session with Messages
type ChatHistorySessionWithMessagesResponse struct {
Session ChatHistorySessionsResponse `json:"session"`
Messages []ChatHistoryMessagesResponse `json:"messages"`
}
// Chat History List Response
type ChatHistoryListResponse struct {
Sessions []ChatHistorySessionsResponse `json:"sessions"`
Total int `json:"total"`
}