Skip to content

Commit

Permalink
z
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Nov 25, 2024
1 parent 5c30146 commit 7c83544
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions openapi/components/subject_v0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions web/res/subject.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 7c83544

Please sign in to comment.