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

import io.swagger.annotations.ApiModel;
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;

/**
 * 异常告警列表行 VO（线路重过载 / 电压越限共用）
 *
 * @author lsl
 * @since 2026-07-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "异常告警列表行")
public class SeAlarmListVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "告警事件ID")
    private Long alarmEventId;

    @ApiModelProperty(value = "馈线ID")
    private String feederId;

    @ApiModelProperty(value = "线路名称")
    private String feederName;

    @ApiModelProperty(value = "展示值: 负载率'102' 或 电压方向'越上限/越下限'")
    private String alarmDisplayValue;

    @ApiModelProperty(value = "越限时间(firstOverTime)")
    private String alarmTime;

    @ApiModelProperty(value = "告警持续时长 如'1.5h'")
    private String alarmDuration;

    @ApiModelProperty(value = "告警类型: current_heavy/current_overload/voltage_over/voltage_under")
    private String alarmType;

    @ApiModelProperty(value = "告警层级: feeder/mvtrans/consumer (前端用来决定颜色)")
    private String alarmLevel;

    @ApiModelProperty(value = "设备名称(台区名/用户名)，给台区列表展示")
    private String deviceName;

    @ApiModelProperty(value = "影响用户数(台区越限专用)")
    private Integer affectedConsumerCount;
}