oc-lib/data/data.go
2024-07-17 17:48:20 +02:00

24 lines
451 B
Go

package data
import (
oclib "oc-lib"
)
type Data struct {
oclib.AbstractResource
Protocols []string `json:"protocol,omitempty" bson:"protocol,omitempty"` //TODO Enum type
DataType string `json:"datatype" required:"true" bson:"datatype"`
Example string `json:"example" bson:"example" required:"true" validate:"required" description:"base64 encoded data"`
}
func (d *Data) GetType() oclib.ResourceType{
return oclib.DATA
}