
package com.czg.market.dto;

import com.czg.market.entity.MkConsumeCashbackStep;
import com.czg.market.entity.MkConsumeDiscountRandom;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 新客立减 实体类。
 *
 * @author zs
 * @since 2025-09-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MkConsumeCashbackDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * all 全部可用 part部分门店可用
     */
    @NotBlank(message = "适用门店不为空")
    private String useType;

    /**
     * 门店列表
     */
    private List<Long> shopIdList;

    /**
     * 适用用户 all全部用户 new新用户 vip会员
     */
    @NotBlank(message = "适用用户不为空")
    private String applicableUser;

    /**
     * 返现类型 percentage比例 fix固定
     */
    @NotBlank(message = "返现类型不为空")
    private String cashbackType;

    /**
     * 返现配置
     */
    @Valid
    private List<MkConsumeCashbackStep> cashbackStepList;

    /**
     * 是否启用
     */
    @NotNull
    private Integer isEnable;

}
