|
@ -2,12 +2,14 @@ package com.qyft.ms.app.controller; |
|
|
|
|
|
|
|
|
import com.qyft.ms.app.device.status.SprayTask; |
|
|
import com.qyft.ms.app.device.status.SprayTask; |
|
|
import com.qyft.ms.app.model.vo.SprayTaskStatusVO; |
|
|
import com.qyft.ms.app.model.vo.SprayTaskStatusVO; |
|
|
|
|
|
import com.qyft.ms.app.service.SprayTaskService; |
|
|
import com.qyft.ms.system.common.result.Result; |
|
|
import com.qyft.ms.system.common.result.Result; |
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
@ -17,6 +19,7 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
@RequiredArgsConstructor |
|
|
@RequiredArgsConstructor |
|
|
@Slf4j |
|
|
@Slf4j |
|
|
public class SprayTaskController { |
|
|
public class SprayTaskController { |
|
|
|
|
|
private final SprayTaskService sprayTaskService; |
|
|
|
|
|
|
|
|
@Operation(summary = "获取喷涂状态") |
|
|
@Operation(summary = "获取喷涂状态") |
|
|
@GetMapping("/status") |
|
|
@GetMapping("/status") |
|
@ -30,4 +33,15 @@ public class SprayTaskController { |
|
|
return Result.success(sprayTaskStatusVO); |
|
|
return Result.success(sprayTaskStatusVO); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "设置喷涂参数") |
|
|
|
|
|
@PostMapping("/set-params") |
|
|
|
|
|
public Result<?> setSprayParams() { |
|
|
|
|
|
return Result.success(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "获取当前喷涂参数") |
|
|
|
|
|
@GetMapping("/get-params") |
|
|
|
|
|
public Result<?> getSprayParams() { |
|
|
|
|
|
return Result.success(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |