mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-06-20 07:22:00 +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…
x
Reference in New Issue
Block a user