You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
472 B
C#
20 lines
472 B
C#
namespace Admin.NET.Plugin.HwPortal;
|
|
|
|
[Route("portal/search/admin")]
|
|
public class HwSearchAdminController : HwPortalControllerBase
|
|
{
|
|
private readonly IHwSearchRebuildService _service;
|
|
|
|
public HwSearchAdminController(IHwSearchRebuildService service)
|
|
{
|
|
_service = service;
|
|
}
|
|
|
|
[HttpPost("rebuild")]
|
|
public async Task<HwPortalAjaxResult> Rebuild()
|
|
{
|
|
await _service.RebuildAllAsync();
|
|
return Success("重建完成");
|
|
}
|
|
}
|