package com.gxwebsoft.dormitory.service;

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

import java.util.List;

/**
 * 宿舍记录Service
 *
 * @author 科技小王子
 * @since 2025-10-03 10:49:27
 */
public interface DormitoryRecordService extends IService<DormitoryRecord> {

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

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

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

}
