feat: 增加sn管理接口
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
package com.youlai.boot.device.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.youlai.boot.device.model.entity.SnDeviceInfo;
|
||||
import com.youlai.boot.device.model.query.DeviceQuery;
|
||||
import com.youlai.boot.device.model.vo.DeviceHardwareVO;
|
||||
import com.youlai.boot.device.model.vo.DevicePageVO;
|
||||
|
||||
|
||||
public interface DeviceService extends IService<SnDeviceInfo> {
|
||||
|
||||
/**
|
||||
* 用户分页列表
|
||||
*
|
||||
* @return {@link IPage<DevicePageVO>} 用户分页列表
|
||||
*/
|
||||
IPage<DevicePageVO> getSnPage(DeviceQuery queryParams);
|
||||
|
||||
/**
|
||||
* 获取设备详情
|
||||
*
|
||||
* @param sn 设备序列号
|
||||
* @return 设备详情信息
|
||||
*/
|
||||
DevicePageVO getSnBindInfo(String sn);
|
||||
/**
|
||||
* 获取设备硬件信息
|
||||
*
|
||||
* @param sn 设备序列号
|
||||
* @return 设备硬件信息
|
||||
*/
|
||||
DeviceHardwareVO getSnHardwareInfo(String sn);
|
||||
|
||||
/**
|
||||
* 添加设备
|
||||
* @param device 设备信息
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean addSn(SnDeviceInfo device);
|
||||
|
||||
/**
|
||||
* 删除设备
|
||||
* @param sn 设备序列号
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteSn(String sn);
|
||||
|
||||
boolean deviceRefresh(String sn);
|
||||
/**
|
||||
* 截图
|
||||
* @param sn 序列号
|
||||
* @return 是否推送成功
|
||||
*/
|
||||
boolean screenSnapshot(String sn);
|
||||
|
||||
boolean deviceReboot(String sn);
|
||||
boolean deviceShutdown(String sn);
|
||||
boolean deviceLocate(String sn);
|
||||
|
||||
/**
|
||||
* 恢复出厂设置
|
||||
* @param sn 序列号
|
||||
* @return 是否推送成功
|
||||
*/
|
||||
boolean restore(String sn);
|
||||
|
||||
boolean setDeviceDeveloper(String sn);
|
||||
|
||||
/**
|
||||
* 新增开发者选项配置
|
||||
*
|
||||
* @param sn 设备序列号
|
||||
* @param developerOptions 开发者选项开关(0关闭,1开启)
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean addDeveloperConfig(String sn, Integer developerOptions);
|
||||
|
||||
/**
|
||||
* 删除开发者选项配置
|
||||
*
|
||||
* @param sn 设备序列号
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteDeveloperConfig(String sn);
|
||||
}
|
||||
Reference in New Issue
Block a user