package com.hdkj.lt.bf.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hdkj.lt.base.serializer.BigDecimalSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 当天停电数据（来自 grid_pd_outage_event_base 实时表）
 *
 * @author lsl
 * @since 2026-07-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TodayOutageData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当日停电时户数")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal totalHouseholds;

    @ApiModelProperty(value = "当日平均停电时长(小时)")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal avgDurationHours;
}
