44 lines
2.3 KiB
Python
44 lines
2.3 KiB
Python
CODE_SUCCESS = 0
|
|
CODE_FAILED = -1
|
|
DUPLICATE = 1
|
|
|
|
SNAPSHOT_JSON_DATA = """{
|
|
"id": "root",
|
|
"topic": "想法",
|
|
"children": [{"id": "guoan",
|
|
"topic": "guoan",
|
|
"direction": "left",
|
|
"expanded": true,
|
|
"children": [
|
|
{"id": "看法", "topic": "看法"},
|
|
{"id": "依据", "topic": "依据"},
|
|
{"id": "中立", "topic": "中立"},
|
|
{"id": "反对", "topic": "反对"}
|
|
]
|
|
},
|
|
{
|
|
"id": "组员1",
|
|
"topic": "组员1",
|
|
"direction": "right",
|
|
"expanded": true,
|
|
"children": [
|
|
{"id": "看法1", "topic": "看法"},
|
|
{"id": "依据1", "topic": "依据"},
|
|
{"id": "中立1", "topic": "中立"},
|
|
{"id": "反对1", "topic": "反对"}
|
|
]
|
|
},
|
|
{
|
|
"id": "组员2",
|
|
"topic": "组员2",
|
|
"direction": "lift",
|
|
"expanded": true,
|
|
"children": [
|
|
{"id": "看法2", "topic": "看法"},
|
|
{"id": "依据2", "topic": "依据"},
|
|
{"id": "中立2", "topic": "中立"},
|
|
{"id": "反对2", "topic": "反对"}
|
|
]
|
|
}
|
|
]}"""
|