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

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 产线工位新增/修改 Request VO")
@Data
public class OrganizationSaveReqVO {

    @Schema(description = "组织id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9560")
    private Long id;
    @Schema(description = "编码", example = "1")
    private String code;
    @Schema(description = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "组织名称不能为空")
    private String name;

    @Schema(description = "父组织id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9482")
    @NotNull(message = "父组织id不能为空")
    private Long parentId;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    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 = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean isEnable;

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

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

    @Schema(description = "组织类型")
    private String orgType;

    @Schema(description = "关联采集设备id")
    private Long dvId;

    @Schema(description = "关联采集设备")
    private Long dvName;

}