ChatMessageDao.java 595 Bytes
package com.pipihelper.project.feishu.dao;

import com.pipihelper.project.feishu.entity.ChatMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChatMessageDao {
    ChatMessage findById(Integer id);

    void deleteById(Integer id);

    void create(ChatMessage ChatMessage);

    void update(ChatMessage ChatMessage);

    List<ChatMessage> findAll();

    List<ChatMessage> findListChatAndType(@Param(value = "chatId") String chatId, @Param(value = "type") Integer type);

    void deleteAll();
}