package com.zksy.base.warning.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.base.warning.domain.WarningReason;

import java.util.List;

public interface WarningReasonService extends IService<WarningReason> {

    IPage<WarningReason> queryWarningReasons(Page<WarningReason> page, String reasonCode, String reasonName, 
                                             String warningType, String warningLevel, String status);

    List<WarningReason> getReasonsByTypeAndLevel(String warningType, String warningLevel);

    boolean addWarningReason(WarningReason warningReason);

    boolean updateWarningReason(WarningReason warningReason);

    boolean updateReasonStatus(String reasonId, String status);

    WarningReason getReasonDetail(String reasonId);
}
