40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System.ComponentModel;
|
|
namespace SimpleAdmin.Web.Core;
|
|
|
|
/// <summary>
|
|
/// 提供入职审核相关 HTTP 接口。
|
|
/// </summary>
|
|
[ApiDescriptionSettings("Application", Tag = "入职审核")]
|
|
[Route("biz/onboarding/audit")]
|
|
[Route("biz/onboarding/task")]
|
|
[RolePermission]
|
|
public class OnboardingAuditController
|
|
{
|
|
private readonly IOnboardingAuditService _service;
|
|
|
|
public OnboardingAuditController(IOnboardingAuditService service)
|
|
{
|
|
_service = service;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 审核通过任务并创建正式员工档案。
|
|
/// </summary>
|
|
[HttpPost("approve")]
|
|
[DisplayName("审核通过入职任务")]
|
|
public async Task Approve([FromBody] OnboardingAuditActionInput input)
|
|
{
|
|
await _service.Approve(input);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 退回任务并要求候选人补充资料。
|
|
/// </summary>
|
|
[HttpPost("reject")]
|
|
[DisplayName("退回修改入职任务")]
|
|
public async Task Reject([FromBody] OnboardingAuditActionInput input)
|
|
{
|
|
await _service.Reject(input);
|
|
}
|
|
}
|