mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-18 21:15:06 +08:00
【调整】删除没用的 enum
This commit is contained in:
@ -1,11 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.ai.enums;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 枚举
|
|
||||||
*
|
|
||||||
* @author fansili
|
|
||||||
* @time 2024/5/6 11:48
|
|
||||||
* @since 1.0
|
|
||||||
*/
|
|
||||||
public enum AiChatModalTypeEnum {
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.ai.enums;
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 聊天类型
|
|
||||||
*
|
|
||||||
* @author fansili
|
|
||||||
* @time 2024/4/14 17:58
|
|
||||||
* @since 1.0
|
|
||||||
*/
|
|
||||||
@AllArgsConstructor
|
|
||||||
@Getter
|
|
||||||
public enum AiChatTypeEnum {
|
|
||||||
|
|
||||||
ROLE_CHAT("roleChat", "角色模板聊天"),
|
|
||||||
USER_CHAT("userChat", "用户普通聊天"),
|
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
private String type;
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
public static AiChatTypeEnum valueOfType(String type) {
|
|
||||||
for (AiChatTypeEnum itemEnum : AiChatTypeEnum.values()) {
|
|
||||||
if (itemEnum.getType().equals(type)) {
|
|
||||||
return itemEnum;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Invalid MessageType value: " + type);
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user