# encoding: UTF-8
from ..dao.createGroupUserDao import CreateGroupDao


class CreateGroupService(object):
    def __init__(self):
        pass

    @staticmethod
    def get_service_group_list_no_filters_page(session, page, limit):
        scene_list, total = CreateGroupDao.get_group_list_no_filters(session, page=page, limit=limit)
        return scene_list, total

    @staticmethod
    def get_service_group_list_all_data(session):
        scene_list = CreateGroupDao.get_group_all_data(session)
        return scene_list

    @staticmethod
    def get_service_group_info_data_by_email(session, email):
        scene_list = CreateGroupDao.get_group_detail_info_by_email(session, email)
        return scene_list
