| | |
| | | |
| | | import cn.lili.group.Update; |
| | | import cn.lili.group.Add; |
| | | import cn.lili.modules.lmk.domain.form.WxVideoForm; |
| | | import cn.lili.modules.lmk.domain.query.VideoGoodsEsQuery; |
| | | import cn.lili.modules.lmk.domain.query.WxVideoTagQuery; |
| | | import cn.lili.modules.lmk.service.VideoService; |
| | | import cn.lili.modules.search.service.EsGoodsSearchService; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | public class VideoTagController { |
| | | |
| | | private final VideoTagService videoTagService; |
| | | |
| | | private final EsGoodsSearchService goodsSearchService; |
| | | @GetMapping("/recommend") |
| | | @ApiOperation(value = "推荐标签", notes = "推荐标签") |
| | | public Result recommend(WxVideoTagQuery query) { |
| | | return videoTagService.recommend(query); |
| | | } |
| | | @ApiOperation(value = "商品分页-发布视频时关联商品") |
| | | @GetMapping("/video/es") |
| | | public Result videoGoodsEsPage(VideoGoodsEsQuery query) { |
| | | return goodsSearchService.videoGoodsEsPage(query); |
| | | } |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | public Result add(@RequestBody @Validated(Add.class) VideoTagForm form) { |