package io.modules.item.dto;

import io.modules.item.entity.FrontUserEntity;
import io.modules.item.entity.OrderEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 商品表
 */
@Data
@Schema(name = "商品表")
public class ItemDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@SchemaProperty(name = "编号")
	private Long id;

	@SchemaProperty(name = "名称")
	private String title;
	private String tag;

	@SchemaProperty(name = "类别编号")
	private Long categoryId;

	@SchemaProperty(name = "图片")
	private String image;

	@SchemaProperty(name = "图片列表")
	private String imgList;

	@SchemaProperty(name = "价格")
	private Double price;

	@SchemaProperty(name = "描述")
	private String description;

	@SchemaProperty(name = "商品库存数量")
	private Integer stockQuantity;

	@SchemaProperty(name = "状态")
	private Integer status;

	@SchemaProperty(name = "排序")
	private Integer sort;

	@SchemaProperty(name = "创建时间")
	private Date createTime;

	@SchemaProperty(name = "产地")
	private String origin;

	@SchemaProperty(name = "品牌")
	private String brand;

	@SchemaProperty(name = "点击次数")
	private Integer view;

	@SchemaProperty(name = "属性")
	private String attribute;


	/**
	 * 分类名称
	 */
	private String categoryName;
	/**
	 * 用户信息
	 */
	private FrontUserEntity user;
	/**
	 * 评论信息信息
	 */
	private List<OrderDTO> orderEntityList;

	/**
	 * 是否收藏
	 */
	private Boolean IsFavorite;

}
