package com.njcn.mq.message;

import com.njcn.middle.rocket.domain.BaseMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

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

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2025/9/29 15:06
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateLedgerMessage extends BaseMessage {

    @ApiModelProperty("唯一标识")
    private String guid;

    @ApiModelProperty("数据")
    private List<HandleData> data;

    @Data
    public static class HandleData implements Serializable {

        @ApiModelProperty("设备id")
        private String deviceId;

        @ApiModelProperty("响应码")
        private Integer code;

        @ApiModelProperty("结果描述")
        private String result;
    }

}
