package com.jeesharp.business.modules.food.service;

import com.jeesharp.business.modules.food.entity.FoodRestaurant;
import com.jeesharp.business.modules.food.vo.FoodRestaurantQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.List;
import java.util.Map;

/**
 * 美食门店领域服务接口。
 *
 * @author jeesharp
 * @since 2026-06-04
 */
public interface FoodRestaurantService extends BaseInterface<FoodRestaurant, FoodRestaurantQueryVO> {

    List<FoodRestaurant> listOnline();

    FoodRestaurant getOnline(String id);

    void createRestaurant(FoodRestaurant entity);

    void updateRestaurant(FoodRestaurant entity);
/**
     * 按门店名称模糊匹配，返回门店主键列表。
     */
    List<String> findIdsByNameLike(String name);

    /**
     * 批量获取门店名称。
     */
    Map<String, String> mapRestaurantNameByIds(List<String> ids);
}
