1
This commit is contained in:
+41
-8
@@ -6,12 +6,45 @@ namespace SimpleAdmin.Web.Core;
|
||||
public class OnboardingCompanyController
|
||||
{
|
||||
private readonly IOnboardingCompanyService _service;
|
||||
public OnboardingCompanyController(IOnboardingCompanyService service) => _service = service;
|
||||
|
||||
[HttpGet("page")] public async Task<dynamic> Page([FromQuery] OnboardingCompanyPageInput input) => await _service.Page(input);
|
||||
[HttpGet("list-enabled")] public async Task<dynamic> ListEnabled() => await _service.ListEnabled();
|
||||
[HttpGet("detail")] public async Task<dynamic> Detail([FromQuery] BaseIdInput input) => 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);
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user