mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-18 19:20:05 +08:00
增加 chat role 删除
This commit is contained in:
parent
591002f059
commit
7aef30cbe8
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user