【调整】删除没用的 enum

This commit is contained in:
cherishsince 2024-05-07 11:59:17 +08:00
parent 4ccaad7921
commit fb82dd2ffd
2 changed files with 0 additions and 45 deletions

View File

@ -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 {
}

View File

@ -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);
}
}