报警模块实体类引入内容修改

This commit is contained in:
qiaoqinzheng 2023-08-01 10:50:50 +08:00
parent 566e11aaf3
commit aad350fe9c
4 changed files with 7 additions and 7 deletions

View File

@ -5,6 +5,7 @@ import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.QueryRequest;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.base.entity.postgre.AlarmContactGroup;
import org.jeecg.modules.entity.AlarmContactGroupAbnormal;
import org.jeecg.modules.service.IAlarmContactGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -19,7 +20,7 @@ public class AlarmContactGroupController {
@GetMapping("findPage")
@ApiOperation(value = "分页查询报警联系人组信息", notes = "分页查询报警联系人组信息")
public Result findPage(QueryRequest queryRequest, AlarmContactGroup alarmContactGroup){
public Result findPage(QueryRequest queryRequest, AlarmContactGroupAbnormal alarmContactGroup){
return alarmContactGroupService.findPage(queryRequest, alarmContactGroup);
}
@ -31,13 +32,13 @@ public class AlarmContactGroupController {
@PostMapping("create")
@ApiOperation(value = "新增报警人联系人组", notes = "新增报警联系人组")
public Result create(@RequestBody AlarmContactGroup alarmContactGroup){
public Result create(@RequestBody AlarmContactGroupAbnormal alarmContactGroup){
return alarmContactGroupService.create(alarmContactGroup);
}
@PutMapping("update")
@ApiOperation(value = "修改报警人联系人组", notes = "修改报警联系人组")
public Result update(@RequestBody AlarmContactGroup alarmContactGroup){
public Result update(@RequestBody AlarmContactGroupAbnormal alarmContactGroup){
return alarmContactGroupService.update(alarmContactGroup);
}

View File

@ -8,6 +8,7 @@ import org.jeecg.modules.base.entity.monitor.Host;
import org.jeecg.modules.base.entity.monitor.Servers;
import org.jeecg.modules.base.entity.postgre.AlarmRule;
import org.jeecg.modules.base.vo.AlarmRuleVo;
import org.jeecg.modules.entity.AlarmRuleAbnormal;
import org.jeecg.modules.feignclient.MonitorAlarm;
import org.jeecg.modules.service.IAlarmRuleService;
import org.springframework.beans.factory.annotation.Autowired;
@ -42,13 +43,13 @@ public class AlarmRuleController {
@PostMapping("create")
@ApiOperation(value = "新增规则信息", notes = "新增规则信息")
public Result create(@RequestBody AlarmRule alarmRule){
public Result create(@RequestBody AlarmRuleAbnormal alarmRule){
return alarmRuleService.create(alarmRule);
}
@PutMapping("update")
@ApiOperation(value = "修改规则信息", notes = "修改规则信息")
public Result update(@RequestBody AlarmRule alarmRule){
public Result update(@RequestBody AlarmRuleAbnormal alarmRule){
return alarmRuleService.update(alarmRule);
}

View File

@ -1,7 +1,6 @@
package org.jeecg.modules.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.base.entity.postgre.AlarmContactGroup;
import org.jeecg.modules.entity.AlarmContactGroupAbnormal;
public interface AlarmContactGroupMapper extends BaseMapper<AlarmContactGroupAbnormal> {

View File

@ -3,7 +3,6 @@ package org.jeecg.modules.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.QueryRequest;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.base.entity.postgre.AlarmContactGroup;
import org.jeecg.modules.entity.AlarmContactGroupAbnormal;
public interface IAlarmContactGroupService extends IService<AlarmContactGroupAbnormal> {