package com.zt.plat.module.base.api.materialproperties.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * 物料属性新增/修改 Request DTO
 */
@Data
public class MaterialPropertiesSaveReqDTO {

    @Schema(description = "主键ID", example = "10591")
    private Long id;

    @Schema(description = "属性编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "属性编码不能为空")
    private String code;

    @Schema(description = "属性名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "含量")
    @NotEmpty(message = "属性名称不能为空")
    private String name;

    @Schema(description = "计量单位量ID", example = "30468")
    private Long unitQuantityId;

    @Schema(description = "属性类型(业务字典数据值)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "属性类型不能为空")
    private String dictionaryDataValue;

    @Schema(description = "数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "数据类型不能为空")
    private String dataType;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "备注不能为空")
    private String remark;
}
