package com.xinelu.manage.vo.goodsCategory;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @author ljh
 * @version 1.0
 * Create by 2023/1/28 15:05
 */
@Data
public class GoodsCategoryNameVO implements Serializable {
    private static final long serialVersionUID = -2360475035289257536L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 父级分类id
     */
    private Long parentId;

    /**
     * 商品分类名称
     */
    @NotBlank(message = "商品分类名称不能为空", groups = {Insert.class, Update.class})
    @ApiModelProperty(value = "商品分类名称")
    @Excel(name = "商品分类名称")
    @Length(max = 10, message = "商品分类名称不能超过10个字符", groups = {Insert.class, Update.class})
    private String goodsCategoryName;

    /**
     * 商品分类编码
     */
    @ApiModelProperty(value = "商品分类编码")
    @Excel(name = "商品分类编码")
    private String goodsCategoryCode;

    /**
     * 商品分类图片地址
     */
    @ApiModelProperty(value = "商品分类图片地址")
    @Excel(name = "商品分类图片地址")
    private String goodsCategoryPicture;

    /**
     * 分类概述
     */
    @ApiModelProperty(value = "分类概述")
    @Excel(name = "分类概述")
    private String categoryRemark;

    /**
     * 分类级别，0：代码根节点，1：代表一级节点，依次递增
     */
    private Integer categoryLevel;

    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "显示顺序")
    @Excel(name = "显示顺序")
    private Integer sort;

    /**
     * 主键id
     */
    private List<Integer> goodsCategoryNameId;
}
