diff --git a/openapi/components/subject_v0.yaml b/openapi/components/subject_v0.yaml index 9ef2e9e4..d6ce9392 100644 --- a/openapi/components/subject_v0.yaml +++ b/openapi/components/subject_v0.yaml @@ -54,10 +54,6 @@ properties: title: Platform type: string description: TV, Web, 欧美剧, DLC... - image: - title: Image - type: string - description: large image url images: $ref: "./subject_image.yaml" infobox: diff --git a/web/res/subject.go b/web/res/subject.go index c6bc296f..c7bf3ab0 100644 --- a/web/res/subject.go +++ b/web/res/subject.go @@ -45,7 +45,6 @@ type SubjectV0 struct { Date *string `json:"date"` Platform *string `json:"platform"` Images SubjectImages `json:"images"` - Image *string `json:"image"` Summary string `json:"summary"` Name string `json:"name"` NameCN string `json:"name_cn"` @@ -125,12 +124,10 @@ func PlatformString(s model.Subject) *string { } func ToSubjectV0(s model.Subject, totalEpisode int64, metaTags []tag.Tag) SubjectV0 { - images := SubjectImage(s.Image) return SubjectV0{ TotalEpisodes: totalEpisode, ID: s.ID, - Image: &images.Large, - Images: images, + Images: SubjectImage(s.Image), Summary: s.Summary, Name: s.Name, Platform: PlatformString(s),