后台商品管理

This commit is contained in:
yml
2026-05-22 17:54:46 +08:00
parent 8afd94ca35
commit dfe686ce0e
12 changed files with 285 additions and 4 deletions
@@ -52,6 +52,13 @@ func (s *Service) ListPendingReview() ([]ListingDTO, error) {
return s.repo.ListPendingReview()
}
func (s *Service) ListAdmin(query AdminListQuery) ([]ListingDTO, error) {
if s.repo == nil {
return nil, ErrDependencyUnavailable
}
return s.repo.ListAdmin(query)
}
func (s *Service) Approve(id uint64) (*ListingDTO, error) {
if s.repo == nil {
return nil, ErrDependencyUnavailable