修复数据库语法兼容以及redis接收推流信息导入
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.genersoft.iot.vmp.streamPush.bean;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RedisPushStreamMessage {
|
||||
|
||||
private String gbId;
|
||||
private String app;
|
||||
private String stream;
|
||||
private String name;
|
||||
private boolean status;
|
||||
|
||||
public StreamPush buildstreamPush() {
|
||||
StreamPush push = new StreamPush();
|
||||
push.setApp(app);
|
||||
push.setStream(stream);
|
||||
push.setGbName(name);
|
||||
push.setGbDeviceId(gbId);
|
||||
push.setStartOfflinePush(true);
|
||||
push.setGbStatus(status?"ON":"OFF");
|
||||
return push;
|
||||
}
|
||||
}
|
||||
@@ -76,6 +76,8 @@ public class StreamPush extends CommonGBChannel implements Comparable<StreamPush
|
||||
@Schema(description = "拉起离线推流")
|
||||
private boolean startOfflinePush;
|
||||
|
||||
private String uniqueKey;
|
||||
|
||||
@Override
|
||||
public int compareTo(@NotNull StreamPush streamPushItem) {
|
||||
return Long.valueOf(DateUtil.yyyy_MM_dd_HH_mm_ssToTimestamp(this.createTime)
|
||||
|
||||
Reference in New Issue
Block a user