adjust model

This commit is contained in:
mr
2024-07-26 15:19:36 +02:00
parent eb1417853a
commit 87b7cda0ce
6 changed files with 43 additions and 39 deletions

View File

@@ -96,6 +96,10 @@ type AbstractResource struct {
Owner string `json:"owner,omitempty" bson:"owner,omitempty" validate:"required"`
OwnerLogo string `json:"owner_logo,omitempty" bson:"owner_logo,omitempty"`
SourceUrl string `json:"source_url,omitempty" bson:"source_url,omitempty" validate:"required"`
Price string `json:"price,omitempty" bson:"price,omitempty"`
License string `json:"license,omitempty" bson:"license,omitempty"`
Inputs []interface{} `json:"inputs,omitempty" bson:"inputs,omitempty"`
Outputs []interface{} `json:"outputs,omitempty" bson:"outputs,omitempty"`
Proxy *ResourceProxy `json:"proxy,omitempty" bson:"proxy,omitempty"`
}
type ResourceProxy struct {