设备详情安防页面数据第一版

This commit is contained in:
wyw
2024-08-14 15:16:47 +08:00
parent 5272ca1570
commit 6922c0d053
4 changed files with 59 additions and 1 deletions

View File

@ -112,7 +112,20 @@ public class DeviceDetailController extends BaseController {
return AjaxResult.success(list);
}
/**
* 获取安防信息
* @param deviceId 传参
* @return com.fastbee.common.core.domain.AjaxResult
*/
@ApiOperation("获取安防信息")
@GetMapping("/anfangInfo")
public AjaxResult anfangInfo(Long deviceId)
{
if (null == deviceId || deviceId == 0L) {
return AjaxResult.error("请传入设备号");
}
return AjaxResult.success(deviceDetailService.anfangInfo(deviceId));
}
}