package com.tuoheng.admin.service.airportline;

import com.tuoheng.admin.entity.domain.AirportLine;
import com.tuoheng.admin.entity.request.inspection.AirportLineRequest;
import com.tuoheng.common.core.common.IBaseService;
import com.tuoheng.common.core.utils.JsonResult;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author ChengWang
 * @Date 2022/11/17
 */
public interface IAirportLineService extends IBaseService<AirportLine> {

    /**
     * 查询航线信息
     *
     * @param id 航线Id
     * @return
     */
    JsonResult getInfoById(Integer id);

    /**
     * 查询航线信息
     *
     * @param inspectionId 任务Id
     * @return
     */
    JsonResult getInfoByInspectionId(String inspectionId);

    /**
     * 查询航线列表
     *
     * @param airportId 机场Id
     * @return
     */
    JsonResult getListByAirportIdId(String airportId);

    /**
     *新增航线
     * @param request
     * @return
     */
    JsonResult addAirportLine(AirportLineRequest request);
}
