package com.cyksj.service.mange;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyksj.model.entity.GoodsDon;
import com.cyksj.model.entity.GoodsDonSpec;
import com.cyksj.model.manage.request.ReqGoodsSkuInsert;
import com.cyksj.model.request.CombinationSkuReq;

import java.util.List;

/**
 * @author chan
 * @date 2022/9/27 5:19 PM
 */
public interface CmsGoodsDonSpecService extends IService<GoodsDonSpec> {

	/**
	 * 新增或编辑规格spec
	 */
	void insertOrUpdateSkuSpec(ReqGoodsSkuInsert insert,Boolean isUpdate) throws Exception;

	void skuAppend(ReqGoodsSkuInsert insert, GoodsDon goods) throws Exception;

	void combinationSku(Long goodsId, List<CombinationSkuReq> combinations) throws Exception;
}
