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

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

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 保存动态调整配置 Request VO")
@Data
public class QuotaAdjustmentDynamicConfigReqVO {

    @Schema(description = "调整设置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "调整设置ID不能为空")
    private Long adjustmentId;

    @Schema(description = "类别配置列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "类别配置列表不能为空")
    @Valid
    private List<QuotaAdjustmentDynamicCategoryVO> categories;
}
