package com.greenorange.promotion.model.dto.userPerformanceSummary;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 抽成比例查询请求体
 */
@Data
@Schema(description = "抽成比例查询请求体", requiredProperties = {"level"})
public class RakeRewardsQueryRequest implements Serializable {

    /**
     * 级别
     */
    @NotBlank(message = "级别不能为空")
    @Pattern(regexp = "first|second", message = "级别只能是first或second")
    @Schema(description = "级别", example = "first")
    private String level;


    @Serial
    private static final long serialVersionUID = 1L;

}