package com.storlead.message.service;

import com.storlead.framework.mybatis.service.MyBaseService;
import com.storlead.framework.common.result.Result;
import com.storlead.message.pojo.entity.InsideMessageRecordEntity;
import com.storlead.message.pojo.entity.MessageTemplateEventDetailEntity;
import com.storlead.message.pojo.entity.MessageTemplateEventGroupEntity;

import java.util.Collection;
import java.util.Map;

/**
 * <p>
 * 系统内部消息 服务类
 * </p>
 *
 * @author chenkq
 * @since 2024-04-19
 */
public interface InsideMessageRecordService extends MyBaseService<InsideMessageRecordEntity> {

    Map getOldMapDataById(String table,String fieldColumn,String id);


    /**
     * @param templateEventId  站内消息模板
     * @param map 参数
     * @param receiverUserId 接收人
     * @param callbackParam 回调参数
     * @return
     */
    Result sendInsideMessage(MessageTemplateEventGroupEntity eventGroup, MessageTemplateEventDetailEntity templateEventDetail, Map map, Long receiverUserId, String callbackParam, Long sendUserId);
    /**
     * @param templateEventId  消息事件模板
     * @param map 参数
     * @param receiverUserIds 接收人
     * @param callbackParam 回调参数
     * @return
     */
    Result sendInsideMessage(MessageTemplateEventGroupEntity eventGroup,MessageTemplateEventDetailEntity templateEventDetail, Map map, Collection<Long> receiverUserIds, String callbackParam, Long sendUserId);

    void asynSendInsideMessage(MessageTemplateEventGroupEntity eventGroup,MessageTemplateEventDetailEntity templateEventDetail, Map map, Long receiverUserId, String callbackParam,Long sendUserId);
    void asynSendInsideMessage(MessageTemplateEventGroupEntity eventGroup,MessageTemplateEventDetailEntity templateEventDetail, Map map, Collection<Long> receiverUserIds, String callbackParam,Long sendUserId);

}
