package com.ai.da.model.dto;

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

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import java.math.BigDecimal;

@Data
@Schema(description = "编辑推荐")
public class EditReferralDTO {
    @NotNull(message = "referral id cannot be empty")
    @Schema(description = "指定需要修改的referral的id")
    private Long id;

    @Schema(description = "修改佣金金额")
    private BigDecimal commission;

    @Schema(description = "referral状态 取值：Paid/Unpaid/Accept/Rejected")
    @Pattern(regexp = "Paid|Unpaid|Accept|Rejected", message = "状态必须是Paid/Unpaid/Accept/Rejected")
    private String status;
}
