package com.yeshi.fanli.service.inter.goods;
|
|
import com.yeshi.fanli.exception.goods.CommonGoodsException;
|
import com.yeshi.fanli.goods.CommonGoods;
|
|
/**
|
* 常规商品库
|
*
|
* @author Administrator
|
*
|
*/
|
public interface CommonGoodsService {
|
|
/**
|
* 添加商品(无就添加,有则更新)
|
*
|
* @param commonGoods
|
* @return
|
* @throws CommonGoodsException
|
*/
|
public CommonGoods addOrUpdateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
|
|
/**
|
* 更新商品信息
|
*
|
* @param commonGoods
|
* @throws CommonGoodsException
|
*/
|
public void updateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
|
|
/**
|
* 商品下线
|
*
|
* @param goodsId
|
* @param goodsType
|
*/
|
public void offlineCommonGoods(Long goodsId, int goodsType);
|
|
}
|