feat: Phase 1 — 项目骨架搭建,集成 Gin、SQLite 和设置页面

This commit is contained in:
2026-06-18 22:48:16 +08:00
parent 46f1bbf0f1
commit 1e9b1a2129
26 changed files with 2518 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package models
import "time"
type Analysis struct {
ID int64 `json:"id"`
RepoID int64 `json:"repo_id"`
Type string `json:"type"` // "pr_description" | "code_review"
BaseRef string `json:"base_ref"`
HeadRef string `json:"head_ref"`
Result string `json:"result"`
CreatedAt time.Time `json:"created_at"`
}
type ReviewNote struct {
ID int64 `json:"id"`
AnalysisID int64 `json:"analysis_id"`
Scope string `json:"scope"` // "overall" | "file" | "suggestion"
ScopeKey string `json:"scope_key"` // empty for overall, filename for file, suggestion ID for suggestion
Content string `json:"content"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}