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

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

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

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

    @Schema(description = "关联的定额取费项ID（用于统一取费单价更新）", example = "1001")
    private Long feeItemId;

    @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 = "统一取费单价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;
}
