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

    @Schema(description = "部门id", example = "26451")
    private Long deptId;

    @Schema(description = "项目id", example = "4299")
    private Long projectId;

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

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "状态", example = "1")
    private Integer status;

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

    /**
     * 扩展属性
     */
    @Schema(description = "组态项目id集合", example = "42,99")
    private Collection<Long> projectIds;
}