def customer_info(customer_id): """获取客户信息""" try: ret = get_customer_info(customer_id) return Response.success_with_data('data', ret) except Exception as e: return Response.error(str(e))
def login(): try: token = salesman_login() if token: return Response.success_with_data('data', token) except Exception as e: return Response.error(str(e))
def get_customer_list(salesman_id): """获取客户列表""" try: ret = get_customer_basic_list(salesman_id) return Response.success_with_data('data', ret) except Exception as e: return Response.error(str(e))