mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	增加 chat role 删除
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user