package com.cyksj.model.views;

import com.cyksj.model.entity.WorkOrderChatHistory;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/*
 *项目名: netflix
 *文件名: WorkOrderChatHistoryView
 *创建者: JavaZou
 *创建时间:2023/4/19 15:55
 */
@Getter
@Setter
@SearchBean(tables = "work_order_chat_history ws left join cms_user cu on ws.reply_customer_service_id = cu.id")
public class WorkOrderChatHistoryView {
	@DbField("ws.id")
	private Long id;

	@DbField("ws.work_order_id")
	private Long workOrderId;

	@DbField("ws.from_user")
	private WorkOrderChatHistory.Messenger fromUser;

	@DbField("ws.to_user")
	private WorkOrderChatHistory.Messenger toUser;

	@DbField("ws.user_id")
	private Long userId;

	@DbIgnore
	private String nickname;

	@DbField("ws.content")
	private String content;

	@DbField("ws.imgs")
	private String imgs;

	@DbField("ws.reply_customer_service_id")
	private Long replyCustomerServiceId;

	@DbField("cu.nickname")
	private String customer;

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