feat: add Gin HTTP API with SSE streaming chat

This commit is contained in:
2026-05-05 11:37:19 +08:00
parent a25de092b1
commit 6bbe013170
8 changed files with 377 additions and 10 deletions
+19
View File
@@ -0,0 +1,19 @@
package api
type ChatRequest struct {
Message string `json:"message" binding:"required"`
}
type NoteRequest struct {
Title string `json:"title" binding:"required"`
Content string `json:"content" binding:"required"`
Tags []string `json:"tags"`
}
type NoteResponse struct {
ID string `json:"id"`
Title string `json:"title"`
Content string `json:"content"`
Tags []string `json:"tags"`
CreatedAt string `json:"created_at"`
}