|
|
@ -0,0 +1,29 @@ |
|
|
|
package com.qyft.ms.app.controller; |
|
|
|
|
|
|
|
import com.qyft.ms.app.device.status.DeviceStatus; |
|
|
|
import com.qyft.ms.app.model.vo.SelfTestVO; |
|
|
|
import com.qyft.ms.app.service.SelfTestService; |
|
|
|
import com.qyft.ms.system.common.result.Result; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
@Tag(name = "设备状态") |
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/device-status") |
|
|
|
@RequiredArgsConstructor |
|
|
|
@Slf4j |
|
|
|
public class DeviceStatusController { |
|
|
|
private final DeviceStatus deviceStatus; |
|
|
|
|
|
|
|
@Operation(summary = "获取设备状态") |
|
|
|
@GetMapping("/") |
|
|
|
public Result<DeviceStatus> get() { |
|
|
|
return Result.success(deviceStatus); |
|
|
|
} |
|
|
|
|
|
|
|
} |