临时提交

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

@@ -339,10 +339,11 @@ public class ServerController {
@Operation(summary = "获取系统接入的数据类型", security = @SecurityRequirement(name = JwtUtils.HEADER))
public List<Map<String, Object>> getDataType() {
List<Map<String, Object>> result = new LinkedList<>();
for (ChannelDataType item : ChannelDataType.values()) {
Map<String, Integer> descMap = ChannelDataType.getDescMap();
for (String key : descMap.keySet()) {
Map<String, Object> map = new LinkedHashMap<>();
map.put("key", item.desc);
map.put("value", item.value);
map.put("key", key);
map.put("value", descMap.get(key));
result.add(map);
}
return result;