package cn.iocoder.yudao.module.pms.controller.admin.iotdevicepersonlog.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 IotDevicePersonLogPageReqVO extends PageParam {

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

    @Schema(description = "设备调整前责任人", example = "12055")
    private Long oldPersonId;

    @Schema(description = "设备调整前责任人id集合")
    private String oldPersonIds;

    @Schema(description = "设备调整后责任人", example = "29347")
    private Long newPersonId;

    @Schema(description = "设备调整后责任人id集合")
    private String newPersonIds;

    @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;
}