package com.fs.newAdv.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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

/**
 * 转化目标表
 *
 * @author zhangqin
 * @date 2025-11-03
 */
@Data
@TableName("adv_conversion_target")
public class ConversionTarget implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 转化目标ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 回传事件
     */
    private String callbackEvent;

    /**
     * 转化类型
     */
    private String conversionType;

    /**
     * 回传比例（%）
     */
    private BigDecimal callbackRatio;

    /**
     * 站点ID
     */
    private Long siteId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", strategy = FieldStrategy.NOT_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", strategy = FieldStrategy.NOT_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}

