1111
This commit is contained in:
+7
@@ -1,3 +1,4 @@
|
||||
using System.ComponentModel;
|
||||
namespace SimpleAdmin.Web.Core;
|
||||
|
||||
/// <summary>
|
||||
@@ -5,6 +6,7 @@ namespace SimpleAdmin.Web.Core;
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings("Application", Tag = "入职模板")]
|
||||
[Route("biz/onboarding/template")]
|
||||
[Route("biz/onboarding/setup")]
|
||||
[RolePermission]
|
||||
public class OnboardingTemplateController
|
||||
{
|
||||
@@ -19,6 +21,7 @@ public class OnboardingTemplateController
|
||||
/// 分页查询入职模板。
|
||||
/// </summary>
|
||||
[HttpGet("page")]
|
||||
[DisplayName("分页查询入职模板")]
|
||||
public async Task<dynamic> Page([FromQuery] OnboardingTemplatePageInput input)
|
||||
{
|
||||
return await _service.Page(input);
|
||||
@@ -28,6 +31,7 @@ public class OnboardingTemplateController
|
||||
/// 查询入职模板详情及全部关联配置。
|
||||
/// </summary>
|
||||
[HttpGet("detail")]
|
||||
[DisplayName("查询入职模板详情")]
|
||||
public async Task<dynamic> Detail([FromQuery] BaseIdInput input)
|
||||
{
|
||||
return await _service.Detail(input);
|
||||
@@ -37,6 +41,7 @@ public class OnboardingTemplateController
|
||||
/// 新增或编辑入职模板。
|
||||
/// </summary>
|
||||
[HttpPost("save")]
|
||||
[DisplayName("保存入职业务模板")]
|
||||
public async Task<long> Save([FromBody] OnboardingTemplateSaveInput input)
|
||||
{
|
||||
return await _service.Save(input);
|
||||
@@ -46,6 +51,7 @@ public class OnboardingTemplateController
|
||||
/// 删除未被任务使用的入职模板。
|
||||
/// </summary>
|
||||
[HttpPost("delete")]
|
||||
[DisplayName("删除入职业务模板")]
|
||||
public async Task Delete([FromBody] BaseIdListInput input)
|
||||
{
|
||||
await _service.Delete(input);
|
||||
@@ -55,6 +61,7 @@ public class OnboardingTemplateController
|
||||
/// 查询指定公司、部门和岗位可使用的入职模板。
|
||||
/// </summary>
|
||||
[HttpGet("list-enabled")]
|
||||
[DisplayName("查询可用入职模板")]
|
||||
public async Task<dynamic> ListEnabled(
|
||||
[FromQuery] long companyId,
|
||||
[FromQuery] long departmentId,
|
||||
|
||||
Reference in New Issue
Block a user