From 7d11c23eba336f9aecec172769b8fa9e9267fcde Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 17 Jan 2025 09:51:50 +0100 Subject: [PATCH] inspect search bug --- models/resources/data.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/models/resources/data.go b/models/resources/data.go index 0cc479a..f392537 100644 --- a/models/resources/data.go +++ b/models/resources/data.go @@ -24,15 +24,15 @@ const ( */ type DataResource struct { AbstractIntanciatedResource[*ResourceInstance[*DataResourcePartnership]] - Type string `bson:"type,omitempty" json:"type,omitempty"` - Source string `json:"source,omitempty" bson:"source,omitempty"` // Source is the source of the resource - Quality string `bson:"quality,omitempty" json:"quality,omitempty"` - OpenData bool `bson:"open_data" json:"open_data" default:"false"` // Type is the type of the storage - Static bool `bson:"static" json:"static" default:"false"` - UpdatePeriod time.Time `bson:"update_period,omitempty" json:"update_period,omitempty"` - PersonalData bool `bson:"personal_data,omitempty" json:"personal_data,omitempty"` - AnonymizedPersonalData bool `bson:"anonymized_personal_data,omitempty" json:"anonymized_personal_data,omitempty"` - SizeGB float64 `json:"size,omitempty" bson:"size,omitempty"` // SizeGB is the size of the data License DataLicense `json:"license" bson:"license" description:"license of the data" default:"0"` // License is the license of the data + Type string `bson:"type,omitempty" json:"type,omitempty"` + Source string `json:"source,omitempty" bson:"source,omitempty"` // Source is the source of the resource + Quality string `bson:"quality,omitempty" json:"quality,omitempty"` + OpenData bool `bson:"open_data" json:"open_data" default:"false"` // Type is the type of the storage + Static bool `bson:"static" json:"static" default:"false"` + UpdatePeriod *time.Time `bson:"update_period,omitempty" json:"update_period,omitempty"` + PersonalData bool `bson:"personal_data,omitempty" json:"personal_data,omitempty"` + AnonymizedPersonalData bool `bson:"anonymized_personal_data,omitempty" json:"anonymized_personal_data,omitempty"` + SizeGB float64 `json:"size,omitempty" bson:"size,omitempty"` // SizeGB is the size of the data License DataLicense `json:"license" bson:"license" description:"license of the data" default:"0"` // License is the license of the data // ? Interest DataLicense `json:"interest" bson:"interest" description:"interest of the data" default:"0"` // Interest is the interest of the data Example string `json:"example,omitempty" bson:"example,omitempty" description:"base64 encoded data"` // Example is an example of the data }