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

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

@Schema(description = "管理后台 - 信息价树结构创建/更新 Request VO")
@Data
public class InfoPriceTreeSaveReqVO {

    @Schema(description = "主键", example = "1")
    private Long id;

    @Schema(description = "枚举类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "region_a")
    @NotBlank(message = "枚举类型不能为空")
    private String enumType;

    @Schema(description = "父节点ID", example = "1")
    private Long parentId;

    @Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "GD")
    @NotBlank(message = "编码不能为空")
    private String code;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "广东")
    @NotBlank(message = "名称不能为空")
    private String name;

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

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