package cn.axzo.msg.center.message.service;

import cn.axzo.msg.center.message.domain.dto.SendImMessageDTO;
import cn.axzo.msg.center.service.general.request.GeneralMessageOldDataStatisticRequest;
import cn.axzo.msg.center.service.general.request.GeneralMessageSendRequest;
import cn.axzo.msg.center.service.general.response.GeneralMessageOldDataStatisticResponse;

import java.util.List;

/**
 * @author cold_blade
 * @date 2023/10/19
 * @version 1.0
 */
public interface GeneralMessageService {

    /**
     * 发送消息
     *
     * @param request 消息所需参数
     * @return 请求的唯一标识
     */
    List<SendImMessageDTO> batchSendMessage(GeneralMessageSendRequest request);

    /**
     * 统计旧数据
     *
     * @param request 统计参数
     * @return 旧数据的未读数以及最新一条消息
     */
    GeneralMessageOldDataStatisticResponse statisticOldData(GeneralMessageOldDataStatisticRequest request);
}
