package com.ai.da.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@ApiModel
public class EditReferralDTO {
    @NotNull(message = "referral id cannot be empty")
    @ApiModelProperty("指定需要修改的referral的id")
    private Long id;

    @ApiModelProperty("修改佣金金额")
    private BigDecimal commission;

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