package com.zioinfo.signage.mapper;

import com.zioinfo.signage.domain.FirmwareVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface FirmwareMapper {
    List<FirmwareVo> findAll(@Param("tenantCode") String tenantCode,
                              @Param("deviceType") String deviceType);
    FirmwareVo findById(@Param("id") Long id);
    FirmwareVo findLatest(@Param("deviceType") String deviceType,
                          @Param("tenantCode") String tenantCode);
    int insert(FirmwareVo firmware);
    int update(FirmwareVo firmware);
    int clearLatest(@Param("deviceType") String deviceType, @Param("tenantCode") String tenantCode);
    int delete(@Param("id") Long id);
}
