| | |
| | | package cn.lili.controller.lmk; |
| | | |
| | | import cn.lili.elasticsearch.EsSuffix; |
| | | import cn.lili.group.Update; |
| | | import cn.lili.group.Add; |
| | | import cn.lili.modules.lmk.domain.form.VideoAuditingForm; |
| | |
| | | import cn.lili.modules.lmk.domain.form.VideoRecommendForm; |
| | | import cn.lili.modules.lmk.domain.form.WxVideoForm; |
| | | import cn.lili.modules.lmk.domain.query.ManagerVideoQuery; |
| | | import cn.lili.modules.lmk.service.EsService; |
| | | import org.springframework.beans.factory.annotation.Qualifier; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | |
| | | public class VideoController { |
| | | |
| | | private final VideoService videoService; |
| | | |
| | | @Qualifier("videoEsServiceImpl") |
| | | private final EsService esService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | |
| | | public Result down(@RequestBody @Validated VideoDownForm form) { |
| | | return videoService.down(form); |
| | | } |
| | | |
| | | @PostMapping("/recreate/es/index") |
| | | @ApiOperation(value = "重建es索引", notes = "重建es索引") |
| | | public Result recreateEsIndex() { |
| | | esService.recreateIndex(EsSuffix.VIDEO_INDEX_NAME, "/es/video.json"); |
| | | return Result.ok(); |
| | | } |
| | | } |