|
|
@@ -96,6 +96,12 @@ public class ItMonitorController {
|
|
|
return new Result<>(ResultCode.SUCCESS, itMonitorService.getAllTemplate());
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/template/get/{i}")
|
|
|
+ public Result<ItMonitorTemplate> getItMonitorTemplateOne(@PathVariable String i) {
|
|
|
+ Long templateId = Long.parseLong(i);
|
|
|
+ return new Result<>(ResultCode.SUCCESS, itMonitorService.getTemplate(templateId));
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/template/add")
|
|
|
public Result<?> addItMonitorTemplate(@Validated @RequestBody ItMonitorTemplate itMonitorTemplate) {
|
|
|
itMonitorTemplate.setTemplateId(null);
|