package com.ruoyi.device.service;

import com.ruoyi.device.domain.entity.DeviceUpgradePackage;
import com.ruoyi.device.mqtt.domain.decoder.upgrade.GetApkUrlMessage;
import com.ruoyi.device.mqtt.domain.decoder.upgrade.QueryApkListMessage;

import java.util.List;

/**
 * 设备升级包服务（查询 tb_device_upgrade_package）
 */
public interface IDeviceUpgradePackageService
{
    /**
     * 查询升级包列表
     */
    List<DeviceUpgradePackage> selectDeviceUpgradePackageList(DeviceUpgradePackage query);

    /**
     * 处理 GET_APK_UP：查询版本列表并下发 GET_APK_DOWN
     */
    void handleQueryApkList(QueryApkListMessage queryApkListMessage);

    /**
     * 处理 GET_APK_URL_UP：查询下载地址并下发 GET_APK_URL_DOWN
     */
    void handleGetApkUrl(GetApkUrlMessage getApkUrlMessage);
}
