package cn.newfeifan.mall.module.product.controller.admin.skuapply.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.newfeifan.mall.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.newfeifan.mall.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 SkuApplyPageReqVO extends PageParam {

    @Schema(description = "spu编号", example = "9866")
    private Long spuApplyId;

    @Schema(description = "属性数组，JSON 格式 [{propertId: , valueId: }, {propertId: , valueId: }]")
    private String properties;

    @Schema(description = "商品价格，单位：分", example = "24705")
    private Integer price;

    @Schema(description = "推广费, 单位: 分")
    private Integer promotionFee;

    @Schema(description = "备注")
    private String mark;

    @Schema(description = "市场价，单位：分", example = "24117")
    private Integer marketPrice;

    @Schema(description = "成本价，单位： 分", example = "21015")
    private Integer costPrice;

    @Schema(description = "SKU 的条形码")
    private String barCode;

    @Schema(description = "图片地址", example = "https://www.zhongxing.cn")
    private String picUrl;

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

    @Schema(description = "商品重量，单位：kg 千克")
    private Double weight;

    @Schema(description = "商品体积，单位：m^3 平米")
    private Double volume;

    @Schema(description = "商品销量", example = "7812")
    private Integer salesCount;

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

    @Schema(description = "店铺id", example = "25567")
    private Long shopId;

    @Schema(description = "商户id", example = "9994")
    private Long merchantId;

    @Schema(description = "结算价，单位： 分", example = "21066")
    private Integer settlementPrice;
}