逻辑调整
This commit is contained in:
+2
-56
@@ -1,7 +1,7 @@
|
||||
namespace SimpleAdmin.Web.Core;
|
||||
|
||||
/// <summary>
|
||||
/// 提供合同模板、版本、变量和适用范围相关 HTTP 接口。
|
||||
/// 提供合同模板、DOCX 版本和自动识别变量配置接口。
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings("Application", Tag = "入职合同模板")]
|
||||
[Route("biz/onboarding/contract-template")]
|
||||
@@ -118,15 +118,6 @@ public class OnboardingContractTemplateController
|
||||
return await _service.VariablePage(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增模板变量。
|
||||
/// </summary>
|
||||
[HttpPost("variable/add")]
|
||||
public async Task AddVariable([FromBody] OnboardingTemplateVariableAddInput input)
|
||||
{
|
||||
await _service.AddVariable(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑模板变量。
|
||||
/// </summary>
|
||||
@@ -135,49 +126,4 @@ public class OnboardingContractTemplateController
|
||||
{
|
||||
await _service.EditVariable(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除模板变量。
|
||||
/// </summary>
|
||||
[HttpPost("variable/delete")]
|
||||
public async Task DeleteVariable([FromBody] BaseIdListInput input)
|
||||
{
|
||||
await _service.DeleteVariable(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询合同适用范围。
|
||||
/// </summary>
|
||||
[HttpGet("scope/page")]
|
||||
public async Task<dynamic> ScopePage([FromQuery] OnboardingContractScopePageInput input)
|
||||
{
|
||||
return await _service.ScopePage(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增合同适用范围。
|
||||
/// </summary>
|
||||
[HttpPost("scope/add")]
|
||||
public async Task AddScope([FromBody] OnboardingContractScopeAddInput input)
|
||||
{
|
||||
await _service.AddScope(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑合同适用范围。
|
||||
/// </summary>
|
||||
[HttpPost("scope/edit")]
|
||||
public async Task EditScope([FromBody] OnboardingContractScopeEditInput input)
|
||||
{
|
||||
await _service.EditScope(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除合同适用范围。
|
||||
/// </summary>
|
||||
[HttpPost("scope/delete")]
|
||||
public async Task DeleteScope([FromBody] BaseIdListInput input)
|
||||
{
|
||||
await _service.DeleteScope(input);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user