package com.gxwebsoft.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.shop.entity.GoodsRoleCommission;
import com.gxwebsoft.shop.param.GoodsRoleCommissionParam;

import java.util.List;

/**
 * 商品绑定角色的分润金额Service
 *
 * @author 科技小王子
 * @since 2024-12-02 12:43:40
 */
public interface GoodsRoleCommissionService extends IService<GoodsRoleCommission> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<GoodsRoleCommission>
     */
    PageResult<GoodsRoleCommission> pageRel(GoodsRoleCommissionParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<GoodsRoleCommission>
     */
    List<GoodsRoleCommission> listRel(GoodsRoleCommissionParam param);

    /**
     * 根据id查询
     *
     * @param id 
     * @return GoodsRoleCommission
     */
    GoodsRoleCommission getByIdRel(Integer id);

    GoodsRoleCommission getByRoleNGoods(Integer roleId, Integer goodsId);
}
