You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
803 B
Java
29 lines
803 B
Java
package com.supervision.controller;
|
|
|
|
import com.supervision.model.ConfigPhysicalTool;
|
|
import com.supervision.service.ConfigPhysicalToolService;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import java.util.List;
|
|
|
|
@RestController
|
|
@RequestMapping("test")
|
|
@RequiredArgsConstructor
|
|
public class TestController {
|
|
|
|
private final ConfigPhysicalToolService configPhysicalToolService;
|
|
|
|
@GetMapping("testExpireTime")
|
|
public String testExpireTime() {
|
|
return "OK";
|
|
}
|
|
|
|
@GetMapping("testQueryJSON")
|
|
public List<ConfigPhysicalTool> testQueryJSON(){
|
|
return configPhysicalToolService.list();
|
|
}
|
|
}
|