package com.kxs.product.api.dto.kxsapp.shop;

import com.kxs.product.api.model.KxsShopOrder;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单提交
 *
 * @author Lxq
 * @date 2023-12-20
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class GoodsSubmitDTO extends KxsShopOrder {

    /**
     * 商品id
     */
    @Schema(description = "商品ID")
    @NotNull(message = "商品ID不能为空")
    private Integer goodsId;

    /**
     * 订单数量
     */
    @Schema(description = "订单数量")
    @NotNull(message = "订单数量不能为空")
    private Integer number;

    /**
     * sku id
     */
    @Schema(description = "SKU ID")
    @NotNull(message = "SKU ID不能为空")
    private Integer skuId;

    /**
     * 规格参数
     */
    @Schema(description = "规格参数")
    @NotNull(message = "规格参数不能为空")
    private String specifications;



}
