package com.aiup.service.dao;

import com.aiup.service.entity.XhsNotesBase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 小红书笔记表(XhsNotesBase)表数据库访问层
 *
 * @author makejava
 * @since 2023-07-22 17:06:05
 */
@Mapper
public interface XhsNotesBaseExtDao {
    /**
     *
     * @param category
     * @return
     */
    Integer getNotesCount(@Param("category") String category);

    List<XhsNotesBase> getNotesList(@Param("category") String category,@Param("limit") Integer limit,@Param("offSet") Integer offSet);

    List<XhsNotesBase> getNotesList2(@Param("category") String category,@Param("limit") Integer limit,@Param("offSet") Integer offSet);

    /**
     * 根据url查询内容
     * @param url
     * @return
     */
    XhsNotesBase getContentByUrl(@Param("url") String url);
}

