package org.dromara.zhishu.domain.dto.request;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
public class UpdateShopGoodsDataPriceCSVRequest {

    /**
     * 平台店铺id
     */
    @NotNull(message = "平台店铺id不能为空")
    private Long mallId;

    /**
     * 上架状态
     */
    private Integer isOnSale;

    /**
     * 商品信息
     */
    @NotEmpty(message = "商品信息不能为空")
    private List<SkuItem> skuItemList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SkuItem{

        /**
         * 平台商品id
         */
        @NotNull(message = "平台商品id不能为空")
        private Long platformId;

        /**
         * skuId
         */
        private Long skuId;

        /**
         * 单品价格
         */
        private Long singlePrice;

        /**
         * 团购价格
         */
        private Long groupPrice;

    }

}
