package com.ruoyi.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.test.domain.Video;
import com.ruoyi.test.domain.Vo.VideoVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface VideoMapper extends BaseMapper<Video> {

    @Delete("delete from video where id = #{id}")
    int deleteVideo(Long id);

    int addVideo(@Param("vedioVo")VideoVo videoVo);

}
