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

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

    @Schema(description = "负责人id", example = "4801")
    private Long personId;

    @Schema(description = "开启状态 0启用  1停用", example = "1")
    private Integer status;

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

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

    /**
     * 扩展字段
     */
    @Schema(description = "设备id集合", example = "[1,2,3]")
    private Collection<Long> deviceIds;

    @Schema(description = "用户id集合", example = "[123,234,345]")
    private Collection<Long> personIds;
}