package com.openhis.web.doctorstation.appservice;

import javax.servlet.http.HttpServletRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.core.common.core.domain.R;
import com.openhis.web.doctorstation.dto.ReservationRecordDto;

/**
 * 医生站-预约记录 应用Service
 */
public interface IReservationRecordAppService {

    /**
     * 保存预约记录
     *
     * @param reservationRecordDto 预约记录dto
     * @return 结果
     */
    R<?> saveReservation(ReservationRecordDto reservationRecordDto);

    /**
     * 编辑预约记录
     *
     * @param reservationRecordDto 预约记录dto
     * @return 结果
     */
    R<?> editReservation(ReservationRecordDto reservationRecordDto);

    /**
     * 删除预约记录
     *
     * @param id id
     * @return 结果
     */
    R<?> delReservation(Long id);

    /**
     * 查询 预约记录
     *
     * @param reservationRecordDto 查询条件
     * @param searchKey 模糊查询关键字
     * @param pageNo 当前页
     * @param pageSize 每页多少条
     * @param request 请求
     * @return 预约记录
     */
    IPage<ReservationRecordDto> getReservationInfo(ReservationRecordDto reservationRecordDto, String searchKey,
        Integer pageNo, Integer pageSize, HttpServletRequest request);

}
