package com.cool.store.request.order;

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

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class MiniStoreOrderUpdateRequest {

    @ApiModelProperty(value = "订单ID", required = true)
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

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

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

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