package com.yhy.module.core.controller.admin.resource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Schema(description = "工料机机类树与类别关联保存请求")
@Data
public class ResourceCategoryTreeMappingSaveReqVO {

    @Schema(description = "工料机机类树节点ID", required = true, example = "5")
    @NotNull(message = "工料机机类树节点ID不能为空")
    private Long categoryTreeId;

    @Schema(description = "类别字典ID", required = true, example = "1")
    @NotNull(message = "类别字典ID不能为空")
    private Long categoryId;

    @Schema(description = "排序", example = "1")
    private Integer sortOrder;
}
