mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
【调整】删除没用的 enum
This commit is contained in:
parent
4ccaad7921
commit
fb82dd2ffd
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user