| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.DateFormat; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | @RequestMapping("testData") |
| | | @Api(tags = "实验数据") |
| | | @Api(tags = "试验数据") |
| | | @Slf4j |
| | | public class TestDataController { |
| | | @Autowired |
| | |
| | | @Autowired |
| | | private DeviceInfService deviceInfService; |
| | | |
| | | @GetMapping("ws") |
| | | @ApiOperation(value="查询webSocket",protocols = "ws",notes = "接口:ws://localhost:8090/testData,发送消息为testPlanId") |
| | | public Response doc(){ |
| | | return new Response().setMsg(1,"查看接口描述"); |
| | | } |
| | | |
| | | @GetMapping() |
| | | @ApiOperation("获取历史数据") |
| | | public Response getHistoryData(@RequestParam Integer testPlanId){ |