def get_paginated_channels(dao: Dao = Depends(get_dao), skip: int = 0, limit: int = 10, q: str = None, auth: authorization.Rules = Depends(get_rules)): """List all channels, as a paginated response""" user_id = auth.get_user() return dao.get_channels(skip, limit, q, user_id)
def get_channels( dao: Dao = Depends(get_dao), q: str = None, auth: authorization.Rules = Depends(get_rules), ): """List all channels""" user_id = auth.get_user() return dao.get_channels(0, -1, q, user_id)
def get_channels( public: bool = True, dao: Dao = Depends(get_dao), q: str = None, auth: authorization.Rules = Depends(get_rules), ): """List all channels""" user_id = auth.get_user() return dao.get_channels(0, -1, q, user_id, include_public=public)
def get_paginated_channels( dao: Dao = Depends(get_dao), skip: int = 0, limit: int = PAGINATION_LIMIT, public: bool = True, q: str = None, auth: authorization.Rules = Depends(get_rules), ): """List all channels, as a paginated response""" user_id = auth.get_user() return dao.get_channels(skip, limit, q, user_id, include_public=public)
def get_paginated_channels( dao: Dao = Depends(get_dao), skip: int = 0, limit: int = 10, q: str = None): """List all channels, as a paginated response""" return dao.get_channels(skip, limit, q)
def get_channels(dao: Dao = Depends(get_dao), q: str = None): """List all channels""" return dao.get_channels(0, -1, q)
def get_channels( dao: Dao = Depends(get_dao), skip: int = 0, limit: int = 10, q: str = None): """List all channels""" return dao.get_channels(skip, limit, q)