系统通知修改
parent
bdcc2fa0e2
commit
4315ea7571
|
@ -100,7 +100,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
|
||||
/// <summary>设置已读 </summary>
|
||||
|
||||
[HttpPut("{systemNoticeId:guid}")]
|
||||
public async Task<IResponseOutput> SetSystemNoticeHaveRead(Guid systemNoticeId)
|
||||
{
|
||||
var systemNotice = (await _systemNoticeRepository.FirstOrDefaultAsync(t => t.Id == systemNoticeId)).IfNullThrowException();
|
||||
|
|
|
@ -205,6 +205,15 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
}
|
||||
|
||||
|
||||
//[HttpGet]
|
||||
//public async Task<FileContentResult> NoneDicomFilePreview(string relativePath)
|
||||
//{
|
||||
// var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).IfNullThrowException().FullName;
|
||||
|
||||
// var _fileStorePath = Path.Combine(rootPath, relativePath);
|
||||
|
||||
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 上传非Dicom 文件 支持压缩包
|
||||
|
@ -296,11 +305,14 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
private string GetStoreFileName(string fileName)
|
||||
{
|
||||
var realName = fileName;
|
||||
//var realName = fileName;
|
||||
|
||||
var fileNameEX = Path.GetExtension(realName);
|
||||
//var fileNameEX = Path.GetExtension(realName);
|
||||
|
||||
var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileNameEX;
|
||||
//var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileNameEX;
|
||||
|
||||
|
||||
var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileName;
|
||||
|
||||
return trustedFileNameForFileStorage;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue