package cn.stylefeng.team.project.modular.business.mapper;

import cn.stylefeng.roses.kernel.db.mp.injector.CustomBaseMapper;
import cn.stylefeng.team.project.api.entity.BusinessPermission;
import cn.stylefeng.team.project.modular.business.pojo.businessPermission.query.BusinessPermissionDetailRequest;
import cn.stylefeng.team.project.modular.business.pojo.businessPermission.query.BusinessPermissionListRequest;
import cn.stylefeng.team.project.modular.business.pojo.businessPermission.query.BusinessPermissionPageRequest;
import cn.stylefeng.team.project.modular.business.pojo.businessPermission.response.BusinessPermissionDetailResponse;
import cn.stylefeng.team.project.modular.business.pojo.businessPermission.response.BusinessPermissionListResponse;
import cn.stylefeng.team.project.modular.business.pojo.businessPermission.response.BusinessPermissionPageResponse;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessPermissionMapper extends CustomBaseMapper<BusinessPermission> {

    BusinessPermissionDetailResponse customDetail(@Param("param") BusinessPermissionDetailRequest request);

    List<BusinessPermissionListResponse> customList(@Param("param") BusinessPermissionListRequest request);

    List<BusinessPermissionPageResponse> customPage(@Param("page") Page page, @Param("param") BusinessPermissionPageRequest request);

}