using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Dao
{
    public interface ISysUserRepository : IRepository<SysUsers>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="total"></param>
        /// <param name="page"></param>
        /// <param name="rows"></param>
        /// <param name="order"></param>
        /// <param name="sort"></param>
        /// <param name="type">0：组用户，1酒店用户</param>
        /// <param name="groupId"></param>
        /// <returns></returns>
        IQueryable<SysUsers> LoadAllByPage(out long total, int page, int rows, string order, string sort, int type, int? groupId, int? hotelID);

        SysUsers Get(string account);

        IList<SysUsers> GetByRole(int roleId);

        IList<SysUsers> GetByGroup(Group group);
    }
}
