package com.ruoyi.web.modules.diagnosis.support;

/**
 * 问诊会话与消息业务常量。
 */
public final class ConsultSessionRules
{
    public static final int CONSULT_TYPE_VET = 1;

    public static final int CONSULT_TYPE_AI = 2;

    public static final int CONSULT_TYPE_EXPERT = 3;

    public static final int VET_VISIBLE_YES = 1;

    public static final int VET_VISIBLE_NO = 0;

    public static final int SENDER_ROLE_ASKER = 1;

    public static final int SENDER_ROLE_RECEIVER = 2;

    public static final int SENDER_ROLE_AI = 3;

    public static final int MSG_TYPE_TEXT = 1;

    public static final int MSG_TYPE_IMAGE = 2;

    public static final int MSG_TYPE_VIDEO = 3;

    public static final int MSG_TYPE_VOICE = 4;

    public static final int DEFAULT_MESSAGE_PAGE_SIZE = 50;

    public static final int PREVIEW_MAX_LEN = 50;

    public static final String PREVIEW_IMAGE = "[图片]";

    public static final String PREVIEW_VIDEO = "[视频]";

    public static final String PREVIEW_VOICE = "[语音]";

    public static final String REDIS_PUSH_CHANNEL = "consult:push";

    private ConsultSessionRules()
    {
    }

    public static boolean isValidMsgType(Integer msgType)
    {
        return msgType != null && msgType >= MSG_TYPE_TEXT && msgType <= MSG_TYPE_VOICE;
    }
}
