2024-07-04 16:08:59 +02:00
|
|
|
package oclib
|
2024-07-11 16:00:51 +02:00
|
|
|
|
|
|
|
type Data struct {
|
2024-07-16 10:56:36 +02:00
|
|
|
AbstractResource
|
|
|
|
|
|
|
|
Protocols []string `json:"protocol"` //TODO Enum type
|
|
|
|
DataType string `json:"datatype"`
|
|
|
|
Example string `json:"example" required:"true" validate:"required" description:"base64 encoded data"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (d *Data) GetType() ResourceType{
|
|
|
|
return DATA
|
2024-07-11 16:00:51 +02:00
|
|
|
}
|
2024-07-16 10:56:36 +02:00
|
|
|
|