/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.mqcore.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 公共消息
 *
 * @author lingee
 * @date 2023/8/22
 */
@Data
public class CommonMessage<T> implements Serializable {

    private static final long serialVersionUID = 3155238535887126819L;

    @ApiModelProperty(value = "业务类型")
    private String bizType;

    @ApiModelProperty(value = "业务ID【通常情况下，传递业务实体的ID可以了】")
    private Long bizId;

    @ApiModelProperty(value = "业务ID列表【有些个别情况，是批量处理的，传递业务实体的ID列表就可以了】")
    private List<Long> bizIdList;

    @ApiModelProperty(value = "传输的业务数据")
    private T data;
}
