| | |
| | | package cn.lili.modules.lmk.service; |
| | | |
| | | import cn.lili.base.AbsQuery; |
| | | import cn.lili.group.Add; |
| | | import cn.lili.modules.lmk.domain.entity.Video; |
| | | import cn.lili.modules.lmk.domain.form.VideoAuditingForm; |
| | | import cn.lili.modules.lmk.domain.form.VideoDownForm; |
| | | import cn.lili.modules.lmk.domain.form.VideoRecommendForm; |
| | | import cn.lili.modules.lmk.domain.query.ManagerVideoQuery; |
| | | import cn.lili.modules.lmk.domain.form.*; |
| | | import cn.lili.modules.lmk.domain.query.*; |
| | | import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import cn.lili.base.Result; |
| | | import cn.lili.modules.lmk.domain.form.VideoForm; |
| | | import cn.lili.modules.lmk.domain.query.VideoQuery; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(VideoForm form); |
| | | Result add(WxVideoForm form); |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(VideoForm form); |
| | | Result update(WxVideoForm form); |
| | | |
| | | /** |
| | | * 批量删除 |
| | |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result publish(VideoForm form); |
| | | Result publish(WxVideoForm form); |
| | | |
| | | /** |
| | | * 平台端视频分页 |
| | |
| | | * 小程序端的视频推荐接口 |
| | | * |
| | | * @return |
| | | * @param query |
| | | */ |
| | | Result recommendVideo(AbsQuery query); |
| | | Result recommendVideo(VideoQuery query); |
| | | |
| | | Result healthRecommendVideo(WxHealthVideoQuery query); |
| | | |
| | | /** |
| | | * 批量更新视频收藏数量 |
| | |
| | | * @param numList |
| | | */ |
| | | void updateCollectNumBatch(List<CollectTypeNumVO> numList); |
| | | |
| | | /** |
| | | * 批量更新视频评论数量 |
| | | * |
| | | * @param numList |
| | | */ |
| | | void updateCommentNumBatch(List<CollectTypeNumVO> numList); |
| | | |
| | | /** |
| | | * 保存视频观看记录 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result saveViewRecord(VideoFootPrintForm form); |
| | | |
| | | /** |
| | | * 获取视频主页作者信息 |
| | | * |
| | | * @param authorId |
| | | * @return |
| | | */ |
| | | Result getAuthorInfo(String authorId); |
| | | |
| | | /** |
| | | * 获取视频主页作者视频分页 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result getAuthorVideoPage(AuthorVideoQuery query); |
| | | |
| | | /** |
| | | * 获取视频主页作者收藏视频分页 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result getAuthorCollectVideoPage(AuthorVideoQuery query); |
| | | |
| | | /** |
| | | * 保存视频主页的个人信息修改 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result homePageInfoEdit(VideoHomePageInfoForm form); |
| | | |
| | | /** |
| | | * 小程序-视频详情 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result wxDetail(String id); |
| | | |
| | | /** |
| | | * 大健康视频发布 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result healthVideo(HealthVideoForm form); |
| | | /** |
| | | * 修改大健康视频 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result updateHealthVideo(HealthVideoForm form); |
| | | /** |
| | | * 大健康视频列表 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result healthPage(HealthVideoQuery query); |
| | | /** |
| | | * 删除大健康视频 |
| | | |
| | | * @param id 主键id |
| | | * @return |
| | | */ |
| | | Result delHealth(String id); |
| | | |
| | | Result addKitchenVideo( KitchenVideoForm form); |
| | | |
| | | Result updateKitchenVideo( KitchenVideoForm form); |
| | | /** |
| | | * 厨神视频列表 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result KitchenVideoQuery(KitchenVideoQuery query); |
| | | |
| | | Result delKitchen(String id); |
| | | |
| | | /** |
| | | * 视频商品查看 |
| | | * |
| | | * @param videoId |
| | | * @return |
| | | */ |
| | | Result getGoodsDetail(String videoId); |
| | | |
| | | /** |
| | | * 用户下架视频 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result buyerDownVideo(String id); |
| | | |
| | | /** |
| | | * 修改视频 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result updatePublish(WxVideoForm form); |
| | | } |