增加 chat role 删除

This commit is contained in:
cherishsince 2024-04-24 17:20:13 +08:00
parent 591002f059
commit 7aef30cbe8

View File

@ -95,7 +95,10 @@ public class ChatRoleServiceImpl implements ChatRoleService {
@Override
public void delete(Long chatRoleId) {
// 检查角色是否存在
validateChatRoleExists(chatRoleId);
// 删除
aiChatRoleMapper.deleteById(chatRoleId);
}
private AiChatRoleDO validateChatRoleExists(Long id) {
@ -105,5 +108,4 @@ public class ChatRoleServiceImpl implements ChatRoleService {
}
return aiChatRoleDO;
}
}