first updata
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,43 @@
|
||||
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": "反对"}
|
||||
]
|
||||
}
|
||||
]}"""
|
||||
@@ -0,0 +1,6 @@
|
||||
from rest_framework.response import Response
|
||||
from server.util.constant_util import *
|
||||
|
||||
|
||||
def build_response(code=CODE_SUCCESS, msg='操作成功', data=''):
|
||||
return Response({'code': code, 'msg': msg, 'data': data})
|
||||
Reference in New Issue
Block a user