From 34455dc47cdc5b874ad10e0d518d7080e16a2668 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Mon, 23 Dec 2024 15:18:04 +0800 Subject: [PATCH] feat: enhance DependencyConfig model with additional fields - Added TotalDependencies and SearchReady fields to the DependencyConfig struct for improved dependency management. - Retained the Setup field for backward compatibility while ensuring proper JSON and BSON handling. --- core/models/models/dependency_config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/models/models/dependency_config.go b/core/models/models/dependency_config.go index 2bd94bd1..e543c5c8 100644 --- a/core/models/models/dependency_config.go +++ b/core/models/models/dependency_config.go @@ -8,6 +8,8 @@ type DependencyConfig struct { ExecCmd string `json:"exec_cmd" bson:"exec_cmd"` PkgCmd string `json:"pkg_cmd" bson:"pkg_cmd"` Proxy string `json:"proxy" bson:"proxy"` - Setup bool `json:"setup" bson:"-"` DefaultVersion string `json:"default_version" bson:"default_version"` + Setup bool `json:"setup" bson:"-"` + TotalDependencies int `json:"total_dependencies" bson:"-"` + SearchReady bool `json:"search_ready" bson:"-"` }