package shop.alien.entity.store.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@JsonInclude
public class WebSocketVo {

    @ApiModelProperty(value = "发送者id")
    private String senderId;

    @ApiModelProperty(value = "接收者id")
    private String receiverId;

    @ApiModelProperty(value = "类别  message:消息  notice:公告  heartbeat:心跳  receipt:消息发送成功回调(用来记录消息id) position:二手交易实时定位")
    private String category;

    @ApiModelProperty(value = "公告类型  (0-系统通知和订单提醒之外的类型  1-系统通知 2-订单提醒)")
    private String noticeType;

    @ApiModelProperty(value = "是否已读  0:未读  1:已读")
    private Integer isRead;

    @ApiModelProperty(value = "消息类型  1-文本  2-图片 3-链接分享  4-二手交易(确认/拒绝/取消)  5-二手交易签到提醒  6-二手交易已签到  7-消息内容不合规 8-律师消息")
    private String type;

    @ApiModelProperty(value = "消息内容")
    private String text;

    @ApiModelProperty(value = "消息id")
    private Integer messageId;

    @ApiModelProperty(value = "消息idList")
    private List<Integer> messageIdList;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "业务ID（用户动态ID）")
    private Integer businessId;
}
