110 lines
3.0 KiB
C#
110 lines
3.0 KiB
C#
namespace SimpleAdmin.Web.Core;
|
|
|
|
[ApiDescriptionSettings("Application", Tag = "入职合同模板")]
|
|
[Route("biz/onboarding/contract-template")]
|
|
[RolePermission]
|
|
public class OnboardingContractTemplateController
|
|
{
|
|
private readonly IOnboardingContractTemplateService _service;
|
|
|
|
public OnboardingContractTemplateController(IOnboardingContractTemplateService service)
|
|
{
|
|
_service = service;
|
|
}
|
|
|
|
[HttpGet("page")]
|
|
public async Task<dynamic> Page([FromQuery] OnboardingContractTemplatePageInput input)
|
|
{
|
|
return await _service.Page(input);
|
|
}
|
|
|
|
[HttpGet("detail")]
|
|
public async Task<dynamic> Detail([FromQuery] BaseIdInput input)
|
|
{
|
|
return await _service.Detail(input);
|
|
}
|
|
|
|
[HttpPost("add")]
|
|
public async Task Add([FromBody] OnboardingContractTemplateAddInput input)
|
|
{
|
|
await _service.Add(input);
|
|
}
|
|
|
|
[HttpPost("edit")]
|
|
public async Task Edit([FromBody] OnboardingContractTemplateEditInput input)
|
|
{
|
|
await _service.Edit(input);
|
|
}
|
|
|
|
[HttpPost("delete")]
|
|
public async Task Delete([FromBody] BaseIdListInput input)
|
|
{
|
|
await _service.Delete(input);
|
|
}
|
|
|
|
[HttpGet("version/page")]
|
|
public async Task<dynamic> VersionPage([FromQuery] OnboardingContractVersionPageInput input)
|
|
{
|
|
return await _service.VersionPage(input);
|
|
}
|
|
|
|
[HttpPost("version/add")]
|
|
public async Task AddVersion([FromBody] OnboardingContractVersionAddInput input)
|
|
{
|
|
await _service.AddVersion(input);
|
|
}
|
|
|
|
[HttpPost("version/set-status")]
|
|
public async Task SetVersionStatus([FromBody] OnboardingContractVersionStatusInput input)
|
|
{
|
|
await _service.SetVersionStatus(input);
|
|
}
|
|
|
|
[HttpGet("variable/page")]
|
|
public async Task<dynamic> VariablePage([FromQuery] OnboardingTemplateVariablePageInput input)
|
|
{
|
|
return await _service.VariablePage(input);
|
|
}
|
|
|
|
[HttpPost("variable/add")]
|
|
public async Task AddVariable([FromBody] OnboardingTemplateVariableAddInput input)
|
|
{
|
|
await _service.AddVariable(input);
|
|
}
|
|
|
|
[HttpPost("variable/edit")]
|
|
public async Task EditVariable([FromBody] OnboardingTemplateVariableEditInput input)
|
|
{
|
|
await _service.EditVariable(input);
|
|
}
|
|
|
|
[HttpPost("variable/delete")]
|
|
public async Task DeleteVariable([FromBody] BaseIdListInput input)
|
|
{
|
|
await _service.DeleteVariable(input);
|
|
}
|
|
|
|
[HttpGet("scope/page")]
|
|
public async Task<dynamic> ScopePage([FromQuery] OnboardingContractScopePageInput input)
|
|
{
|
|
return await _service.ScopePage(input);
|
|
}
|
|
|
|
[HttpPost("scope/add")]
|
|
public async Task AddScope([FromBody] OnboardingContractScopeAddInput input)
|
|
{
|
|
await _service.AddScope(input);
|
|
}
|
|
|
|
[HttpPost("scope/edit")]
|
|
public async Task EditScope([FromBody] OnboardingContractScopeEditInput input)
|
|
{
|
|
await _service.EditScope(input);
|
|
}
|
|
|
|
[HttpPost("scope/delete")]
|
|
public async Task DeleteScope([FromBody] BaseIdListInput input)
|
|
{
|
|
await _service.DeleteScope(input);
|
|
}
|
|
} |