You've already forked agentic-coding-workflow
style(project): silence remaining lint findings (stutter, max shadow, gosec)
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
// 字符串常量保持与 DB CHECK 约束一致。
|
||||
type Phase string
|
||||
|
||||
// 五阶段枚举值,与 migrations/0002 的 CHECK 约束完全一致。
|
||||
const (
|
||||
PhasePlanning Phase = "planning"
|
||||
PhaseAuditing Phase = "auditing"
|
||||
@@ -41,6 +42,7 @@ func (p Phase) IsValid() bool {
|
||||
// Status 是 Requirement / Issue 通用的开/关状态。
|
||||
type Status string
|
||||
|
||||
// 开/关状态枚举值,与 DB CHECK 约束一致。
|
||||
const (
|
||||
StatusOpen Status = "open"
|
||||
StatusClosed Status = "closed"
|
||||
@@ -50,6 +52,7 @@ const (
|
||||
// internal 所有登录用户可读;写权限两者都仅限 owner+admin。
|
||||
type Visibility string
|
||||
|
||||
// 可见性枚举值,与 DB CHECK 约束一致。
|
||||
const (
|
||||
VisibilityPrivate Visibility = "private"
|
||||
VisibilityInternal Visibility = "internal"
|
||||
@@ -111,7 +114,10 @@ type Caller struct {
|
||||
IsAdmin bool
|
||||
}
|
||||
|
||||
// ProjectService 暴露 Project 聚合根的应用服务方法。
|
||||
// ProjectService 暴露 Project 聚合根的应用服务方法。包内有三个并列服务
|
||||
// (Project/Requirement/Issue),这里保留聚合名前缀以避免歧义。
|
||||
//
|
||||
//nolint:revive // 名字带聚合根前缀比 "Service" 更准确:包里有 3 个并列服务接口
|
||||
type ProjectService interface {
|
||||
Create(ctx context.Context, c Caller, in CreateProjectInput) (*Project, error)
|
||||
Get(ctx context.Context, c Caller, slug string) (*Project, error)
|
||||
|
||||
Reference in New Issue
Block a user