import { request } from '@/utils/request';

// 商家管理接口（需要 sellerToken）
export function getMerchantRooms(params: any) {
  return request({ url: '/api/merchant/rooms', method: 'GET', data: params, useSellerToken: true });
}

export function getMerchantRoom(id: number) {
  return request({ url: `/seller/rooms/${id}`, method: 'GET', useSellerToken: true });
}

export function createMerchantRoom(data: any) {
  return request({ url: '/api/merchant/rooms', method: 'POST', data, useSellerToken: true });
}

export function updateMerchantRoom(id: number, data: any) {
  return request({ url: `/seller/rooms/${id}`, method: 'PUT', data, useSellerToken: true });
}

export function removeMerchantRoom(id: number) {
  return request({ url: `/seller/rooms/${id}`, method: 'DELETE', useSellerToken: true });
}
