def success_result(data=None, code=None):
    value = ResultEnum.success.value
    return {'code': (code if (code is not None) else value['code']), 'msg': value['msg'], 'data': (data if (data is not None) else '')}
def success_result(data=None, code=None):
    value = ResultEnum.success.value
    return {'code': (code if (code is not None) else value['code']), 'msg': value['msg'], 'data': (data if (data is not None) else )}