package com.erp.platformsync.dto.pdd;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 拼多多商品DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PddGoodsDTO {

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品图片URL
     */
    private String imageUrl;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 库存数量
     */
    private Integer stock;

    /**
     * 销量
     */
    private Integer sales;

    /**
     * 商品状态: 0-下架, 1-上架
     */
    private Integer status;

    /**
     * 商品状态描述
     */
    private String statusDesc;

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

    /**
     * SKU列表
     */
    private List<PddSkuDTO> skus;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PddSkuDTO {
        private Long skuId;
        private String skuName;
        private String skuNumber;
        private BigDecimal price;
        private Integer stock;
        private String goodsSign;
        private String outerId;
    }
}
