26 lines
655 B
C#
26 lines
655 B
C#
namespace SimpleAdmin.Web.Core;
|
|
|
|
[ApiDescriptionSettings("Application", Tag = "入职审核")]
|
|
[Route("biz/onboarding/audit")]
|
|
[RolePermission]
|
|
public class OnboardingAuditController
|
|
{
|
|
private readonly IOnboardingAuditService _service;
|
|
|
|
public OnboardingAuditController(IOnboardingAuditService service)
|
|
{
|
|
_service = service;
|
|
}
|
|
|
|
[HttpPost("approve")]
|
|
public async Task Approve([FromBody] OnboardingAuditActionInput input)
|
|
{
|
|
await _service.Approve(input);
|
|
}
|
|
|
|
[HttpPost("reject")]
|
|
public async Task Reject([FromBody] OnboardingAuditActionInput input)
|
|
{
|
|
await _service.Reject(input);
|
|
}
|
|
} |