feat(captain): align document response actions

This commit is contained in:
2026-06-05 12:24:16 +08:00
parent fc2cb12e63
commit afccb5f9ae
16 changed files with 877 additions and 160 deletions
@@ -189,7 +189,7 @@ func (h *CaptainCustomToolHandler) TestTool(c *gin.Context) {
result, err := h.svc.TestTool(c.Request.Context(), accountID, &req)
if err != nil {
applogger.L().Errorf("TestTool: %v", err)
response.AbortWithStatusError(c, http.StatusUnprocessableEntity, response.ErrInternal, "failed to test tool")
c.JSON(http.StatusUnprocessableEntity, gin.H{"error": err.Error()})
return
}