mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-31 09:30:05 +08:00
增加 chat role 删除
This commit is contained in:
parent
591002f059
commit
7aef30cbe8
@ -95,7 +95,10 @@ public class ChatRoleServiceImpl implements ChatRoleService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(Long chatRoleId) {
|
public void delete(Long chatRoleId) {
|
||||||
|
// 检查角色是否存在
|
||||||
|
validateChatRoleExists(chatRoleId);
|
||||||
|
// 删除
|
||||||
|
aiChatRoleMapper.deleteById(chatRoleId);
|
||||||
}
|
}
|
||||||
|
|
||||||
private AiChatRoleDO validateChatRoleExists(Long id) {
|
private AiChatRoleDO validateChatRoleExists(Long id) {
|
||||||
@ -105,5 +108,4 @@ public class ChatRoleServiceImpl implements ChatRoleService {
|
|||||||
}
|
}
|
||||||
return aiChatRoleDO;
|
return aiChatRoleDO;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user