72 lines
1.5 KiB
Java
72 lines
1.5 KiB
Java
package com.ruoyi.device.service;
|
|
|
|
import java.util.List;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.device.domain.AsDevice;
|
|
|
|
/**
|
|
* 设备列表Service接口
|
|
*
|
|
* @author 邱贞招
|
|
* @date 2023-11-11
|
|
*/
|
|
public interface IAsDeviceService
|
|
{
|
|
/**
|
|
* 查询设备列表
|
|
*
|
|
* @param deviceId 设备列表主键
|
|
* @return 设备列表
|
|
*/
|
|
public AsDevice selectAsDeviceByDeviceId(Long deviceId);
|
|
|
|
/**
|
|
* 查询设备列表列表
|
|
*
|
|
* @param asDevice 设备列表
|
|
* @return 设备列表集合
|
|
*/
|
|
public List<AsDevice> selectAsDeviceList(AsDevice asDevice);
|
|
|
|
/**
|
|
* 新增设备列表
|
|
*
|
|
* @param asDevice 设备列表
|
|
* @return 结果
|
|
*/
|
|
public int insertAsDevice(AsDevice asDevice);
|
|
|
|
/**
|
|
* 修改设备列表
|
|
*
|
|
* @param asDevice 设备列表
|
|
* @return 结果
|
|
*/
|
|
public int updateAsDevice(AsDevice asDevice);
|
|
|
|
/**
|
|
* 批量删除设备列表
|
|
*
|
|
* @param deviceIds 需要删除的设备列表主键集合
|
|
* @return 结果
|
|
*/
|
|
public int deleteAsDeviceByDeviceIds(Long[] deviceIds);
|
|
|
|
/**
|
|
* 删除设备列表信息
|
|
*
|
|
* @param deviceId 设备列表主键
|
|
* @return 结果
|
|
*/
|
|
public int deleteAsDeviceByDeviceId(Long deviceId);
|
|
|
|
/**
|
|
* 手动浇谁
|
|
*
|
|
* @param device 设备列表主键
|
|
* @return 结果
|
|
*/
|
|
public AjaxResult watering(AsDevice device,Integer wateringSwitch);
|
|
}
|