@RestController @RequestMapping(value="/gateway") public class GatewayController extends Object
| 构造器和说明 |
|---|
GatewayController() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deviceSendLogin(CacheDeviceKey key)
指定设备发送登录事件
|
void |
deviceSendLoginAll()
发送登录事件(所有子设备)
|
void |
deviceSendLogout(CacheDeviceKey key)
指定设备发送登出事件
|
void |
deviceSendLogoutAll()
发送登出事件(所有子设备)
|
List<cn.hutool.json.JSONObject> |
getAllCacheParam()
获取所有缓存的参数信息
|
Set<DeviceRemoteConfig> |
getAllSubDevices()
获取所有子设备信息
|
void |
invalidAllCache()
清空所有缓存
|
void |
invalidCache(CacheDeviceKey key)
清空指定参数缓存
|
void |
invalidCacheByDevice(CacheDeviceKey key)
清空指定设备缓存
|
@GetMapping(value="/getAllSubDevices") public Set<DeviceRemoteConfig> getAllSubDevices()
@GetMapping(value="/getAllCacheParam") public List<cn.hutool.json.JSONObject> getAllCacheParam()
@DeleteMapping(value="/invalidAllCache") public void invalidAllCache()
@DeleteMapping(value="/invalidCache")
public void invalidCache(@RequestBody
CacheDeviceKey key)
key - 缓存key@DeleteMapping(value="/invalidCacheByDevice")
public void invalidCacheByDevice(@RequestBody
CacheDeviceKey key)
key - key@PutMapping(value="/deviceSendLoginAll") public void deviceSendLoginAll()
@PutMapping(value="/deviceSendLogin")
public void deviceSendLogin(@RequestBody
CacheDeviceKey key)
key - key(pk,devId)@PutMapping(value="/deviceSendLogoutAll") public void deviceSendLogoutAll()
@PutMapping(value="/deviceSendLogout")
public void deviceSendLogout(@RequestBody
CacheDeviceKey key)
key - (pk,devId)Copyright © 2023. All rights reserved.