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

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

@Schema(description = "管理后台 - 经营指标新增/修改 Request VO")
@Data
public class BusinessIndicatorSaveReqVO {

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

    @Schema(description = "父级ID", example = "12917")
    private Long parentId;

    @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 = "指标描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "指标描述不能为空")
    private String description;

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

    @Schema(description = "计量单位量ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17208")
    private Long quantityId;

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

    @Schema(description = "算法ID", example = "2240")
    private Long algorithmId;

    @Schema(description = "规则ID", example = "32155")
    private Long ruleId;

    @Schema(description = "维度ID", example = "7598")
    private Long dimensionId;

    @Schema(description = "周期类型值", requiredMode = Schema.RequiredMode.REQUIRED)
    private String cycleValue;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "状态不能为空")
    private String statusValue;

    @Schema(description = "是否可修改")
    private boolean isModify;

    @Schema(description = "负责人ID", example = "13550")
    private Long userId;

    @Schema(description = "负责部门")
    private String departmentId;
}