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.
This commit is contained in:
Marvin Zhang
2024-12-23 15:18:04 +08:00
parent ed8fb78c3b
commit 34455dc47c

View File

@@ -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:"-"`
}