/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.bean.app.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.bean.model.Category;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class CategoryDto {

	@ApiModelProperty(value = "分类id",required=true)
	private Long categoryId;

	@ApiModelProperty(value = "分类父id",required=true)
	private Long parentId;

	@ApiModelProperty(value = "分类名称",required=true)
	private String categoryName;

	@ApiModelProperty(value = "分类标签",required=true)
	private String categoryTag;

	@ApiModelProperty(value = "分类图片",required=true)
	@JsonSerialize(using = ImgJsonSerializer.class)
	private String pic;

	@ApiModelProperty(value = "分类图标",required=true)
	@JsonSerialize(using = ImgJsonSerializer.class)
	private String icon;

	@ApiModelProperty(value = "标签",required=true)
	private String label;

	/**
	 * 是否存在二级
	 */
	@ApiModelProperty(value = "是否存在二级",required=true)
	private boolean hasSecond;

	@ApiModelProperty(value = "子类分类列表",required=true)
	private List<Category> categories;
}
