package com.ai.da.model.dto;

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

import jakarta.validation.constraints.NotNull;

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