mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
19 lines
497 B
Go
19 lines
497 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"`
|
|
}
|
|
|
|
// NewItem item contructor
|
|
func NewItem() *Item {
|
|
return &Item{
|
|
Data: map[string]interface{}{},
|
|
}
|
|
}
|