package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 项目名: yhlxj2
 * 文件名: CorpKfAccountSessionChat
 * 创建者: JavaZou
 * 创建时间:2025/1/2 13:45
 */
@Getter
@Setter
@SearchBean(tables = "corp_kf_account_session_chat cc" +
		" LEFT JOIN corp_follow cf on cf.userid = cc.servicer_userid" +
		" LEFT JOIN corp_kf_user cu on cu.external_userid = cc.external_userid",
		orderBy = "cc.send_time")
public class CorpKfAccountSessionChat extends BaseEntity{
	@DbField("cc.open_kf_id")
	private String openKfId;

	@DbField("cc.session_id")
	private Long sessionId;

	@DbField("cc.msgid")
	private String msgid;

	/**
	 * 消息来源。3-微信客户发送的消息 4-系统推送的事件消息 5-接待人员在企业微信客户端发送的消息
	 */
	@DbField("cc.orign")
	private Integer orign;

	@DbField("cc.servicer_userid")
	private String servicerUserid;

	/**
	 * 成员名称
	 */
	@DbField("cf.name")
	@TableField(exist = false)
	private String followName;

	@DbField("cc.external_userid")
	private String externalUserid;

	/**
	 * 用户昵称
	 */
	@DbField("cu.nickname")
	@TableField(exist = false)
	private String name;

	@DbField("cu.avatar")
	@TableField(exist = false)
	private String avatar;

	@DbField("cc.msg_type")
	private String msgType;

	@DbField("cc.msg_content")
	private String msgContent;

	/**
	 * 	链接标题
	 */
	@DbField("cc.link_title")
	private String linkTitle;

	/**
	 * 链接描述
	 */
	@DbField("cc.link_desc")
	private String linkDesc;

	/**
	 * 链接 点击后跳转的链接
	 */
	@DbField("cc.link_url")
	private String linkUrl;

	/**
	 * 链接 缩略图链接
	 */
	@DbField("cc.link_pic_url")
	private String linkPicUrl;

	/**
	 * 秒长
	 */
	@DbField("cc.send_time")
	private Long sendTime;

	/**
	 * 发送日期
	 */
	@DbField("cc.send_date")
	private Date sendDate;

	/**
	 * 图片、视频、文件展示链接
	 */
	@DbField("cc.url")
	private String url;
}
