修复发布后图片无法看到bug

This commit is contained in:
yml2213
2026-05-23 17:48:56 +08:00
parent 80ae8af375
commit d661a22b8a
4 changed files with 159 additions and 8 deletions
@@ -179,6 +179,20 @@ func (s *Service) FindPublic(id uint64) (*ListingDTO, error) {
return s.repo.FindPublic(id)
}
func (s *Service) FindPublicCoverKey(id uint64) (string, error) {
if s.repo == nil {
return "", ErrDependencyUnavailable
}
return s.repo.FindPublicCoverKey(id)
}
func (s *Service) FindPublicScreenshotKey(id uint64, index int) (string, error) {
if s.repo == nil {
return "", ErrDependencyUnavailable
}
return s.repo.FindPublicScreenshotKey(id, index)
}
func (s *Service) FindMine(ownerID uint64, id uint64) (*ListingDTO, error) {
if s.repo == nil {
return nil, ErrDependencyUnavailable