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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 定额费率字段保存请求 VO
 */
@Schema(description = "管理后台 - 定额费率字段保存请求")
@Data
public class QuotaRateFieldSaveReqVO {

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

    @Schema(description = "关联费率项ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "费率项ID不能为空")
    private Long rateItemId;

    @Schema(description = "字段索引", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "字段索引不能为空")
    private Integer fieldIndex;

    @Schema(description = "字段值", example = "1")
    private Integer fieldValue;

    @Schema(description = "字段标签", example = "1区")
    private String fieldLabel;

    @Schema(description = "绑定的节点ID数组")
    private Long[] bindingIds;
}
