事件推送消息
This commit is contained in:
@@ -33,6 +33,11 @@
|
||||
<artifactId>common-mq</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.njcn</groupId>
|
||||
<artifactId>access-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<artifactId>zl-event-api</artifactId>
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user