feat: Phase 1 — 项目骨架搭建,集成 Gin、SQLite 和设置页面
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user