Example #1
0
def get_apply_put_lists(*args, **kwargs):
    """
    获取投资申请列表
    :param args:
    :param kwargs:
    :return: None/list
    """
    return get_lists(ApplyPut, *args, **kwargs)
Example #2
0
def get_apply_get_lists(*args, **kwargs):
    """
    获取提现申请列表
    :param args:
    :param kwargs:
    :return: None/list
    """
    return get_lists(ApplyGet, *args, **kwargs)
Example #3
0
def get_order_lists(*args, **kwargs):
    """
    获取订单列表
    :param args:
    :param kwargs:
    :return: None/list
    """
    return get_lists(Order, *args, **kwargs)
Example #4
0
def get_admin_role_lists(*args, **kwargs):
    """
    获取角色列表
    :param args:
    :param kwargs:
    :return: None/list
    """
    return get_lists(AdminRole, *args, **kwargs)
def get_child_users(user_id):
    """
    获取子节点
    :param user_id:
    :return:
    """
    condition = {
        'user_pid': user_id
    }
    rows = get_lists(UserProfile, **condition)
    return [(row.user_id, row.nickname, row.type_level) for row in rows]