package cn.lili.modules.lmk.service;
|
|
import cn.lili.group.Add;
|
import cn.lili.modules.lmk.domain.entity.Video;
|
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 org.springframework.validation.annotation.Validated;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import java.util.List;
|
|
/**
|
* 视频内容 服务类
|
*
|
* @author xp
|
* @since 2025-05-16
|
*/
|
public interface VideoService extends IService<Video> {
|
|
/**
|
* 添加
|
* @param form
|
* @return
|
*/
|
Result add(WxVideoForm form);
|
|
/**
|
* 修改
|
* @param form
|
* @return
|
*/
|
Result update(WxVideoForm form);
|
|
/**
|
* 批量删除
|
* @param ids
|
* @return
|
*/
|
Result remove(List<String> ids);
|
|
/**
|
* id删除
|
* @param id
|
* @return
|
*/
|
Result removeById(String id);
|
|
/**
|
* 分页查询
|
* @param query
|
* @return
|
*/
|
Result page(VideoQuery query);
|
|
/**
|
* 根据id查找
|
* @param id
|
* @return
|
*/
|
Result detail(String id);
|
|
/**
|
* 列表
|
* @return
|
*/
|
Result all();
|
|
/**
|
* 发布视频
|
*
|
* @param form
|
* @return
|
*/
|
Result publish(WxVideoForm form);
|
|
/**
|
* 平台端视频分页
|
*
|
* @param query
|
* @return
|
*/
|
Result managerPage(ManagerVideoQuery query);
|
|
/**
|
* 首页推荐设置
|
*
|
* @param form
|
* @return
|
*/
|
Result recommendSet(VideoRecommendForm form);
|
|
/**
|
* 审核
|
*
|
* @param form
|
* @return
|
*/
|
Result auditing(VideoAuditingForm form);
|
|
/**
|
* 上架
|
*
|
* @param id
|
* @return
|
*/
|
Result up(String id);
|
|
/**
|
* 下架
|
*
|
* @param form
|
* @return
|
*/
|
Result down(VideoDownForm form);
|
|
/**
|
* 小程序端的视频推荐接口
|
*
|
* @return
|
* @param query
|
*/
|
Result recommendVideo(VideoQuery query);
|
|
Result healthRecommendVideo(WxHealthVideoQuery query);
|
|
Result kitchenTypeList();
|
|
Result kitchenRecommendVideo(WxKitchenVideoQuery 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);
|
}
|