代码迁移
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
he 2025-08-26 15:28:39 +08:00
parent 9782c5ee04
commit 046ad55b57
2 changed files with 19 additions and 1 deletions

View File

@ -75,6 +75,14 @@ namespace IRaCIS.Core.Application.ViewModel
}
public class SetIsIgnoreUncommonlyInDto
{
public Guid Id { get; set; }
public bool IsIgnoreUncommonly { get; set; }
}
///<summary>UserLogQuery 列表查询参数模型</summary>
public class UserLogQuery : PageInput
{

View File

@ -919,7 +919,17 @@ namespace IRaCIS.Core.Application.Service
}
/// <summary>
/// 设置是否忽略异地登录
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<IResponseOutput> SetIsIgnoreUncommonly(SetIsIgnoreUncommonlyInDto inDto)
{
await _userLogRepository.UpdatePartialFromQueryAsync(inDto.Id, x => new UserLog() { IsIgnoreUncommonly = inDto.IsIgnoreUncommonly }, true);
return ResponseOutput.Ok();
}