feat(plugin): workflow plugin tool & llm with plugin exec; apiDetail & llm_fc_setting_detail & create_update_shortcut_command add plugin from

This commit is contained in:
lijunwen.gigoo
2025-10-15 17:21:06 +08:00
parent f7aa65c548
commit cb2a7e986e
51 changed files with 550 additions and 107 deletions

View File

@ -339,7 +339,7 @@ func convertPluginToProductInfo(plugin *entity.PluginInfo) *productAPI.ProductIn
IconURL: plugin.GetIconURI(),
ListedAt: plugin.CreatedAt,
EntityType: func() productCommon.ProductEntityType {
if ptr.From(plugin.Source) == bot_common.PluginSource_FromSaas {
if ptr.From(plugin.Source) == bot_common.PluginFrom_FromSaas {
return productCommon.ProductEntityType_SaasPlugin
}
return productCommon.ProductEntityType_Plugin
@ -392,7 +392,8 @@ func (p *PluginApplicationService) getSaasPluginList(ctx context.Context, domain
}
func (p *PluginApplicationService) getSaasPluginToolsList(ctx context.Context, pluginIDs []int64) (map[int64][]*entity.ToolInfo, error) {
return p.DomainSVC.BatchGetSaasPluginToolsInfo(ctx, pluginIDs)
tools, _, err := p.DomainSVC.BatchGetSaasPluginToolsInfo(ctx, pluginIDs)
return tools, err
}
func (p *PluginApplicationService) GetCozeSaasPluginList(ctx context.Context, req *productAPI.GetProductListRequest) (resp *productAPI.GetProductListResponse, err error) {