云数据模块修改

This commit is contained in:
chfei committed 2026-09-24 16:41:48 +08:00
1 parent 707eb5664a
commit 2f406c840f
6 files changed
+28 -5

No files matched your search

@@ -19,12 +19,14 @@ namespace Store.Modules.CloudProduct.Controllers
private readonly IGoodsService _goodsService;
private readonly IOpenSearchService _searchService;
private readonly IRawDataStorage _rawDataStorage;
private readonly GoodsIndexJob _goodsIndexJob;
public GoodsController(IGoodsService goodsService, IOpenSearchService searchService, IRawDataStorage rawDataStorage)
public GoodsController(IGoodsService goodsService, IOpenSearchService searchService, IRawDataStorage rawDataStorage, GoodsIndexJob goodsIndexJob)
{
_goodsService = goodsService;
_searchService = searchService;
_rawDataStorage = rawDataStorage;
_goodsIndexJob = goodsIndexJob;
}
[HttpGet]
@@ -32,7 +34,11 @@ namespace Store.Modules.CloudProduct.Controllers
{
return DateTime.Now.ToLongDateString();
}
[HttpGet]
public async Task Job()
{
await _goodsIndexJob.ProcessPendingAsync();
}
/// <summary>
/// 搜索
/// </summary>