package com.ghy.shop.service;

import com.ghy.shop.domain.Shop;
import com.ghy.shop.domain.ShopDistanceQuery;
import java.util.List;

public interface ShopService {
    int addShop(Shop shop);
    int updateShop(Shop shop);
    int deleteShop(Long shopId);
    Shop getShop(Long shopId);
    List<Shop> listShops();

    /**
     * 根据工作人员ID查询商铺列表
     */
    List<Shop> getShopsByWorkerId(Long workerId);
    
    /**
     * 通过店铺ID查询详细信息并计算距离
     * @param query 距离查询请求实体
     * @return 包含距离信息的店铺详情
     */
    Shop getShopWithDistance(ShopDistanceQuery query);
} 