package com.aircraft.modules.aircraft.service;

import com.aircraft.modules.aircraft.domain.AircraftInsurance;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 飞行器保险表 服务类
 * </p>
 *
 * @author cli
 * @since 2025-07-11
 */
public interface AircraftInsuranceService extends IService<AircraftInsurance> {
    /**
     * 分页查询飞行器保险
     *
     * @param aircraftId
     * @param page
     * @return
     */
    IPage<AircraftInsurance> page(Long aircraftId, Page<AircraftInsurance> page);


    /**
     * 新增飞行器保险
     *
     * @param aircraftInsurance
     */
    void create(AircraftInsurance aircraftInsurance);

    /**
     * 编辑飞行器保险
     *
     * @param aircraftInsurance
     */
    void update(AircraftInsurance aircraftInsurance);


    /**
     * 删除飞行器保险
     *
     * @param id
     */
    void deleteById(Long id);


    /**
     * 根据ID查询飞行器保险
     *
     * @param id
     */
    AircraftInsurance findById(Long id);

}
