mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: updated grpc proto
This commit is contained in:
10
core/models/models/dependency_log_v2.go
Normal file
10
core/models/models/dependency_log_v2.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
type DependencyLogV2 struct {
|
||||
any `collection:"dependency_logs"`
|
||||
BaseModelV2[DependencyLogV2] `bson:",inline"`
|
||||
TaskId primitive.ObjectID `json:"task_id" bson:"task_id"`
|
||||
Content string `json:"content" bson:"content"`
|
||||
}
|
||||
15
core/models/models/dependency_task_v2.go
Normal file
15
core/models/models/dependency_task_v2.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
type DependencyTaskV2 struct {
|
||||
any `collection:"dependency_tasks"`
|
||||
BaseModelV2[DependencyTaskV2] `bson:",inline"`
|
||||
Status string `json:"status" bson:"status"`
|
||||
Error string `json:"error" bson:"error"`
|
||||
SettingId primitive.ObjectID `json:"setting_id" bson:"setting_id"`
|
||||
Type string `json:"type" bson:"type"`
|
||||
NodeId primitive.ObjectID `json:"node_id" bson:"node_id"`
|
||||
Action string `json:"action" bson:"action"`
|
||||
DepNames []string `json:"dep_names" bson:"dep_names"`
|
||||
}
|
||||
14
core/models/models/dependency_v2.go
Normal file
14
core/models/models/dependency_v2.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
type DependencyV2 struct {
|
||||
any `collection:"dependencies"`
|
||||
BaseModelV2[DependencyV2] `bson:",inline"`
|
||||
Name string `json:"name" bson:"name"`
|
||||
Description string `json:"description" bson:"description"`
|
||||
NodeId primitive.ObjectID `json:"node_id" bson:"node_id"`
|
||||
Type string `json:"type" bson:"type"`
|
||||
LatestVersion string `json:"latest_version" bson:"latest_version"`
|
||||
Version string `json:"version" bson:"version"`
|
||||
}
|
||||
Reference in New Issue
Block a user