临时提交

This commit is contained in:
lin
2025-07-30 18:02:49 +08:00
parent 867b26b9a8
commit edeb8d6b3f
6 changed files with 74 additions and 18 deletions

View File

@@ -1,21 +1,24 @@
package com.genersoft.iot.vmp.common.enums;
import java.util.HashMap;
import java.util.Map;
/**
* 支持的通道数据类型
*/
public enum ChannelDataType {
public class ChannelDataType {
GB28181(1,"国标28181"),
STREAM_PUSH(2,"推流设备"),
STREAM_PROXY(3,"拉流代理");
public final static int GB28181 = 1;
public final static int STREAM_PUSH = 2;
public final static int STREAM_PROXY = 3;
public final int value;
public final String desc;
ChannelDataType(Integer value, String desc) {
this.value = value;
this.desc = desc;
public static Map<String, Integer> getDescMap() {
Map<String, Integer> map = new HashMap<>();
map.put("国标28181", ChannelDataType.GB28181);
map.put("推流设备", ChannelDataType.STREAM_PUSH);
map.put("拉流代理", ChannelDataType.STREAM_PROXY);
return map;
}
}