package com.gxwebsoft.dormitory.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.dormitory.entity.DormitoryBuilding;
import com.gxwebsoft.dormitory.param.DormitoryBuildingParam;

import java.util.List;

/**
 * 宿舍楼栋Service
 *
 * @author 科技小王子
 * @since 2025-10-03 10:49:27
 */
public interface DormitoryBuildingService extends IService<DormitoryBuilding> {

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

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

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

}
