refactor: move DoAction to MCP tools call

This commit is contained in:
lilong.129
2025-05-25 08:10:57 +08:00
parent 4ff2692f02
commit 7986c4899f
8 changed files with 2220 additions and 359 deletions

View File

@@ -19,7 +19,7 @@ func (r *Router) uixtActionHandler(c *gin.Context) {
return
}
if err = dExt.DoAction(req); err != nil {
if err = dExt.ExecuteAction(req); err != nil {
log.Err(err).Interface("action", req).
Msg("exec uixt action failed")
RenderError(c, err)
@@ -42,7 +42,7 @@ func (r *Router) uixtActionsHandler(c *gin.Context) {
}
for _, action := range actions {
if err = dExt.DoAction(action); err != nil {
if err = dExt.ExecuteAction(action); err != nil {
log.Err(err).Interface("action", action).
Msg("exec uixt action failed")
RenderError(c, err)