contentful/include.go
2019-05-24 13:57:07 +02:00

27 lines
588 B
Go

package contentful
/* // Include model
type Include struct {
Entry []*Entry
Asset []*Asset
} */
//IncludeEntry model
type IncludeEntry struct {
Fields map[string]interface{} `json:"fields,omitempty"`
Sys *Sys `json:"sys"`
}
// IncludeFileFields model
type IncludeFileFields struct {
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
File *File `json:"file,omitempty"`
}
// IncludeAsset model
type IncludeAsset struct {
Fields *IncludeFileFields `json:"fields"`
Sys *Sys `json:"sys"`
}