package com.yc.ship.module.product.controller.admin.productSpu.spuVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.List;


@Schema(description = "管理后台 - 扣减产品库存 Request VO")
@Data
@ToString(callSuper = true)
public class ProductReduceStockReqVO {

    @Schema(description = "产品id", example = "1")
    private Long id;

    @Schema(description = "待扣产品数", example = "2")
    private Integer num;

    @Schema(description = "操作类型 0扣减 1回滚（未实现回滚）", example = "0")
    private Integer type = 0;

    @Schema(description = "产品资源ID，定制游情况下会指定资源", example = "0")
    private Long productResourceId;

    @Schema(description = "使用日期", example = "0")
    private Date useDate;

    @Schema(description = "销售渠道", example = "0")
    private Integer sellMethod;

    @Schema(description = "出行方案id", example = "0")
    private Long routePlanId;

    @Schema(description = "分销商id", example = "0")
    private Long distributorId;

    @Schema(description = "门店id", example = "0")
    private Long storeId;

    @Schema(description = "时间方案分组类型", example = "0")
    private Integer routePlanGroupType;

    @Schema(description = "一票多人数量", example = "默认1")
    private Integer quantityOfOne = 1;

    @Schema(description = "基础产品扣减信息")
    List<ProductReduceStockReqVO> baseReduceList;

}

