feat: 更新内容创建和更新表单,支持封面ID和媒体ID字段

This commit is contained in:
2025-12-31 17:57:30 +08:00
parent 5ed6262e02
commit f560b95ec0
4 changed files with 59 additions and 65 deletions

View File

@@ -30,6 +30,7 @@ type ContentCreateForm struct {
Genre string `json:"genre"`
Key string `json:"key"`
Price float64 `json:"price"`
CoverIDs []string `json:"cover_ids"`
MediaIDs []string `json:"media_ids"`
}
@@ -38,6 +39,7 @@ type ContentUpdateForm struct {
Genre string `json:"genre"`
Key string `json:"key"`
Price float64 `json:"price"`
CoverIDs []string `json:"cover_ids"`
MediaIDs []string `json:"media_ids"`
}