package com.ai.da.model.dto;

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

import javax.validation.constraints.NotNull;

@Data
public class CreateCouponDTO {
    @ApiModelProperty("折扣率")
    @NotNull(message = "Please set the percentOff")
    private Float percentOff;
    @ApiModelProperty("佣金比例")
    @NotNull(message = "Please set the commissionRate.")
    private Float commissionRate;
    @ApiModelProperty("推广码到期时间 秒级时间戳")
    private Long endTime;
    @ApiModelProperty("推广码开始时间 秒级时间戳")
    private Long startTime;
    @ApiModelProperty("推广码最大使用次数")
    private Long maxRedemptions;
    @ApiModelProperty("合作者/机构名")
    private String cooperator;
    @ApiModelProperty("备注")
    private String remark;
}
