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

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 = "管理后台 - 产品sku分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductSkuPageReqVO extends PageParam {

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

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

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

    @Schema(description = "规格类型:common通用 full全价 half半价 free免票", example = "1")
    private String specType;

    @Schema(description = "库存")
    private Integer stock;

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

}