refactor(service): 修改前置告警信息返回类型为专用VO
- 添加FrontWarnVo类用于封装前置告警信息 - 将getFrontWarnInfo方法的返回类型从Page<CsEventPO>改为Page<FrontWarnVo> - 在实现类中创建新的Page<FrontWarnVo>对象并复制数据 - 使用BeanUtils将CsEventPO属性复制到FrontWarnVo对象 - 更新控制器中的返回类型以匹配新的VO类型 - 移除旧的FrontWarnVO类定义
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
package com.njcn.csharmonic.pojo.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author xy
|
||||
*/
|
||||
@Data
|
||||
public class FrontWarnVO implements Serializable {
|
||||
|
||||
@ApiModelProperty("前置id")
|
||||
private String frontId;
|
||||
|
||||
@ApiModelProperty("前置ip")
|
||||
private String frontIp;
|
||||
|
||||
@ApiModelProperty("前置进程号")
|
||||
private Integer processNo;
|
||||
|
||||
@ApiModelProperty("事件发生时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty("告警描述")
|
||||
private String tag;
|
||||
|
||||
@ApiModelProperty("告警码")
|
||||
private Integer code;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user