package com.kingtom.shengtai.app.message.service;

import java.util.List;

import com.kingtom.kirin.core.common.base.service.IBaseService;
import com.kingtom.shengtai.app.message.model.MsgReceive;
import com.kingtom.shengtai.app.message.model.MsgSummary;
import com.mybatisflex.core.paginate.Page;

/**
 * 消息接收记录表 服务层。
 *
 * @author wany
 * @since 2023 -12-27
 */
public interface IMsgReceiveService extends IBaseService<MsgReceive>{

    /**
     * 创建
     *
     * @param msgId    the msg id
     * @param receiver the receiver
     */
    void create(String msgId, List<String> receiver);

    /**
     * 标记消息已读.
     *
     * @param userId the user id
     * @param msgIds the msg ids
     */
    void updateMsgRead(String userId, List<String> msgIds);

    /**
     * 分页查询个人消息
     *
     * @param userId
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<MsgReceive> page(String userId, Integer pageNum, Integer pageSize);

}
