Files
2024-11-18 16:28:03 +08:00

44 lines
2.2 KiB
Python

CODE_SUCCESS = 0
CODE_FAILED = -1
DUPLICATE = 1
SNAPSHOT_JSON_DATA = """{
"id": "root",
"topic": "工业防火墙",
"children": [{"id": "easy",
"topic": "网络配置",
"direction": "left",
"expanded": false,
"children": [
{"id": "easy1", "topic": "接口"},
{"id": "easy2", "topic": "交换"},
{"id": "easy3", "topic": "路由"}
]
},
{
"id": "open",
"topic": "安全防护",
"direction": "left",
"expanded": false,
"children": [
{"id": "open1", "topic": "Dos防护"},
{"id": "open2", "topic": "入侵防护"}
]
},
{
"id": "powerful",
"topic": "对象配置",
"direction": "right",
"expanded": false,
"children": [
{"id": "powerful1", "topic": "网络"},
{"id": "powerful2", "topic": "服务"},
{"id": "powerful3", "topic": "应用"}
]
},
{
"id": "other",
"topic": "日志审计",
"direction": "right"
}]}"""