feat: Claude
This commit is contained in:
parent
18f2a2660f
commit
844dbba527
@ -22,5 +22,16 @@ public interface NovelRepository extends MongoRepository<NovelDO, String> {
|
||||
Page<NovelDO> findByNameOrAuthorAndTags(String keyword, List<String> tags, Pageable pageable);
|
||||
|
||||
Page<NovelDO> findAll(Pageable pageable);
|
||||
|
||||
// 按作者精确匹配
|
||||
List<NovelDO> findByAuthor(String author);
|
||||
|
||||
// 按书名前缀匹配(不分页,用于智能搜索)
|
||||
@Query("{ 'name': { $regex: '^?0', $options: 'i' } }")
|
||||
List<NovelDO> findByNameStartingWithIgnoreCase(String prefix);
|
||||
|
||||
// 按书名模糊匹配(不分页,用于智能搜索)
|
||||
@Query("{ 'name': { $regex: ?0, $options: 'i' } }")
|
||||
List<NovelDO> findByNameContainingIgnoreCase(String keyword);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user