|
|
@ -9,14 +9,7 @@ import com.zc.business.service.IDcEventService; |
|
|
|
import com.zc.common.core.websocket.WebSocketService; |
|
|
|
import io.swagger.annotations.*; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.PutMapping; |
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import com.ruoyi.common.annotation.Log; |
|
|
|
import com.ruoyi.common.core.controller.BaseController; |
|
|
|
import com.ruoyi.common.core.domain.AjaxResult; |
|
|
@ -197,7 +190,7 @@ public class DcEventController extends BaseController |
|
|
|
*/ |
|
|
|
@ApiOperation("解除事件") |
|
|
|
@PostMapping("/completeEvent") |
|
|
|
public AjaxResult completeEvent(String eventId){ |
|
|
|
public AjaxResult completeEvent(@ApiParam(value="事件id", name="eventId", required=true) @RequestParam("eventId") String eventId){ |
|
|
|
return dcEventService.completeEvent(eventId); |
|
|
|
} |
|
|
|
|
|
|
@ -211,7 +204,7 @@ public class DcEventController extends BaseController |
|
|
|
*/ |
|
|
|
@ApiOperation("无需清障") |
|
|
|
@PostMapping("/skipClear") |
|
|
|
public AjaxResult skipClear(String eventId){ |
|
|
|
public AjaxResult skipClear(@ApiParam(value="事件id", name="eventId", required=true) @RequestParam ("eventId") String eventId){ |
|
|
|
return dcEventService.skipClear(eventId); |
|
|
|
} |
|
|
|
} |
|
|
|