package com.jeesharp.business.modules.mall.vo;

import com.jeesharp.framework.pojo.vo.BaseInfoVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 商品发布模板详情 VO，含明细行列表。
 *
 * @author jeesharp
 * @since 2026-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "商品发布模板详情")
public class MallProductTemplateInfoVO extends BaseInfoVO {

    @Schema(description = "模板名称")
    private String templateName;

    @Schema(description = "模板编码")
    private String templateCode;

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

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "明细行")
    private List<MallProductTemplateItemVO> items;

    @Schema(description = "引用本模板的类目列表（只读，反查 mall_category.template_id）")
    private List<MallLinkedCategoryVO> linkedCategories;

    @Schema(description = "创建时间")
    private LocalDateTime createDate;

    @Schema(description = "更新时间")
    private LocalDateTime updateDate;
}
