package cc.mrbird.febs.ai.enumerates; import lombok.Getter; /** * @author Administrator */ @Getter public enum AiTalkOutputEnum { KEY_KNOWLEDGE(4,"权威参考依据","KEY_KNOWLEDGE"), REFERENCE_ANSWER(3,"情境化示例答案","REFERENCE_ANSWER"), SUGGESTION(2,"定制化参考建议","SUGGESTION"), HIGH_LIGHT(1,"答案亮点分析","HIGH_LIGHT"); private final int type; private final String content; private final String code; AiTalkOutputEnum(int type, String content, String code) { this.type = type; this.content = content; this.code = code; } public static String getContentByType(int type) { for (AiTalkOutputEnum value : AiTalkOutputEnum.values()) { if (value.getType() == type) { return value.getContent(); } } return null; } public static String getCodeByType(int type) { for (AiTalkOutputEnum value : AiTalkOutputEnum.values()) { if (value.getType() == type) { return value.getCode(); } } return null; } }