package com.yuchen.saas.park.service.fault.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuchen.saas.park.api.entity.fault.EquipmentBreakdownType;
import org.nest.springwrap.core.mp.base.BaseService;
import org.nest.springwrap.core.tool.api.R;

import java.util.List;

/**
 * @Author: 肖润飞
 * @CreateTime: 2022/10/18 15:25
 * @Description: 设备异常类型
 * @Version: 1.0
 */
public interface EquipmentBreakdownTypeService extends BaseService<EquipmentBreakdownType> {
    /**
     * *膝盖是否显示
     * @param types
     */
    R isShow(List<EquipmentBreakdownType> types);

    /**
     * 获得设备异常类型Vo
     * @return
     */
    R listVo();

    /**
     * 分页vo
     * @param page
     * @param type
     * @return
     */
    R pageVo(Page page, EquipmentBreakdownType type);

    /**
     * 更新故障规则标签,更新的时候,如果更新breakdownCode,则需要更新type 和rule中的code
     * @param type
     */
    R updateType(EquipmentBreakdownType type);

    /**
     * 逻辑删除
     * @param type
     * @return
     */
    R deleteType(EquipmentBreakdownType type);

}
