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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - 产品类目新增/修改 Request VO")
@Data
public class CategorySaveReqVO {

    @Schema(description = "类目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15856")
    private Long categoryId;

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

    @Schema(description = "父节点", requiredMode = Schema.RequiredMode.REQUIRED, example = "16509")
    //@NotNull(message = "父节点不能为空")
    private Long parentId;

    /**
     * 父节名称
     */
    private String parentName;

    @Schema(description = "产品类目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    //@NotEmpty(message = "产品类目名称不能为空")
    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 = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer sort;

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

    @Schema(description = "分类层级 1级 2级 3级", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotNull(message = "分类层级不能为空")
    private Integer grade;

}