package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 项目名: yhlxj
 * 文件名: CorpCustomerAcquisitionLinkPopularizeView
 * 创建者: JavaZou
 * 创建时间:2023/12/8 14:39
 */
@Getter
@Setter
@SearchBean(tables = "corp_customer_acquisition_link_popularize cap left join channel_popularize cp on cp.id = cap.popularize_id" +
		" left join channel c on c.id = cp.channel_id")
public class CorpCustomerAcquisitionLinkPopularizeView {

	@DbField("cap.id")
	private Long id;

	@DbField("cap.popularize_id")
	private Long popularizeId;

	@DbField("cp.name")
	private String popularizeName;

	@DbField("cp.channel_id")
	private Long channelId;

	@DbField("c.name")
	private String channelName;

	@DbField("cp.customer_acquistion_link_id")
	private Long customerAcquistionLinkId;

	/**
	 * 1.加粉 2.深度回传
	 */
	@DbField("cap.type")
	private Integer type;

	/**
	 * 回传事件
	 */
	@DbField("cap.event")
	private String event;

	/**
	 * 前置回传
	 */
	@DbField("cap.add_event")
	private String addEvent;

	/**
	 * 监测时间
	 */
	@DbField("cap.time")
	private Long time;

	/**
	 * 是否监听微信客户发起会话事件 才回传
	 */
	@DbField("cap.is_chat")
	private Boolean isChat;

	@DbField("cap.created_time")
	private Date createdTime;
}
