package com.cyksj.model.entity;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/*
 *项目名: netflix
 *文件名: WorkOrderChatHistory
 *创建者: JavaZou
 *创建时间:2023/4/19 15:15
 */
@Getter
@Setter
public class WorkOrderChatHistory extends BaseEntity {
	@NotNull(message = "工单id为空")
	private Long workOrderId;

	/**
	 * 消息发送方
	 */
	private Messenger fromUser;

	/**
	 * 消息接收方
	 */
	private Messenger toUser;

	/**
	 * 聊天的用户id
	 */
	private Long userId;

	/**
	 * 回复的客服id
	 */
	private Long replyCustomerServiceId;

	/**
	 * 发送的内容
	 */
	private String content;

	/**
	 * 图片
	 */
	private String imgs;

	public enum Messenger {
		root("客服"),
		user("用户"),
		;

		String desc;

		Messenger(String desc) {
			this.desc = desc;
		}
	}
}
