feat: 增加顺运宝批量 AI 规格匹配 (#202)

This commit is contained in:
chengma
2026-08-14 10:30:08 +08:00
parent 0201dab98c
commit d64579e9b3
26 changed files with 1289 additions and 26 deletions
+20
View File
@@ -407,6 +407,26 @@ type AISpecMatchDecision struct {
DecidedBy, DecidedAt string
}
type AIMatchBatch struct {
BatchID, Status, CreatedByUserID string
TotalCount, ProcessedCount, SuccessCount, ReusedCount int
ManualCount, FailedCount int
ProviderID, ProviderName, ProviderBaseURL, Model string
TimeoutSeconds, MaxConcurrency, ConfidenceThresholdBPS int
ConfigFingerprint, RulesVersion, PromptVersion, ErrorMessage string
CreatedAt, StartedAt, FinishedAt string
}
type AIMatchBatchItem struct {
ItemID, BatchID, SybID, IdentityHash, LeaderSybID, ContextVersion string
Position int
Status, Outcome, Message, MappingSource, OptionKey string
ConfidenceBPS int
ConfidenceSet bool
ModelCalled bool
StartedAt, FinishedAt string
}
// ---------- 任务 ----------
// TaskType 区分采集任务和采购任务。