修改
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
he 2025-03-14 15:11:21 +08:00
parent 7a75d107dc
commit 0b937663ff
2 changed files with 9 additions and 2 deletions

View File

@ -152,7 +152,9 @@ namespace IRaCIS.Core.Application.Service
[HttpPost]
public async Task<IResponseOutput> SetAuthorizedView(SetAttachmentAuthorizedView inDto)
{
await _attachmentrepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new Attachment() { IsAuthorizedView = inDto.IsAuthorizedView }, true);
await _attachmentrepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new Attachment() { IsAuthorizedView = inDto.IsAuthorizedView });
await _attachmentrepository.SaveChangesAsync();
return ResponseOutput.Ok();
}

View File

@ -16,6 +16,11 @@
public Guid? TrialId { get; set; }
/// <summary>
/// 是否授权
/// </summary>
public bool IsAuthorizedView { get; set; } = false;
public string BlindName { get; set; } = string.Empty;
@ -25,7 +30,7 @@
public string FullName => LastName + " / " + FirstName;
public string LastName { get; set; } = string.Empty;
public string UserName { get; set; }
public string UserName { get; set; } = string.Empty;
}
public class SetAttachmentAuthorizedView