package com.tashow.cloud.product.vo.prodprop;

import com.baomidou.mybatisplus.annotation.TableField;
import com.tashow.cloud.product.dto.ProdPropValueDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 商品属性新增/修改 Request VO")
@Data
public class ProdPropSaveReqVO {

    @Schema(description = "属性id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14271")
    private Long propId;

    @Schema(description = "属性名称", example = "李四")
    private String propName;

    @Schema(description = "ProdPropRule 1:销售属性(规格); 2:参数属性;")
    private Integer rule;

    @Schema(description = "店铺id", example = "2806")
    private Long shopId;

    @Schema(description = "商品id（添加的时候不传）", example = "21671")
    private Integer prodId;

    @Schema(description = "是否删除0否1是")
    private Boolean isDelete;

    /**
     * 属性值
     */
    @TableField(exist=false)
    @NotEmpty(message="规格属性值不能为空")
    private List<ProdPropValueDO> prodPropValues;
}