package com.ruoyi.novel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.novel.domain.NovelContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface NovelContentMapper extends BaseMapper<NovelContent> {
    // 特殊方法可在此定义
    @Update("UPDATE novel_content SET content = #{content} WHERE chapter_id = #{chapterId}")
    int updateContent(@Param("chapterId") Long chapterId, @Param("content") String content);
}