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

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 产品组合分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductGroupPageReqVO extends PageParam {

    @Schema(description = "产品ID", example = "23709")
    private Long productId;

    @Schema(description = "基础产品ID;平台产品时为关联ID", example = "8989")
    private Long productBaseId;

    @Schema(description = "基础产品类型;0自建子票 1平台产品", example = "1")
    private Integer productBaseType;

    @Schema(description = "sku_id", example = "28152")
    private Long skuId;

    @Schema(description = "项目ID", example = "11824")
    private Long projectId;

    @Schema(description = "规格ID", example = "7216")
    private Long specificationId;

    @Schema(description = "成本价格", example = "14190")
    private BigDecimal costPrice;

    @Schema(description = "销售价格", example = "27592")
    private BigDecimal salePrice;

    @Schema(description = "规格类型;ty通用 qj全价 bj半价 mp免票", example = "1")
    private String specType;

    @Schema(description = "是否必选;0否 1是")
    private Integer needChoose;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}