初始化CRICS
This commit is contained in:
29
Service/ISysUserManager.cs
Normal file
29
Service/ISysUserManager.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Domain;
|
||||
|
||||
namespace Service
|
||||
{
|
||||
public interface ISysUserManager : IGenericManager<SysUsers>
|
||||
{
|
||||
IList<SysUsers> LoadAllByPage(out long total, int page, int rows, string order, string sort, int type, int? groupId, int? hotelID);
|
||||
|
||||
SysUsers Get(string account);
|
||||
|
||||
SysUsers Get(string account, string password);
|
||||
|
||||
int GetCount();
|
||||
|
||||
void Update(SysUsers entity, string password);
|
||||
|
||||
/// <summary>
|
||||
/// 判断用户是否拥有指定的权限
|
||||
/// </summary>
|
||||
/// <param name="account">用户帐号</param>
|
||||
/// <param name="authorityId">权限ID</param>
|
||||
/// <returns></returns>
|
||||
bool HasAuthority(string account, int authorityId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user