package com.gxwebsoft.shop.service;

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

import java.util.List;

/**
 * 分红角色Service
 *
 * @author 科技小王子
 * @since 2024-12-02 12:43:40
 */
public interface CommissionRoleService extends IService<CommissionRole> {

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

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

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

    List<CommissionRole> listByProvinceId(Integer id);
}
