package com.yhy.module.core.controller.admin.infoprice.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 信息价册 Response VO")
@Data
public class InfoPriceBookRespVO {

    @Schema(description = "主键", example = "1")
    private Long id;

    @Schema(description = "租户ID", example = "1")
    private Long tenantId;

    @Schema(description = "树节点ID", example = "1")
    private Long treeNodeId;

    @Schema(description = "信息价库版本号", example = "2024-v1.0")
    private String catalogVersion;

    @Schema(description = "信息价册名称", example = "2024年1月信息价")
    private String name;

    @Schema(description = "开始时间", example = "2024-01-01")
    private LocalDate startTime;

    @Schema(description = "结束时间", example = "2024-01-31")
    private LocalDate endTime;

    @Schema(description = "发布状态", example = "published")
    private String publishStatus;

    @Schema(description = "发布时间", example = "2024-01-01 10:00:00")
    private LocalDateTime publishTime;

    @Schema(description = "附件", example = "http://example.com/file.pdf")
    private String attachment;

    @Schema(description = "地区（虚拟字段）", example = "广东*深圳*建筑工程")
    private String region;

    @Schema(description = "创建者", example = "admin")
    private String creator;

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

    @Schema(description = "更新者", example = "admin")
    private String updater;

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