
package com.czg.market.dto;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 分销员等级配置 实体类。
 *
 * @author ww
 * @since 2025-10-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MkDistributionLevelConfigDTO implements Serializable {


    private Long id;


    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空")
    private String name;

    /**
     * 有效人数
     */
    @Min(value = 1, message = "有效人数不能小于1")
    private Integer inviteCount;

    /**
     * 消费金额
     */
    @DecimalMin(value = "0.01", message = "消费金额不能小于0.01")
    private BigDecimal costAmount;

    /**
     * 一级分销比例
     */
    @NotNull(message = "一级分销比例不为空")
    private BigDecimal commission;


}
