package cn.iocoder.yudao.module.pms.controller.admin.iotdevicestatuslog.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备状态调整日志 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotDeviceStatusLogRespVO {

    @Schema(description = "设备名称", example = "钻机")
    @ExcelProperty("设备名称")
    private String deviceName;

    @Schema(description = "设备编码", example = "YF001")
    @ExcelProperty("设备编码")
    private String deviceCode;

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8781")
    private Long id;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23664")
    private Long deviceId;

    @Schema(description = "设备修改前状态", example = "2")
    @ExcelProperty("调整前状态")
    private String oldStatus;

    @Schema(description = "设备修改后状态", example = "1")
    @ExcelProperty("调整后状态")
    private String newStatus;

    @Schema(description = "设备状态调整原因", example = "不对")
    @ExcelProperty("调整原因")
    private String reason;

    @Schema(description = "创建人姓名", example = "张三")
    @ExcelProperty("调整人")
    private String creatorName;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建时间")
    @ExcelProperty("调整时间")
    private String createTimeStr;

    /**
     * 扩展属性
     */
    @Schema(description = "创建人id", example = "101")
    private String creator;
}