package cn.iocoder.yudao.module.jx.service;


import cn.iocoder.yudao.module.jx.payment.entity.DriveSchoolBooking;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * 预约Service接口
 *
 * @author ruoyi
 * @date 2024-04-25
 */
public interface DriveSchoolBookingService
{
    /**
     * 查询预约
     *
     * @param id 预约主键
     * @return 预约
     */
    public DriveSchoolBooking selectDriveSchoolBookingById(Long id);

    /**
     * 查询预约列表
     *
     * @param driveSchoolBooking 预约
     * @return 预约集合
     */
    public IPage<DriveSchoolBooking> selectDriveSchoolBookingList(DriveSchoolBooking driveSchoolBooking, Page<DriveSchoolBooking> page);
    public List<DriveSchoolBooking> listByUser(DriveSchoolBooking driveSchoolBooking);

    /**
     * 新增预约
     *
     * @param driveSchoolBooking 预约
     * @return 结果
     */
    public int insertDriveSchoolBooking(DriveSchoolBooking driveSchoolBooking);

    /**
     * 修改预约
     *
     * @param driveSchoolBooking 预约
     * @return 结果
     */
    public int updateDriveSchoolBooking(DriveSchoolBooking driveSchoolBooking);

    /**
     * 批量删除预约
     *
     * @param ids 需要删除的预约主键集合
     * @return 结果
     */
    public int deleteDriveSchoolBookingByIds(Long[] ids);

    /**
     * 删除预约信息
     *
     * @param id 预约主键
     * @return 结果
     */
    public int deleteDriveSchoolBookingById(Long id);
}
