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

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.util.Map;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 统一取费设置创建/更新 Request VO")
@Data
public class QuotaUnifiedFeeSettingSaveReqVO {

    @Schema(description = "主键ID（更新时必填）", example = "1")
    private Long id;

    @Schema(description = "模式节点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1002")
    @NotNull(message = "模式节点ID不能为空")
    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 = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "统一取费项目1")
    @NotBlank(message = "名称不能为空")
    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;
}
