package com.ruoyi.message.frequency.goeasymessagenew.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.message.frequency.goeasymessagenew.entity.GoeasyMessageNew;
import org.apache.ibatis.annotations.Param;

/**
 * goeasy最新消息Mapper接口
 * 
 * @author liwenlong
 * @date 2024-04-20
 */
public interface GoeasyMessageNewMapper  extends BaseMapper<GoeasyMessageNew>
{
    /**
     * 查询goeasy最新消息
     * 
     * @param id goeasy最新消息主键
     * @return goeasy最新消息
     */
    public GoeasyMessageNew selectGoeasyMessageNewById(Long id);

    /**
     * 查询goeasy最新消息列表
     * 
     * @param goeasyMessageNew goeasy最新消息
     * @return goeasy最新消息集合
     */
    public List<GoeasyMessageNew> selectGoeasyMessageNewList(GoeasyMessageNew goeasyMessageNew);

    /**
     * 新增goeasy最新消息
     * 
     * @param goeasyMessageNew goeasy最新消息
     * @return 结果
     */
    public int insertGoeasyMessageNew(GoeasyMessageNew goeasyMessageNew);

    /**
     * 修改goeasy最新消息
     * 
     * @param goeasyMessageNew goeasy最新消息
     * @return 结果
     */
    public int updateGoeasyMessageNew(GoeasyMessageNew goeasyMessageNew);

    GoeasyMessageNew getMessage(@Param("userId") Long userId, @Param("otherUserId") Long otherUserId);
}
