Skip to content

Commit

Permalink
StampWithThumbnail修正
Browse files Browse the repository at this point in the history
  • Loading branch information
azbcww committed Oct 18, 2023
1 parent 0c87c4a commit 6fde0ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
8 changes: 1 addition & 7 deletions repository/gorm/stamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,7 @@ func (r *stampRepository) StampThumbnailExists(stamps []*model.Stamp) (stampsWit
for _, s := range stamps {
_, ok := tm[s.FileID]
stampsWithThumb = append(stampsWithThumb, repository.StampWithThumbnail{
ID: s.ID,
Name: s.Name,
CreatorID: s.CreatorID,
FileID: s.FileID,
IsUnicode: s.IsUnicode,
CreatedAt: s.CreatedAt,
UpdatedAt: s.UpdatedAt,
Stamp: s,
HasThumbnail: ok,
})
}
Expand Down
10 changes: 2 additions & 8 deletions repository/stamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,8 @@ type StampStats struct {
}

type StampWithThumbnail struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
CreatorID uuid.UUID `json:"creatorId"`
FileID uuid.UUID `json:"fileId"`
IsUnicode bool `json:"isUnicode"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
HasThumbnail bool `json:"hasThumbnail"`
*model.Stamp
HasThumbnail bool `json:"hasThumbnail"`
}

// StampType スタンプの種類
Expand Down

0 comments on commit 6fde0ca

Please sign in to comment.