This commit is contained in:
fuenmao
2026-08-24 14:26:11 +08:00
parent 01328d567c
commit a51d45372d
54 changed files with 2607 additions and 119 deletions
@@ -0,0 +1,35 @@
namespace SimpleAdmin.Web.Core;
[ApiDescriptionSettings("Application", Tag = "员工入职填写")]
[Route("open/onboarding")]
[AllowAnonymous]
public class OnboardingPublicTaskController
{
private readonly IOnboardingPublicTaskService _service;
private readonly IFileService _fileService;
public OnboardingPublicTaskController(IOnboardingPublicTaskService service, IFileService fileService)
{
_service = service;
_fileService = fileService;
}
[HttpPost("detail")]
public async Task<dynamic> Detail([FromBody] OnboardingTaskPublicAccessInput input)
{
return await _service.Detail(input);
}
[HttpPost("save-employee-info")]
public async Task SaveEmployeeInfo([FromBody] OnboardingTaskPublicSaveInput input)
{
await _service.SaveEmployeeInfo(input);
}
[HttpGet("contract-source")]
public async Task<FileStreamResult> ContractSource([FromQuery] OnboardingPublicContractSourceInput input)
{
var fileId = await _service.GetContractSourceFileId(input);
return await _fileService.Download(new BaseIdInput { Id = fileId });
}
}