package com.cyksj.model.manage.request;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author chan
 * @date 2022/9/27 4:51 PM
 */
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ReqGoodsSpecSingle {

    @NotNull(message = "请指定商品spu")
    private Long goodsId;

    @NotNull(message = "缺少规格属性id")
    private Integer id;

    @NotNull(message = "缺少总规格属性id")
    private Integer keyId;

    @NotBlank(message = "缺少规格名")
    private String key;

    @NotBlank(message = "缺少属性名.")
    private String name;

    private Integer maxId;
}
