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

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import lombok.Data;

@Schema(description = "管理后台 - 统一取费设置响应 VO")
@Data
public class QuotaUnifiedFeeSettingRespVO {

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

    @Schema(description = "模式节点ID", example = "1002")
    private Long catalogItemId;

    @Schema(description = "父节点ID", example = "1001")
    private Long parentId;

    @Schema(description = "自定义序号", example = "一")
    private String customCode;

    @Schema(description = "编号", example = "TYTQ001")
    private String code;

    @Schema(description = "名称", example = "统一取费项目1")
    private String name;

    @Schema(description = "取费章节", example = "第一章")
    private String feeChapter;

    @Schema(description = "默认费用归属", example = "间接费")
    private String feeCategory;

    @Schema(description = "本清单比例%", example = "100.00")
    private BigDecimal thisListPercentage;

    @Schema(description = "指定清单比例%", example = "50.00")
    private BigDecimal specifiedListPercentage;

    @Schema(description = "指定清单编码", example = "QD001")
    private String specifiedListCode;

    @Schema(description = "节点类型", example = "parent")
    private String nodeType;

    @Schema(description = "单位", example = "m³")
    private String unit;

    @Schema(description = "扩展属性")
    private Map<String, Object> attributes;

    @Schema(description = "排序字段", example = "1")
    private Integer sortOrder;

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

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

    @Schema(description = "子节点列表")
    private List<QuotaUnifiedFeeSettingRespVO> children;

    @Schema(description = "是否有子节点")
    private Boolean hasChildren;
}
