package com.tashow.cloud.productapi.api.product.vo.prod;

import com.tashow.cloud.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.time.LocalDateTime;
import java.util.List;

import static com.tashow.cloud.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

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

    @Schema(description = "商品名称", example = "赵六")
    private String prodName;

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

    @Schema(description = "默认是1，正常状态（出售中）, 0：下架（仓库中） 2：待审核", example = "2")
    private Integer status;

    @Schema(description = "商品分类", example = "14895")
    private Long categoryId;

    /**
     * 商品分类名称
     */
    private String categoryName;

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

}