예제 #1
0
 /// <summary>
 ///  根据用户名 密码 查询用户信息
 /// </summary>
 /// <param name="userLoginDto"></param>
 /// <returns></returns>
 public UserModel GetUser(LoginRequestModel loginRequest)
 {
     return(_dbContext.FindSingle(item => item.Username == loginRequest.Username && item.Password == loginRequest.Password));
 }
 /// <summary>
 /// 根据权限值获取权限信息
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public PermissionsModel GetPermissions(string value)
 {
     return(_dbContext.FindSingle(item => item.PermissionsValue == value));
 }