package cn.iocoder.yudao.module.system.controller.admin.biz.vo.materialcategory;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 物资类别新增/修改 Request VO")
@Data
public class MaterialCategorySaveReqVO {

    @Schema(description = "id（修改时必传）", example = "1")
    private Long id;

    @Schema(description = "类别编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "MC001")
    @NotBlank(message = "类别编号不能为空")
    private String categoryNumber;

    @Schema(description = "类别名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "护理用品")
    @NotBlank(message = "类别名称不能为空")
    private String categoryName;

    @Schema(description = "上级id（顶级可传 0 或不传）", example = "0")
    private Long superior;

    @Schema(description = "租户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "tenantId不能为空")
    private Long tenantId;
}

