feat: updated grpc for dependencies service

This commit is contained in:
Marvin Zhang
2024-06-15 23:25:24 +08:00
parent 50d5185540
commit 35bc3a5230
13 changed files with 372 additions and 588 deletions

14
core/entity/dependency.go Normal file
View File

@@ -0,0 +1,14 @@
package entity
import "go.mongodb.org/mongo-driver/bson/primitive"
type DependencyResult struct {
Name string `json:"name,omitempty" bson:"name,omitempty"`
NodeIds []primitive.ObjectID `json:"node_ids,omitempty" bson:"node_ids,omitempty"`
Versions []string `json:"versions,omitempty" bson:"versions,omitempty"`
LatestVersion string `json:"latest_version" bson:"latest_version"`
Count int `json:"count,omitempty" bson:"count,omitempty"`
Upgradable bool `json:"upgradable" bson:"upgradable"`
Downgradable bool `json:"downgradable" bson:"downgradable"`
Installable bool `json:"installable" bson:"installable"`
}