111
This commit is contained in:
+14
-2
@@ -36,13 +36,25 @@ public class OnboardingPublicTaskController
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下载根据当前任务资料动态生成并已替换变量的合同文件。
|
||||
/// 校验合同变量并提前生成候选人的合同文件。
|
||||
/// </summary>
|
||||
[HttpPost("prepare-contract")]
|
||||
public async Task<OnboardingPublicContractPrepareOutput> PrepareContract(
|
||||
[FromBody] OnboardingPublicContractSourceInput input)
|
||||
{
|
||||
return await _service.PrepareContract(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下载已经准备完成并替换变量的合同文件。
|
||||
/// </summary>
|
||||
[HttpGet("contract-source")]
|
||||
[ResponseCache(Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public async Task<FileStreamResult> ContractSource([FromQuery] OnboardingPublicContractSourceInput input)
|
||||
{
|
||||
var fileId = await _service.GetContractSourceFileId(input);
|
||||
return await _fileService.Download(new BaseIdInput { Id = fileId });
|
||||
return await _fileService.Download(new BaseIdInput { Id = fileId })
|
||||
?? throw Oops.Bah("合同文件不存在,请重新准备合同");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user