Administrator
1 days ago c477b897db9991f5b0ad2d6d299ef7065466b862
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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;
    }
 
}