package com.zioinfo.mall.zone.mapper;

import com.zioinfo.mall.zone.MallDeliveryArea;
import com.zioinfo.mall.zone.MallZone;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ZoneMapper {
    List<MallZone> findByZip(@Param("zip") String zip);
    List<MallZone> findByStore(@Param("storeId") Long storeId);
    List<MallZone> findAll();
    int insert(MallZone z);
    int delete(@Param("id") Long id);

    // --- 배송지역(Delivery Areas) ---
    List<MallDeliveryArea> findAllAreas();
    MallDeliveryArea findAreaByZip(@Param("zip") String zip);
    MallDeliveryArea findAreaByCity(@Param("city") String city);
}
