修复用户发布下架后审核还有的bug

This commit is contained in:
yml2213
2026-06-07 22:07:54 +08:00
parent a8b3d3813b
commit ebf9b95f5a
5 changed files with 457 additions and 57 deletions
+2 -2
View File
@@ -266,9 +266,9 @@ func (s *Service) Reject(id uint64, req ReviewRequest) (*ListingDTO, error) {
return s.repo.Reject(id, req)
}
func (s *Service) Offline(ownerID uint64, id uint64) error {
func (s *Service) Offline(ownerID uint64, id uint64) (*ListingDTO, error) {
if s.repo == nil {
return ErrDependencyUnavailable
return nil, ErrDependencyUnavailable
}
return s.repo.Offline(ownerID, id)
}