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

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

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdateShopGoodsPriceRequest {

    /**
     * 操作类型 0-下架 1.改价
     */
    private Integer type;

    /**
     * 店铺ID
     */
    private Long shopId;

    /**
     * 商品信息
     */
    private List<Item> items;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Item {

        /**
         * 平台商品id
         */
        private Long platformId;

        /**
         * 平台商品skuId
         */
        private Long skuId;

        /**
         * 价格（分）
         */
        private String price;

    }

}
