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;

/**
 * 项目名: yhlxj2
 * 文件名: CorpKfUserChatView
 * 创建者: JavaZou
 * 创建时间:2025/1/10 11:30
 */
@Getter
@Setter
@SearchBean(tables = "corp_kf_servicer_session_record cr LEFT JOIN corp_follow cf on cf.userid = cr.servicer_userid" +
		" LEFT JOIN corp_kf_user cu on cu.external_userid = cr.external_userid",
		where = ":textKey:")
public class CorpKfUserChatRecordView {
	@DbField("cr.id")
	private Long sessionId;

	@DbField("cr.open_kf_id")
	private String openKfId;

	/**
	 * 会话转接客服id
	 */
	@DbField("cr.from_userid")
	private String fromUserid;

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

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

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

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

	@DbField("cu.unionid")
	private String unionid;

	@DbField("cu.avatar")
	private String avatar;

	/**
	 * 接待状态
	 * 0接待中 1已结束,2转接出去
	 */
	@DbField("cr.service_state")
	private Integer serviceState;

	/**
	 * 0未评价 1.满意 2.一般 3.不满意
	 * 满意度
	 */
	@DbField("cr.satisfaction")
	private Integer satisfaction;

	/**
	 * 是否发送满意度测评 默认false
	 */
	@DbField("cr.send_satisfaction")
	private Boolean sendSatisfaction;

	/**
	 * 会话开始时间
	 */
	@DbField("cr.start_time")
	private Date startTime;

	/**
	 * 会话关闭时间
	 */
	@DbField("cr.close_time")
	private Date closeTime;
}
