package com.wzj.soopin.order.domain.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


/**
 * 生成订单请求对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SaveOrderBO {

    @Schema(description = "订单类型：1->团购；2->拼团;3->秒杀；")
    private Integer type;

    @Schema(description = "配送方式 1->到店核销；2->自提;3->配送;")
    private Integer distribution;

    /**
     * 商品id
     */
    @NotNull(message = "下单商品详情不能为空")
    @Valid
    private List<SaveOrderSkuItemBO> skuItemBOList;



}
