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

import cn.reghao.jutil.jdk.web.db.BaseMapper;
import cn.reghao.jutil.jdk.web.db.Page;
import cn.reghao.tnb.content.api.dto.spider.BiliRegion;
import cn.reghao.tnb.content.app.vod.model.po.PostCategory;
import cn.reghao.tnb.content.app.vod.model.query.CategoryQuery;
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 PostCategoryMapper extends BaseMapper<PostCategory> {
    @Deprecated
    List<BiliRegion> findAllCategoryIds();
    @Deprecated
    PostCategory findByRid(int rid);
    PostCategory findById(int id);
    List<PostCategory> findVideoCategoryByPage(@Param("page") Page page, @Param("categoryQuery") CategoryQuery categoryQuery);
}
