コード例 #1
0
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))
コード例 #2
0
def login():
    try:
        token = salesman_login()
        if token:
            return Response.success_with_data('data', token)
    except Exception as e:
        return Response.error(str(e))
コード例 #3
0
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))