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

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author luorui
 * @date 2025/5/26 10:56
 * 模拟停电系统的报文对象
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AcceptPlanPowerCutDTO implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long planId;
    //计划编码
    @ApiModelProperty(value = "计划编码")
    private String planNo;
    //来源系统 “jhtdwyy”
    @ApiModelProperty(value = "来源系统 “jhtdwyy”")
    private String sourceSystem;
    //计划描述
    @ApiModelProperty(value = "计划描述")
    private String planDesc;
    //计划状态
    @ApiModelProperty(value = "计划状态")
    private String planStatus;
    //计划开始时间

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    //计划结束时间

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    //计划停电的馈线列表
    @ApiModelProperty(value = "计划停电的馈线列表")
    private List<FeederInfo> feederList;

    @ApiModelProperty(value = "是否有效标识")
    private String validFlag;


}
