package com.ssj.service.conch.conch.service;
import com.ssj.bean.conch.conch.domain.SconOtaManager;
import com.ssj.framework.core.common.service.BaseService;
import com.ssj.framework.core.util.ResponseEntity;
import com.ssj.service.conch.conch.request.OtaVersionReq;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Map;

/**
 * @author yangcan
 * 类描述:ota升级服务
 * 创建时间:2019/7/12 10:16
 */
public interface SconOtaManagerService extends BaseService<SconOtaManager, String> {

    /**
     * @param
     * @return
     * 方法说明:通过当前版本号查询ota对应的升级版本信息
     * 创建时间:2019/6/28 13:27
     * @author yangcan
     */
    public SconOtaManager findByCurrentVersion(String currentVersion);

    /**
     * @param
     * @return
     * 方法说明:获取最新ota版本信息
     * 创建时间:2019/7/12 10:18
     * @author yangcan
     */
    public ResponseEntity getOtaVersion(OtaVersionReq request);

   /**
    * 分页查询
    */

    Page<SconOtaManager> findByPage(Map<String, Object> params, Pageable sp);
}
