fix: metadata structs need to inherit BaseMetadata
This commit is contained in:
parent
661e2bb517
commit
2b3a5c98c2
|
@ -1,13 +1,17 @@
|
|||
package metadata
|
||||
|
||||
var (
|
||||
_ Metadata = (*MediaMetadata)(nil)
|
||||
)
|
||||
|
||||
type MediaMetadata struct {
|
||||
Metadata
|
||||
Name string
|
||||
MediaTypes map[string][]MediaFormat
|
||||
Parents []MetadataParentLink
|
||||
Details MediaMetadataDetails
|
||||
Links *MediaMetadataLinks
|
||||
ExtraMetadata ExtraMetadata
|
||||
BaseMetadata
|
||||
}
|
||||
|
||||
func NewMediaMetadata(name string, details MediaMetadataDetails, parents []MetadataParentLink, mediaTypes map[string][]MediaFormat, links *MediaMetadataLinks, extraMetadata ExtraMetadata) *MediaMetadata {
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
package metadata
|
||||
|
||||
var (
|
||||
_ Metadata = (*WebAppMetadata)(nil)
|
||||
)
|
||||
|
||||
type WebAppMetadata struct {
|
||||
Metadata
|
||||
BaseMetadata
|
||||
Name string
|
||||
TryFiles []string
|
||||
ErrorPages map[int]string
|
||||
|
|
Loading…
Reference in New Issue