@@ -70,6 +70,20 @@ public class TrialNormalRecordService(IRepository<TrialNormalRecord> _trialNorma
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权文档
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<IResponseOutput> AuthorizedTTrialNormalRecord(AuthorizedTrialFinalRecordInDto inDto)
|
||||
{
|
||||
await _trialNormalRecordRepository.UpdatePartialFromQueryAsync(t => inDto.Ids.Contains(t.Id), t => new TrialNormalRecord() { IsAuthorizedView = inDto.IsAuthorizedView });
|
||||
await _trialNormalRecordRepository.SaveChangesAsync();
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
[HttpDelete("{trialNormalRecordId:guid}")]
|
||||
public async Task<IResponseOutput> DeleteTrialNormalRecord(Guid trialNormalRecordId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user