import request from '@/utils/request';

export function getReviews(params: any) {
  return request.get('/api/admin/reviews', { params });
}

export function approveReview(id: number) {
  return request.put(`/api/admin/reviews/${id}/approve`);
}

export function rejectReview(id: number, reason: string) {
  return request.put(`/api/admin/reviews/${id}/reject`, { reason });
}
