package com.gxwebsoft.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.shop.dto.ShopGoodsProfitUpdateDto;
import com.gxwebsoft.shop.entity.ShopGoodsProfit;
import com.gxwebsoft.shop.vo.ShopGoodsProfitVO;

import java.util.List;

/**
 * 商品分润设定Service
 *
 * @author xm
 * @since 2026-05-20 14:33:00
 */
public interface ShopGoodsProfitService extends IService<ShopGoodsProfit> {

    /**
     * 通过商品、类型查询分润信息
     * @param goodsId
     * @param type
     * @return
     */
    List<ShopGoodsProfitVO> getByGoodsId(Integer goodsId, Integer type);

    /**
     * 查询启用状态的商品分润信息
     * @param goodsIdList   商品ID集合
     * @param type          分润类型
     * @return
     */
    List<ShopGoodsProfitVO> getGoodsProfit(List<Integer> goodsIdList, Integer type);

    /**
     * 根据商品ID修改商品分润设定
     * @param updateDto
     * @return
     */
    Boolean updateByGoodsId(ShopGoodsProfitUpdateDto updateDto);

}
