From 7c835446c34639bda8dd4344a71eda32f7e72cd4 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Mon, 25 Nov 2024 16:07:13 +0800 Subject: [PATCH] z --- openapi/components/subject_v0.yaml | 4 ---- web/res/subject.go | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) 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),