package cn.iocoder.yudao.module.mes.controller.admin.organization.vo;

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

import java.time.LocalDateTime;
import java.util.List;

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

@Schema(description = "管理后台 - 产线工位列表 Request VO")
@Data
public class OrganizationListReqVO {

    @Schema(description = "组织名称", example = "赵六")
    private String name;
    @Schema(description = "编码", example = "1")
    private String code;
    @Schema(description = "父组织id", example = "9482")
    private Long parentId;

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

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

    @Schema(description = "对应机台id", example = "17654")
    private Long machineId;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "是否启用")
    private Boolean isEnable;

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

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

    @Schema(description = "组织类型", example = "2")
    private String orgType;
    @Schema(description = "组织类型", example = "2")
    private List<String> orgTypes;

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

}