refactor(ops): optimize badge device status management and add sync job
This commit is contained in:
@@ -10,8 +10,10 @@ import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* IoT 设备状态<EFBFBD><EFBFBD>询 API
|
||||
* IoT 设备状态查询 API
|
||||
* <p>
|
||||
* 提供 RPC 接口供其他模块(如 Ops 模块)查询设备状态
|
||||
*
|
||||
@@ -33,4 +35,9 @@ public interface IotDeviceStatusQueryApi {
|
||||
@Parameter(name = "deviceId", description = "设备ID", required = true, example = "1")
|
||||
CommonResult<DeviceStatusRespDTO> getDeviceStatus(@RequestParam("deviceId") Long deviceId);
|
||||
|
||||
@GetMapping(PREFIX + "/batch-get-status")
|
||||
@Operation(summary = "批量获取设备状态")
|
||||
@Parameter(name = "deviceIds", description = "设备ID列表", required = true, example = "[1,2,3]")
|
||||
CommonResult<List<DeviceStatusRespDTO>> batchGetDeviceStatus(@RequestParam("deviceIds") List<Long> deviceIds);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user