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

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

@Schema(description = "管理后台 - 统一取费单价响应 VO")
@Data
public class QuotaUnifiedFeeRespVO {

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

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

    @Schema(description = "关联定额取费项ID", example = "2001")
    private Long feeItemId;

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

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

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

    @Schema(description = "计算基数")
    private Map<String, Object> calcBase;

    @Schema(description = "费率代号(%)", example = "A")
    private String rateCode;

    @Schema(description = "代号", example = "TYTQDJ001")
    private String code;

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

    @Schema(description = "基数说明", example = "按除税基价计算")
    private String baseDescription;

    @Schema(description = "是否隐藏", example = "false")
    private Boolean hidden;

    @Schema(description = "是否费用变量", example = "false")
    private Boolean variable;

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

    @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<QuotaUnifiedFeeRespVO> children;

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