30 lines
799 B
Go
30 lines
799 B
Go
package medias
|
|
|
|
import (
|
|
"time"
|
|
|
|
"backend/pkg/db"
|
|
"backend/pkg/pg"
|
|
)
|
|
|
|
type ListFilter struct {
|
|
db.Pagination
|
|
Title *string `json:"title,omitempty"`
|
|
Bought *bool `json:"bought,omitempty"`
|
|
}
|
|
|
|
type ListItem struct {
|
|
ID int64 `json:"-"`
|
|
Poster string `json:"poster"`
|
|
Hash string `json:"hash"`
|
|
Title string `json:"title"`
|
|
Description string `json:"description"`
|
|
Duration int64 `json:"duration"`
|
|
Price int64 `json:"price"`
|
|
Discount int64 `json:"discount"`
|
|
Resources pg.MediaResources `json:"resources"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
Bought bool `json:"bought"`
|
|
}
|