This commit is contained in:
Hua
2025-02-18 16:53:34 +08:00
parent 8b4b4b4181
commit 5cfdc92556
21 changed files with 3139 additions and 0 deletions

24
services/types/review.go Normal file
View File

@ -0,0 +1,24 @@
package types
// ReviewResult 代表代码审查结果
type ReviewResult struct {
Comments []Comment
Summary string
}
// Comment 代表代码审查评论
type Comment struct {
Path string
Line int
Content string
Severity Severity
}
// Severity 代表问题严重程度
type Severity string
const (
Error Severity = "error"
Warning Severity = "warning"
Info Severity = "info"
)