补充注释
This commit is contained in:
+22
-1
@@ -1,5 +1,8 @@
|
||||
namespace SimpleAdmin.Web.Core;
|
||||
|
||||
/// <summary>
|
||||
/// 提供入职业务公司相关 HTTP 接口。
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings("Application", Tag = "入职公司管理")]
|
||||
[Route("biz/onboarding/company")]
|
||||
[RolePermission]
|
||||
@@ -12,39 +15,57 @@ public class OnboardingCompanyController
|
||||
_service = service;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询入职业务公司。
|
||||
/// </summary>
|
||||
[HttpGet("page")]
|
||||
public async Task<dynamic> Page([FromQuery] OnboardingCompanyPageInput input)
|
||||
{
|
||||
return await _service.Page(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询已启用公司列表。
|
||||
/// </summary>
|
||||
[HttpGet("list-enabled")]
|
||||
public async Task<dynamic> ListEnabled()
|
||||
{
|
||||
return await _service.ListEnabled();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询公司详情。
|
||||
/// </summary>
|
||||
[HttpGet("detail")]
|
||||
public async Task<dynamic> Detail([FromQuery] BaseIdInput input)
|
||||
{
|
||||
return await _service.Detail(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增入职业务公司。
|
||||
/// </summary>
|
||||
[HttpPost("add")]
|
||||
public async Task Add([FromBody] OnboardingCompanyAddInput input)
|
||||
{
|
||||
await _service.Add(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑入职业务公司。
|
||||
/// </summary>
|
||||
[HttpPost("edit")]
|
||||
public async Task Edit([FromBody] OnboardingCompanyEditInput input)
|
||||
{
|
||||
await _service.Edit(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除入职业务公司。
|
||||
/// </summary>
|
||||
[HttpPost("delete")]
|
||||
public async Task Delete([FromBody] BaseIdListInput input)
|
||||
{
|
||||
await _service.Delete(input);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user