package com.sonic.pigeon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sonic.common.rpc.Page;
import com.sonic.pigeon.domain.entity.Message;
import com.sonic.pigeon.domain.input.MessageListInput;
import com.sonic.pigeon.domain.input.SendMessageInput;
import com.sonic.pigeon.domain.output.MessageListOutput;

import java.util.List;

public interface MessageService extends IService<Message> {

    /**
     * 发送消息
     * @param reqList
     */
    void sendMessage(List<SendMessageInput> reqList);

    /**
     * 消息列表
     *
     * @param userId
     * @param input
     * @return
     */
    Page<MessageListOutput> messageList(Long userId, MessageListInput input);
}