package com.tashow.cloud.productapi.api.product.vo.prodweightrangeprices;

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

import java.math.BigDecimal;

@Schema(description = "管理后台 - 体重区间价格新增/修改 Request VO")
@Data
public class ProdWeightRangePricesSaveReqVO {

    @Schema(description = "体重区间价格的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "26157")
    private Long id;

    @Schema(description = "关联的体重配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6754")
    @NotNull(message = "关联的体重配置ID不能为空")
    private Long prodId;

    @Schema(description = "体重区间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "体重区间不能为空")
    private String weightRange;

    @Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "11575")
    @NotNull(message = "价格不能为空")
    private BigDecimal price;

    @Schema(description = "是否启用该规则0否1是", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用该规则0否1是不能为空")
    private Integer isEnabled;


}