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

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 CategoryPageReqVO extends PageParam {

    @Schema(description = "店铺ID", example = "22369")
    private Long shopId;

    @Schema(description = "父节点", example = "16509")
    private Long parentId;

    @Schema(description = "产品类目名称", example = "王五")
    private String categoryName;

    @Schema(description = "类目图标")
    private String icon;

    @Schema(description = "类目的显示图片")
    private String pic;

    @Schema(description = "类目描述")
    private String description;

    @Schema(description = "标签")
    private List<String> tag;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "默认是1，表示正常状态,0为下线状态", example = "1")
    private Integer status;

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

    @Schema(description = "分类层级")
    private Integer grade;

}