package com.ruoyi.web.modules.category.facade.impl;

import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.web.modules.category.facade.IShopFacade;

/**
 * 已废弃：由 store 模块 {@code ShopFacadeImpl} 实现
 */
@Deprecated
public class DefaultShopFacade implements IShopFacade
{
    @Override
    public void assertShopMaintable(Long shopId)
    {
        if (shopId == null || shopId <= 0)
        {
            throw new ServiceException("请先选择当前店铺");
        }
    }

    @Override
    public String getShopName(Long shopId)
    {
        if (shopId == null)
        {
            return StringUtils.EMPTY;
        }
        return "店铺" + shopId;
    }
}
