|
@@ -2,17 +2,15 @@ package com.hfln.portal.application.controller.wap;
|
|
|
|
|
|
import cn.hfln.framework.catchlog.CatchAndLog;
|
|
|
import cn.hfln.framework.dto.ApiResult;
|
|
|
-import com.hfln.portal.common.dto.data.event.EventListDTO;
|
|
|
-import com.hfln.portal.common.request.event.EventListParams;
|
|
|
-import com.hfln.portal.common.vo.PageRecord;
|
|
|
import com.hfln.portal.domain.gateway.DeviceGateway;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
-import javax.validation.Valid;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@Slf4j
|
|
|
@RestController
|
|
@@ -24,11 +22,6 @@ public class EventController {
|
|
|
@Autowired
|
|
|
private DeviceGateway deviceGateway;
|
|
|
|
|
|
- @PostMapping("/deviceEventList")
|
|
|
- @Operation(summary = "设备事件")
|
|
|
- public ApiResult<PageRecord<EventListDTO>> deviceEventList(@RequestBody @Valid EventListParams request) {
|
|
|
- return ApiResult.success(deviceGateway.queryEventByPage(request));
|
|
|
- }
|
|
|
|
|
|
@GetMapping("/handleEvent/{eventListId}")
|
|
|
@Operation(summary = "处理设备事件")
|