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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Collection;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备状态调整日志分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotDeviceStatusLogPageReqVO extends PageParam {

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

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    /**
     * 扩展字段
     */
    @Schema(description = "设备id集合", example = "12,13")
    private Collection<Long> deviceIds;
}