代码优化
This commit is contained in:
+12
-3
@@ -1,4 +1,4 @@
|
||||
namespace SimpleAdmin.Web.Core;
|
||||
namespace SimpleAdmin.Web.Core;
|
||||
|
||||
/// <summary>
|
||||
/// 提供入职业务岗位相关 HTTP 接口。
|
||||
@@ -33,6 +33,15 @@ public class OnboardingPositionController
|
||||
return await _service.ListEnabled(companyId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询指定部门的已启用岗位。
|
||||
/// </summary>
|
||||
[HttpGet("list-by-department")]
|
||||
public async Task<dynamic> ListByDepartment([FromQuery] long departmentId)
|
||||
{
|
||||
return await _service.ListEnabledByDepartment(departmentId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询岗位详情。
|
||||
/// </summary>
|
||||
@@ -61,11 +70,11 @@ public class OnboardingPositionController
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除入职业务岗位。
|
||||
/// 批量删除入职业务岗位。
|
||||
/// </summary>
|
||||
[HttpPost("delete")]
|
||||
public async Task Delete([FromBody] BaseIdListInput input)
|
||||
{
|
||||
await _service.Delete(input);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user