feat(editor): update

This commit is contained in:
2025-12-31 14:50:18 +08:00
parent 20e1a2fa19
commit 984770c6a1
14 changed files with 303 additions and 117 deletions

View File

@@ -39,6 +39,28 @@ type ContentUpdateForm struct {
MediaIDs []string `json:"media_ids"`
}
type ContentEditDTO struct {
ID string `json:"id"`
Title string `json:"title"`
Genre string `json:"genre"`
Description string `json:"description"`
Status string `json:"status"`
Price float64 `json:"price"`
EnableTrial bool `json:"enable_trial"`
PreviewSeconds int `json:"preview_seconds"`
Assets []AssetDTO `json:"assets"`
}
type AssetDTO struct {
ID string `json:"id"`
Role string `json:"role"`
Type string `json:"type"`
URL string `json:"url"`
Name string `json:"name"`
Size string `json:"size"`
Sort int `json:"sort"`
}
type CreatorContentListFilter struct {
requests.Pagination
Status *string `query:"status"`