package com.red.circle.other.domain.gateway.user;

import com.red.circle.other.domain.model.cp.CpLoveLetterDomain;

import java.util.List;

/**
 * CP告白信封数据网关
 */
public interface CpLoveLetterGateway {

    /**
     * 保存信封
     */
    void save(CpLoveLetterDomain letter);

    /**
     * 查询告白墙最新N条
     */
    List<CpLoveLetterDomain> listLatestLetters(Integer limit);

    /**
     * 查询用户收到的最新一条信封
     */
    CpLoveLetterDomain getLatestReceivedLetter(Long receiverId);

    /**
     * 更新信封状态为已读
     */
    void markAsRead(Long letterId);
}
