package com.cool.store.request.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class MiniStoreWishlistSaveRequest {

    @ApiModelProperty("心愿单ID-修改")
    private Long wishlistId;

    @ApiModelProperty(value = "店型ID", required = true)
    @NotNull(message = "店型ID不能为空")
    private Long storeTypeId;

    @ApiModelProperty("选中的配置选项列表")
    private List<SelectedOption> selectedOptions;

    @Data
    public static class SelectedOption {
        @ApiModelProperty(value = "选项ID", required = true)
        @NotNull(message = "选项ID不能为空")
        private Long optionId;

        @ApiModelProperty(value = "数量", required = true)
        @NotNull(message = "数量不能为空")
        private BigDecimal quantity;
    }
}
