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

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

/**
 * 工作台统一取费配置 Save Request VO
 */
@Schema(description = "工作台 - 统一取费配置 Save Request VO")
@Data
public class WbUnifiedFeeConfigSaveReqVO {

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

    @Schema(description = "单位工程节点ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "单位工程节点ID不能为空")
    private Long compileTreeId;

    @Schema(description = "分部分项节点ID（范围）")
    private Long divisionId;

    @Schema(description = "来源统一取费设置ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "来源统一取费设置ID不能为空")
    private Long sourceUnifiedFeeSettingId;

    @Schema(description = "费率模式ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "费率模式ID不能为空")
    private Long rateModeId;

    @Schema(description = "配置数据")
    private Map<String, Object> configData;

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

    @Schema(description = "排序字段")
    private Integer sortOrder;
}
