feat(operations): add auditable source provider maintenance

This commit is contained in:
lingniu
2026-07-16 20:01:08 +08:00
parent c270140006
commit 9a5e6e0c4f
19 changed files with 430 additions and 67 deletions

View File

@@ -1041,6 +1041,7 @@ type VehicleSourceEvidence struct {
type VehicleLocationSourceEvidence struct {
Protocol string `json:"protocol"`
SourceLabel string `json:"sourceLabel"`
ProviderOverride string `json:"providerOverride"`
TerminalLabel string `json:"terminalLabel"`
SourceKind string `json:"sourceKind"`
SourceRef string `json:"sourceRef,omitempty"`
@@ -1048,6 +1049,7 @@ type VehicleLocationSourceEvidence struct {
Recommended bool `json:"recommended"`
Enabled bool `json:"enabled"`
Priority int `json:"priority"`
PolicyRemark string `json:"policyRemark"`
Online bool `json:"online"`
QualityStatus string `json:"qualityStatus"`
QualityReason string `json:"qualityReason"`
@@ -1110,6 +1112,7 @@ type VehicleSourcePolicyConfig struct {
type VehicleSourcePolicyAudit struct {
Version int `json:"version"`
ChangeType string `json:"changeType"`
Protocol string `json:"protocol"`
SourceRef string `json:"sourceRef"`
SourceLabel string `json:"sourceLabel"`
@@ -1119,12 +1122,14 @@ type VehicleSourcePolicyAudit struct {
}
type VehicleSourcePolicyUpdate struct {
Version int `json:"version"`
SourceRef string `json:"sourceRef"`
Enabled bool `json:"enabled"`
Priority int `json:"priority"`
Remark string `json:"remark"`
Actor string `json:"actor"`
Version int `json:"version"`
SourceRef string `json:"sourceRef"`
ProviderName string `json:"providerName"`
ProviderEvidence string `json:"providerEvidence"`
Enabled bool `json:"enabled"`
Priority int `json:"priority"`
Remark string `json:"remark"`
Actor string `json:"actor"`
}
type vehicleSourcePolicyStoreUpdate struct {
@@ -1136,6 +1141,7 @@ type vehicleSourcePolicyStoreUpdate struct {
CurrentEnabled bool
CurrentPriority int
CurrentRemark string
CurrentProvider string
}
type vehicleLocationSourceHistory struct {