package org.springblade.modules.nh.factory.ginlong.dto.stationmonth;

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

import java.util.Date;

@Data
public class GetStationMonthR {

    private Double energy;
    private String energyStr;
    /**
     * 时间戳,例 1564088700000
     */
    private Long date;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getDateStr() {
        return new Date(this.date);
    }

}
