50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
namespace SimpleAdmin.Web.Core;
|
|
|
|
[ApiDescriptionSettings("Application", Tag = "入职公司管理")]
|
|
[Route("biz/onboarding/company")]
|
|
[RolePermission]
|
|
public class OnboardingCompanyController
|
|
{
|
|
private readonly IOnboardingCompanyService _service;
|
|
|
|
public OnboardingCompanyController(IOnboardingCompanyService service)
|
|
{
|
|
_service = service;
|
|
}
|
|
|
|
[HttpGet("page")]
|
|
public async Task<dynamic> Page([FromQuery] OnboardingCompanyPageInput input)
|
|
{
|
|
return await _service.Page(input);
|
|
}
|
|
|
|
[HttpGet("list-enabled")]
|
|
public async Task<dynamic> ListEnabled()
|
|
{
|
|
return await _service.ListEnabled();
|
|
}
|
|
|
|
[HttpGet("detail")]
|
|
public async Task<dynamic> Detail([FromQuery] BaseIdInput input)
|
|
{
|
|
return await _service.Detail(input);
|
|
}
|
|
|
|
[HttpPost("add")]
|
|
public async Task Add([FromBody] OnboardingCompanyAddInput input)
|
|
{
|
|
await _service.Add(input);
|
|
}
|
|
|
|
[HttpPost("edit")]
|
|
public async Task Edit([FromBody] OnboardingCompanyEditInput input)
|
|
{
|
|
await _service.Edit(input);
|
|
}
|
|
|
|
[HttpPost("delete")]
|
|
public async Task Delete([FromBody] BaseIdListInput input)
|
|
{
|
|
await _service.Delete(input);
|
|
}
|
|
} |