package com.softwarebr.nunu.json.api.user;

import com.alibaba.fastjson.annotation.JSONField;
import com.google.common.collect.Maps;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * 用户消息读取记录
 * @author laolian
 * @date 2019-11-15 16:34:29
 */
@Data
@ApiModel
public class MessageReadLog {

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
    LocalDateTime lastUnreadCountDate;

    @ApiModelProperty(value = "未读消息id", required = true, example = "{'1','1'}")
    Map<String, String> unreadIds = Maps.newHashMap();
}
