package com.tencent.supersonic.chat.server.persistence.mapper;

import com.tencent.supersonic.chat.server.persistence.dataobject.ChatParseDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChatParseMapper {

    boolean batchSaveParseInfo(@Param("list") List<ChatParseDO> list);

    boolean updateParseInfo(ChatParseDO chatParseDO);

    ChatParseDO getParseInfo(Long questionId, int parseId);

    List<ChatParseDO> getParseInfoList(List<Long> questionIds);

    List<ChatParseDO> getContextualParseInfo(Integer chatId);

    int deleteByQuestionId(Long questionId);
}
