package com.ytpm.app.model;

import com.ytpm.custom.CustomField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 默认的风控配置
 */
@Data
@ApiModel("默认风控配置")
@AllArgsConstructor
@NoArgsConstructor
public class DefaultRiskConfig {
    @CustomField(desc = "?天内",node = 99)
    @ApiModelProperty("?天内")
    private int days;
    @CustomField(desc = "IP前?段",node = 1)
    @ApiModelProperty("IP前?段")
    private int ipPrefix;
    @CustomField(node = 1)
    @ApiModelProperty("同IP登录数量")
    private int ipSameCount;
    @CustomField(node = 2)
    @ApiModelProperty("当日前?条激励视频")
    private int firstAdCount;
    @CustomField(node = 2)
    @ApiModelProperty("ecpm值")
    private int ecpm;
    @CustomField(node = 2)
    @ApiModelProperty("总收益")
    private BigDecimal income;

    @CustomField(desc = "当日前?条获得奖励的激励视频",node = 2)
    @ApiModelProperty("当日前?条获得奖励的激励视频")
    private int rewardCount;

    @CustomField(desc = "有?条", node = 2)
    @ApiModelProperty("有?条")
    private int haveCount;

    @CustomField(desc = "生成UID数", node = 1)
    @ApiModelProperty("生成UID数")
    private int uidCount;
    /**
     * 校验的字段名,用于匹配数据中相同字段
     */
    @CustomField(value = "same_field_name", desc = "字段?相同", node = 99)
    @ApiModelProperty("字段?相同")
    private String sameFieldName;
}
