package com.jeesharp.business.modules.setting.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 活动营销规则。
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cfg_marketing_activity_rule")
@Schema(description = "活动营销规则")
public class MarketingActivityRule extends BaseEntity<MarketingActivityRule> {

    @Schema(description = "活动ID")
    private String activityId;

    @Schema(description = "规则类型")
    private String ruleType;

    @Schema(description = "触发事件")
    private String triggerEvent;

    @Schema(description = "奖励角色")
    private String rewardRole;

    @Schema(description = "奖励类型")
    private String rewardType;

    @Schema(description = "固定奖励值")
    private BigDecimal rewardValue;

    @Schema(description = "返佣比例")
    private BigDecimal rewardRatio;

    @Schema(description = "门槛金额")
    private BigDecimal thresholdAmount;

    @Schema(description = "奖励封顶金额")
    private BigDecimal maxRewardAmount;

    @Schema(description = "发放方式")
    private String grantMode;

    @Schema(description = "结算方式")
    private String settleMode;

    @Schema(description = "附加条件JSON")
    private String conditionJson;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "扩展JSON")
    private String extJson;
}
