package com.moral.api.service;
|
|
import com.moral.api.entity.Sensor;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.springframework.transaction.annotation.Transactional;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* <p>
|
* 服务类
|
* </p>
|
*
|
* @author moral
|
* @since 2021-05-08
|
*/
|
@Transactional
|
public interface SensorService extends IService<Sensor> {
|
|
@Transactional
|
Map<String, Object> insertOne(Sensor sensor);
|
|
@Transactional
|
Map<String, Object> updateSensor(Map<String, Object> updateSensorMap);
|
|
Map<String, Object> getAllSensor(Map map);
|
|
Map<String, Object> getAllSensorWithoutPage();
|
|
@Transactional
|
Map<String, Object> deleteSensor(Map map);
|
|
Map<String, Object> getSensorByFuzzy(Map map);
|
|
Map<String, Sensor> getAllSensorFromCache();
|
|
void refreshCache();
|
}
|