package cn.iocoder.yudao.module.iot.controller.admin.iotorganization.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - IOT组织列表 Request VO")
@Data
public class IotOrganizationListReqVO {

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "负责人/工人", example = "11964")
    private Long workerUserId;

    @Schema(description = "绑定工位id", example = "21787")
    private Long orgId;

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

    @Schema(description = "组织名称", example = "赵六")
    private String name;

    @Schema(description = "父组织id", example = "10729")
    private Long parentId;

    @Schema(description = "组织状态", example = "2")
    private Integer status;

    @Schema(description = "设备类型", example = "2")
    private String deviceType;

    @Schema(description = "组织等级")
    private String orgClass;

    @Schema(description = "机台类型", example = "2")
    private String machineType;

}