package com.njcn.mq.message;

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

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2023/9/5 16:38
 */
@Data
public class AppFileMessage extends BaseMessage {

    @ApiModelProperty("网络设备码")
    private String id;

    private Integer mid;

    @ApiModelProperty("逻辑设备 治理逻辑设备为1 电能质量设备为2")
    private Integer did;

    private Integer pri;

    private Integer type;

    private Integer code;

    private Msg msg;

    @Data
    public static class Msg{

        private String type;

        private FileInfo fileInfo;

        private String data;

        private String name;

        private Integer frameCurr;

        private Integer frameTotal;

        private Integer frameLen;

        private Integer offset;
    }

    @Data
    public static class FileInfo{

        private String name;

        private Long fileTime;

        private Integer fileSize;

        private String fileCheck;

        private String fileChkType;
    }
}
