vince
2025-02-17 320350eb18e32a9a008c4e6409441730732e2e97
src/main/java/com/fzzy/gateway/data/BaseReqData.java
@@ -31,4 +31,23 @@
    private Date dayTime;
    private String data;
    private int index = 1;
    public BaseReqData() {
    }
    public BaseReqData(GatewayDevice device) {
        this.device = device;
        this.productId = device.getProductId();
        this.deviceId = device.getDeviceId();
        this.deviceName = device.getDeviceName();
    }
    public BaseReqData(String productId, String deviceId, String deviceName, GatewayDevice device) {
        this.productId = productId;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.device = device;
    }
}