
package com.yami.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.ChannelProd;
import com.yami.shop.bean.model.ShopSku;
import com.yami.shop.common.util.PageParam;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 门店对应商品价格和库存管理
 */
public interface ShopSkuService extends IService<ShopSku> {

    void insertSku(ShopSku shopSku);

    /**
     * 分页查询
     * @param shopSku 查询参数
     * @return 分页数据
     */
    IPage<ShopSku> shopSkuPage(PageParam<ShopSku> page, ShopSku shopSku);

    /**
     * 导出门店渠道商品数据
     * @param response 查询参数
     * @param response 响应
     */
    void exportChannelProds(ShopSku shopSku, HttpServletResponse response);
}
