- 回收 SQL 占位符改为 $1/$2,消除 pgx 扩展协议 42P18(手动/定时对账 500) - 直接写入 finding 时归一空 confirmation_state,避免 23514 - 修正 R6/overview 同谓词用例夹具,两条台账各自持有 source version - 页面顶部统一服务与队列单行状态条,删除 Embedding/LLM 常量卡 - 平台阶段筛选合并为「WeKnora 处理中」,后端支持 stage=weknora - weknora_url 由测试 WeKnora 源构造,详情与 503 提供跳转链接 - 补 1000/页线上查询、R8 合法收养、weknora 阶段筛选用例
This commit is contained in:
@@ -72,6 +72,9 @@ type Config struct {
|
||||
ConfirmConcurrency int
|
||||
KeepRuns int
|
||||
MaxAge time.Duration
|
||||
// WeKnoraWebBase resolves the WeKnora origin used to build the finding's
|
||||
// jump link. Empty or nil leaves weknora_url empty, which the contract allows.
|
||||
WeKnoraWebBase func(context.Context) string
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
@@ -86,6 +89,7 @@ type Service struct {
|
||||
confirmConcurrency int
|
||||
keepRuns int
|
||||
maxAge time.Duration
|
||||
weKnoraWebBase func(context.Context) string
|
||||
}
|
||||
|
||||
func New(config Config) (*Service, error) {
|
||||
@@ -120,6 +124,7 @@ func New(config Config) (*Service, error) {
|
||||
store: config.Store, remote: config.Remote, runtime: config.Runtime, queue: config.Queue,
|
||||
now: config.Now, grace: config.Grace, stallAfter: config.StallAfter, staleAfter: config.StaleAfter,
|
||||
confirmConcurrency: config.ConfirmConcurrency, keepRuns: config.KeepRuns, maxAge: config.MaxAge,
|
||||
weKnoraWebBase: config.WeKnoraWebBase,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user