feat: add medias
This commit is contained in:
18
backend/modules/medias/dto.go
Normal file
18
backend/modules/medias/dto.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package medias
|
||||
|
||||
import (
|
||||
"backend/database/models/qvyun/public/model"
|
||||
"backend/pkg/db"
|
||||
)
|
||||
|
||||
type ListFilter struct {
|
||||
db.Pagination
|
||||
Title *string `json:"title"`
|
||||
Bought *bool `json:"bought"`
|
||||
}
|
||||
|
||||
type ListItem struct {
|
||||
model.Medias
|
||||
Bought bool `json:"bought"`
|
||||
MediaResources []model.MediaResources `json:"media_resources"`
|
||||
}
|
||||
Reference in New Issue
Block a user