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

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

/**
 * 基数费率项保存 Request VO
 *
 * @author yhy
 */
@Schema(description = "管理后台 - 基数费率项保存 Request VO")
@Data
public class CalcBaseRateItemSaveReqVO {

    /**
     * 创建时的校验分组
     */
    public interface CreateGroup {}

    /**
     * 更新时的校验分组
     */
    public interface UpdateGroup {}

    @Schema(description = "主键ID", example = "1")
    @NotNull(message = "ID不能为空", groups = UpdateGroup.class)
    private Long id;

    @Schema(description = "关联基数费率目录ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "目录ID不能为空", groups = CreateGroup.class)
    private Long calcBaseRateDirectoryId;

    @Schema(description = "名称", example = "人工费")
    private String name;

    @Schema(description = "费率", example = "3.5%")
    private String rate;

    @Schema(description = "备注", example = "...")
    private String remark;

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

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