@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user