
package com.tmerclub.cloud.product.dto;

import com.tmerclub.cloud.common.product.dto.SpuDTO;
import io.swagger.v3.oas.annotations.media.Schema;

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

/**
 * 商品分组表DTO
 *
 * @author lhd
 * @date 2021-02-20 14:28:10
 */
public class SpuTagDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "分组标签id")
    private Long id;

    @Schema(description = "分组标题")
    private String title;

    @Schema(description = "店铺Id")
    private Long shopId;

    @Schema(description = "状态(1为正常,-1 为删除)")
    private Integer status;

    @Schema(description = "默认类型(0:商家自定义,1:系统默认)")
    private Integer isDefault;

    @Schema(description = "商品数量")
    private Long prodCount;

    @Schema(description = "列表样式(0:一列一个,1:一列两个,2:一列三个)")
    private Integer style;

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

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;

    @Schema(description = "删除时间")
    private Date deleteTime;

    @Schema(description = "商品信息")
    private List<SpuDTO> spuList;

    @Schema(description = "商品关联ids")
    private List<Long> spuIds;

    public List<Long> getSpuIds() {
        return spuIds;
    }

    public void setSpuIds(List<Long> spuIds) {
        this.spuIds = spuIds;
    }

    public List<SpuDTO> getSpuList() {
        return spuList;
    }

    public void setSpuList(List<SpuDTO> spuList) {
        this.spuList = spuList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Long getProdCount() {
        return prodCount;
    }

    public void setProdCount(Long prodCount) {
        this.prodCount = prodCount;
    }

    public Integer getStyle() {
        return style;
    }

    public void setStyle(Integer style) {
        this.style = style;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "SpuTagDTO{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", shopId=" + shopId +
                ", status=" + status +
                ", isDefault=" + isDefault +
                ", prodCount=" + prodCount +
                ", style=" + style +
                ", seq=" + seq +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", deleteTime=" + deleteTime +
                ", spuList=" + spuList +
                ", spuIds=" + spuIds +
                '}';
    }
}
