package com.iailab.module.data.ind.item.vo; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import javax.validation.constraints.NotNull; import java.math.BigDecimal; /** * @author PanZhibao * @Description * @createTime 2024年09月11日 */ @Schema(description = "数据平台 - 指标项创建/修改 Request VO") @Data public class IndItemSaveReqVO { @Schema(description = "ID") private String id; @Schema(description = "编码") private String itemNo; @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "名称不能为空") private String itemName; @Schema(description = "指标类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "指标类型不能为空") private String itemType; @Schema(description = "指标分类", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "指标分类不能为空") private String itemCategory; @Schema(description = "系数") private BigDecimal coefficient; @Schema(description = "指标精度") private Integer precision; @Schema(description = "时间粒度") private String timeGranularity; @Schema(description = "数量单位") private String unit; @Schema(description = "备注") private String remark; @Schema(description = "状态(0正常 1停用)") private Integer status; @Schema(description = "原子指标") private IndItemAtomVO atomItem; @Schema(description = "派生指标") private IndItemDerVO derItem; @Schema(description = "计算指标") private IndItemCalVO calItem; }