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

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

@Schema(description = "管理后台 - 创建单位并关联到量纲 Request VO")
@Data
public class CreateUnitWithRelationReqVO {

    @Schema(description = "量纲ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "量纲ID不能为空")
    private Long untQtyId;

    @Schema(description = "单位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "米")
    @NotEmpty(message = "单位名称不能为空")
    private String name;

    @Schema(description = "单位符号", requiredMode = Schema.RequiredMode.REQUIRED, example = "m")
    @NotEmpty(message = "单位符号不能为空")
    private String smb;

    @Schema(description = "是否基准单位：0=否，1=是", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "是否基准单位不能为空")
    private Integer isBse;

}
