package com.zt.plat.module.base.controller.admin.base.vo;

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

@Schema(description = "管理后台 - 金属元素新增/修改 Request VO")
@Data
public class ElementSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21884")
    private Long id;

    @Schema(description = "金属元素缩写", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "金属元素缩写不能为空")
    private String abbreviation;

    @Schema(description = "金属元素名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "金属元素名称不能为空")
    private String name;

    @Schema(description = "金属元素编码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String coding;

    @Schema(description = "小数位数")
    @Min(value = 1, message = "数值必须大于0")
    private Long decimalValue;

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

    @Schema(description = "品位单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "品位单位不能为空")
    private String gradeUnit;

    @Schema(description = "排序")
    private Integer sort;

}