修改一版

This commit is contained in:
he
2022-06-24 14:20:07 +08:00
parent e18ea0fd9c
commit 7aa5e843f6
9 changed files with 162 additions and 2 deletions
@@ -390,6 +390,36 @@ namespace IRaCIS.Core.API.Controllers
}
/// <summary>
/// 上传临床数据模板
/// </summary>
/// <param name="trialId"></param>
/// <returns></returns>
[HttpPost("ClinicalData/UploadClinicalTemplate/{trialId:guid}")]
[DisableRequestSizeLimit]
public async Task<IResponseOutput<List<FileDto>>> UploadClinicalTemplate(Guid trialId=default(Guid))
{
var filerelativePath = string.Empty;
List<FileDto> fileDtos = new List<FileDto>();
await FileUploadAsync(async (fileName) =>
{
var (serverFilePath, relativePath, fileRealName) = FileStoreHelper.GetClinicalTemplatePath(_hostEnvironment, fileName, trialId);
//插入临床pdf 路径
filerelativePath = relativePath;
fileDtos.Add(new FileDto()
{
FileName = fileName,
Path = relativePath
});
return serverFilePath;
});
return ResponseOutput.Ok(fileDtos);
}
/// <summary>