package com.palmnest.service.dorm.service;

import com.palmnest.application.bean.AppResultDto;
import com.palmnest.application.bean.Page;
import com.palmnest.application.dto.input.DormRoomerListDto;
import com.palmnest.application.dto.output.DormRoomerInfoDto;
import com.palmnest.model.dorm.DormRoomerInfo;

import java.io.InputStream;
import java.util.List;

/**
 * 宿舍管理信息service类
 *
 * @author longmeizhen
 */
public interface DormRoomerService {
	/**
	 * 获取宿舍管理信息列表
	 *
	 * @param dto界面上的参数
	 * @param pageNo
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public Page findList(DormRoomerListDto dto, int pageNo, int pageSize) throws Exception;

	/**
	 * 导入宿舍管理数据
	 *
	 * @param ins
	 * @param userId 创建人
	 * @return
	 * @throws Exception
	 */
	public AppResultDto importDormRoomer(InputStream ins, String userId, String orgId) throws Exception;

	/**
	 * 根据openId获取登录的员工入宿信息
	 *
	 * @param openId
	 * @return
	 */
	public DormRoomerInfo getDormInfoByOpenId(String openId, String orgId);

	/**
	 * 获取舍友
	 *
	 * @param openId
	 * @param orgId
	 * @return
	 */
	public List<DormRoomerInfoDto> getRoomerByOpenId(String openId, String orgId);
}
