mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
20 lines
546 B
Go
20 lines
546 B
Go
package content
|
|
|
|
// Item on a node in a content tree - "payload" of an item
|
|
type Item struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
URI string `json:"URI"`
|
|
MimeType string `json:"mimeType"`
|
|
Hidden bool `json:"hidden,omitempty"`
|
|
Data map[string]interface{} `json:"data"`
|
|
Groups []string `json:"groups"`
|
|
}
|
|
|
|
// NewItem item contructor
|
|
func NewItem() *Item {
|
|
return &Item{
|
|
Data: map[string]interface{}{},
|
|
}
|
|
}
|