You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: addon_node.go
    path of file: ./repos/erda/internal/tools/orchestrator/dbclient
    
    the code of the file until where you have to start completion: // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
/
    
func (db *DBClient) GetAddonNodesByInstanceIDs(instanceIDs []string) (*[]AddonNode, error) {
	// 获取匹配搜索结果总量
	var addonNodes []AddonNode
	if err := db.
		Where("instance_id in (?)", instanceIDs).
		Where("is_deleted = ?", apistructs.AddonNotDeleted).
		Find(&addonNodes).Error; err != nil {
		return nil, err
	}
	return &addonNodes, nil
}