修复主订单取消后赠品订单不会取消问题。优化热词

This commit is contained in:
paulGao
2022-04-21 16:25:43 +08:00
parent d46863b5b5
commit 9f965c4e56
4 changed files with 26 additions and 3 deletions

View File

@@ -37,11 +37,18 @@ public class HotWordsManagerController {
return ResultUtil.success();
}
@ApiOperation(value = "设置热词")
@ApiOperation(value = "删除热词")
@DeleteMapping("/{words}")
public ResultMessage<Object> deleteWords(@PathVariable String words) {
esGoodsSearchService.deleteHotWords(words);
return ResultUtil.success();
}
@ApiOperation(value = "删除全部热词")
@DeleteMapping("")
public ResultMessage<Object> deleteWordsAll() {
esGoodsSearchService.deleteHotWords(null);
return ResultUtil.success();
}
}