package com.junmp.jyzb.api.util;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;


@Data
public class WsWarehouseReq {
    @JsonProperty("deviceId")
    private String deviceId;
    @JsonProperty("onlineState")
    private String onlineState;
    @JsonProperty("orgId")
    private String orgId;
    @JsonProperty("warehouse")
    private List<warehouse> warehouse;


    @Data
    // 内部类表示box
    public static class warehouse {
        @JsonProperty("warehouseId")
        private String warehouseId;

        @JsonProperty("warehouseName")
        private String warehouseName;

        @JsonProperty("warehouseDev")
        private List<warehouseDev> warehouseDev;
    }

    @Data
    // 内部类表示box
    public static class warehouseDev {
        @JsonProperty("devId")
        private String devId;

        @JsonProperty("devIP")
        private String devIP;

        @JsonProperty("devName")
        private String devName;
        @JsonProperty("devState")
        private String devState;
        @JsonProperty("devType")
        private String devType;
    }
}