package org.xyzh.ai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.xyzh.common.dto.ai.TbAiMessage;

import java.util.List;

/**
 * @description 对话消息数据访问层
 * @filename AiMessageMapper.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-15
 */
@Mapper
public interface AiMessageMapper extends BaseMapper<TbAiMessage> {

    /**
     * @description 查询对话消息列表
     * @param filter 过滤条件
     * @return List<TbAiMessage> 对话消息列表
     * @author yslg
     * @since 2025-10-15
     */
    List<TbAiMessage> selectAiMessages(TbAiMessage filter);
}
