代码优化
1.推送消息屏蔽,只推送治理设备信息; 2.文件下载优化 3.公共方法提取
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
package com.njcn.zlevent.pojo.dto;
|
||||
|
||||
import com.njcn.access.annotation.ParamName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:用来组装通知用户事件的实体
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/9/14 14:48
|
||||
*/
|
||||
@Data
|
||||
public class NoticeUserDto implements Serializable {
|
||||
|
||||
@ParamName("push_clientid")
|
||||
private List<String> pushClientId;
|
||||
|
||||
@ParamName("title")
|
||||
private String title;
|
||||
|
||||
@ParamName("content")
|
||||
private String content;
|
||||
|
||||
@ParamName("payload")
|
||||
private Payload payload;
|
||||
|
||||
@Data
|
||||
public static class Payload implements Serializable {
|
||||
|
||||
@ApiModelProperty("事件类型 0:暂态事件 1:稳态事件 2:设备事件 3:设备告警")
|
||||
@ParamName("type")
|
||||
private Integer type;
|
||||
@ApiModelProperty("设备告警 /pages/message/report\n" +
|
||||
"运行时间 /pages/message/run\n" +
|
||||
"暂态事件 /pages/message/transient\n" +
|
||||
"稳态越限 /pages/message/steady")
|
||||
@ParamName("path")
|
||||
private String path;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user