| | |
| | | import com.moral.service.MonitorPointService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | |
| | |
| | | ResultBean resultBean = new ResultBean(ResultBean.SUCCESS); |
| | | return resultBean; |
| | | } |
| | | |
| | | @GetMapping("list/{name}") |
| | | public ResultBean<List<MonitorPoint>> getMonitorPointsByName(@PathVariable("name") String name) { |
| | | List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByName(name); |
| | | return new ResultBean<List<MonitorPoint>>(monitorPoints); |
| | | } |
| | | |
| | | } |