40 lines
1.2 KiB
Go
40 lines
1.2 KiB
Go
package response
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Chat History Sessions Response DTOs
|
|
type ChatHistorySessionsResponse struct {
|
|
ID uint `json:"id"`
|
|
SessionID string `json:"sessionId"`
|
|
UserID uint `json:"userId"`
|
|
AgentID string `json:"agentId"`
|
|
Title string `json:"title"`
|
|
MessageCount int `json:"messageCount"`
|
|
Status string `json:"status"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// Chat History Messages Response DTOs
|
|
type ChatHistoryMessagesResponse struct {
|
|
ID uint `json:"id"`
|
|
SessionID string `json:"sessionId"`
|
|
MessageType string `json:"messageType"`
|
|
Content string `json:"content"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|