package com.gxwebsoft.shop.service;

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

import java.util.List;

/**
 * 用户绑定分红角色Service
 *
 * @author 科技小王子
 * @since 2024-12-02 12:43:40
 */
public interface UserCommissionRoleService extends IService<UserCommissionRole> {

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

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

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

    List<UserCommissionRole> listByRoleIds(List<Integer> roleIds);
}
