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

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

/**
 * 定额费率模式节点保存请求 VO
 */
@Schema(description = "管理后台 - 定额费率模式节点保存请求")
@Data
public class QuotaRateModeNodeSaveReqVO {

    @Schema(description = "父节点ID（定额专业节点ID）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "父节点ID不能为空")
    private Long parentId;

    @Schema(description = "节点编码", example = "MODE_001")
    private String code;

    @Schema(description = "节点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "一般计税模式")
    @NotBlank(message = "节点名称不能为空")
    private String name;

    @Schema(description = "排序值", example = "1")
    private Integer sortOrder;
}
