package com.yuchen.saas.message.api.dto;

import lombok.Data;

@Data
public class WebSocketMessagDTO<T> {
    private T entity;
    private String userId;
    private String destinationPath;

    public WebSocketMessagDTO(String userId, String destinationPath, T entity){
        this.userId=userId;
        this.destinationPath=destinationPath;
        this.entity=entity;
    }
}
