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

Temp_Event_IRC_Met8
he 2025-02-25 14:26:21 +08:00
parent 8496e6bcd7
commit 8d6bf0c7b1
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class SetAuthorizedViewInDto
{ {
public Guid Id { get; set; } public Guid Id { get; set; }
public bool IsAuthorizedView { get; set; } public bool IsEnable { get; set; }
} }
public class GetTrialFileTypeDataInDto public class GetTrialFileTypeDataInDto

View File

@ -166,7 +166,7 @@ public class TrialFileTypeService(IRepository<TrialFileType> _trialFileTypeRepos
[HttpPost] [HttpPost]
public async Task<IResponseOutput> SetAuthorizedView(SetAuthorizedViewInDto inDto) public async Task<IResponseOutput> SetAuthorizedView(SetAuthorizedViewInDto inDto)
{ {
await _trialFileTypeRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new TrialFileType() { IsAuthorizedView = inDto.IsAuthorizedView }, true); await _trialFileTypeRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new TrialFileType() { IsEnable = inDto.IsEnable }, true);
return ResponseOutput.Ok(); return ResponseOutput.Ok();
} }