7 lines
205 B
Python
7 lines
205 B
Python
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})
|