feat: implement chat and conversation history management with database schema and API endpoints
All checks were successful
Build and Release / release (push) Successful in 1m30s
All checks were successful
Build and Release / release (push) Successful in 1m30s
This commit is contained in:
18
internal/dtos/response/chatbot.go
Normal file
18
internal/dtos/response/chatbot.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type ChatbotHistoryDto struct {
|
||||
ID string `json:"id"`
|
||||
UserID string `json:"user_id"`
|
||||
Question string `json:"question"`
|
||||
Answer string `json:"answer"`
|
||||
CreatedAt *time.Time `json:"created_at,omitempty"`
|
||||
}
|
||||
|
||||
type GetChatbotHistoryResponse struct {
|
||||
Items []*ChatbotHistoryDto `json:"items"`
|
||||
PreCursor string `json:"pre_cursor,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user