package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cyksj.model.request.corp.Attachments;
import com.ejlchina.searcher.bean.DbIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 项目名: yhlxj
 * 文件名: CorpFollowActiveCode
 * 创建者: JavaZou
 * 创建时间:2023/10/9 16:23
 */
@Getter
@Setter
public class CorpFollowActiveCode extends BaseEntity{

	@NotEmpty(message = "活码标题不为空")
	private String name;

	@TableField(exist = false)
	@DbIgnore
	@NotNull(message = "请选择对应客服")
	private List<Integer> userIndxList;

	/**
	 * 客服
	 */
	private String followStr;

	/**
	 * 欢迎语模板id
	 */
	private Long msgId;

	/**
	 * 欢迎语内容 文本、附件
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String text;

	@TableField(exist = false)
	@DbIgnore
	private List<Attachments> attachments;

	/**
	 * 附件字符串
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String attachmentsStr;

	/**
	 * 活码
	 */
	private String codeStr;


	/**
	 * 客户标签
	 */
	@NotEmpty(message = "标签不为空")
	private String markTag;

	/**
	 * 是否值班
	 */
	private Boolean isDuty;

	/**
	 * 创建者
	 */
	private String operator;

	private Boolean deleted;
}
