package com.muyu.service;

import java.util.List;
import com.muyu.domain.WarnStrategy;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.domain.req.WarnStrategyReq;
import com.muyu.domain.resp.WarnStrategyResp;
import org.apache.ibatis.annotations.Param;

/**
 * 预警策略Service接口
 *
 * @author muyu
 * @date 2024-09-20
 */
public interface WarnStrategyService extends IService<WarnStrategy> {
    /**
     * 精确查询预警策略
     *
     * @param id 预警策略主键
     * @return 预警策略
     */
    WarnStrategy selectWarnStrategyById(Long id);

    /**
     * 查询预警策略列表
     *
     * @param warnStrategyReq 预警策略
     * @return 预警策略集合
     */
    List<WarnStrategyResp> selectWarnStrategyList(WarnStrategyReq warnStrategyReq);

    /**
     * 删除
     */
    Integer deleteWarnStrategy(Long id);



    /**
     * 修改
     */
    Integer updWarnStrategy(WarnStrategy warnStrategy);

    /**
     * 添加
     */
    Integer addWarnStrategy(WarnStrategy warnStrategy);

    /**
     * 根据车辆类型ID查询策略
     */
    List<WarnStrategyResp> selectListByCarType(Long carTypeId);

}
