接口优化

This commit is contained in:
wuweida 2022-05-12 11:17:58 +08:00
parent 442ac20d3c
commit b0e4365e04
2 changed files with 9 additions and 5 deletions

View File

@ -182,11 +182,9 @@ public class Controller {
String split = splits[1];
channelLabelDto.setNodeName(split);
Result success = Result.success(channelLabelDto);
return success;
}
return Result.error("");
return Result.success(channelLabelDtos);
}
/**

View File

@ -2,7 +2,6 @@ package com.hisense.monitormanage;
import com.alibaba.fastjson.JSONObject;
import com.hisense.monitormanage.service.MonitorService;
import lombok.AllArgsConstructor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@ -16,8 +15,15 @@ class MonitorManageApplicationTests {
@Autowired
private MonitorService monitorService;
@Test
void contextLoads() {
}
@Test
void start1() {
monitorService.start1();
}