package cn.reghao.tnb.content.app.vod.db.mapper;

import cn.reghao.jutil.jdk.db.BaseMapper;
import cn.reghao.jutil.jdk.db.Page;
import cn.reghao.tnb.content.api.dto.spider.BiliRegion;
import cn.reghao.tnb.content.app.vod.model.po.VideoCategory;
import cn.reghao.tnb.content.app.vod.model.query.CategoryQuery;
import cn.reghao.tnb.content.app.vod.model.query.VideoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author reghao
 * @date 2021-11-22 10:41:35
 */
@Mapper
public interface VideoCategoryMapper extends BaseMapper<VideoCategory> {
    @Deprecated
    List<BiliRegion> findAllCategoryIds();
    @Deprecated
    VideoCategory findByRid(int rid);
    VideoCategory findById(int id);
    List<VideoCategory> findVideoCategoryByPage(@Param("page") Page page, @Param("categoryQuery") CategoryQuery categoryQuery);
}
