package com.zt.plat.module.base.controller.admin.businessdimension.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.zt.plat.framework.excel.core.annotations.DictFormat;
import com.zt.plat.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 经营指标维度 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BusinessDimensionRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5174")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "父级ID", example = "29218")
    @ExcelProperty("父级ID")
    private Long parentId;

    @Schema(description = "维度类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "维度类型", converter = DictConvert.class)
    @DictFormat("demo_contract") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String typeValue;

    @Schema(description = "维度编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("维度编码")
    private String code;

    @Schema(description = "维度名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("维度名称")
    private String name;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}