feat: add posts
This commit is contained in:
18
backend/database/fields/medias.go
Normal file
18
backend/database/fields/medias.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package fields
|
||||
|
||||
type MediaAsset struct {
|
||||
Type MediaAssetType `json:"type"`
|
||||
Hash string `json:"hash"`
|
||||
}
|
||||
|
||||
// swagger:enum MediaAssetType
|
||||
// ENUM(
|
||||
// Unknown = "unknown",
|
||||
// Poster = "poster",
|
||||
// Image = "image",
|
||||
// Video = "video",
|
||||
// Audio = "audio",
|
||||
// Document = "document",
|
||||
// Other = "other"
|
||||
// )
|
||||
type MediaAssetType string
|
||||
Reference in New Issue
Block a user