package com.multictrl.modules.business.service;

import cn.hutool.json.JSONObject;
import com.multictrl.common.service.CrudService;
import com.multictrl.modules.business.dto.WeatherNoflyDTO;
import com.multictrl.modules.business.entity.WeatherNoflyEntity;

/**
 * 天气阻飞
 *
 * @author Sdy
 * @since 1.0.0 2026-06-15
 */
public interface WeatherNoflyService extends CrudService<WeatherNoflyEntity, WeatherNoflyDTO> {

    //信息
    WeatherNoflyDTO getInfoByDockSn(String dockSn);

    //新增阻飞
    void addWeatherNofly(WeatherNoflyDTO dto);

    //判断机库是否阻飞
    JSONObject allowFlight(String dockSn, boolean isJobTask);
}