First batch

This commit is contained in:
pb
2024-07-16 10:56:36 +02:00
parent 5ba33d3131
commit 034a81cedb
19 changed files with 540 additions and 30 deletions

13
data.go
View File

@@ -1,5 +1,16 @@
package oclib
type Data struct {
Resource
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
}