ct hai 1 día
pai
achega
b13cfd95cd

+ 10 - 11
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterE2eController.java

@@ -18,7 +18,6 @@ import java.util.List;
 import java.util.Map;
 
 /**
- * 租户端 E2E 测试 / 测试剧本 / 动态节点审批(saasui)
  */
 @RestController
 public class LobsterE2eController extends BaseController {
@@ -43,7 +42,7 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:query')")
     @PostMapping("/workflow/lobster/e2e/run")
     public AjaxResult e2eRun(@RequestBody Map<String, Object> body) {
-        if (e2eTestService == null) return AjaxResult.error("E2E 测试服务未启用");
+        if (e2eTestService == null) return AjaxResult.error("E2E 锟斤拷锟皆凤拷锟斤拷未锟斤拷锟斤拷");
         LobsterE2eTestService.E2eRequest req = buildE2eRequest(body, currentCompanyId());
         return AjaxResult.success(e2eTestService.runE2e(req));
     }
@@ -51,7 +50,7 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:query')")
     @GetMapping("/workflow/lobster/e2e/report/{runId}")
     public AjaxResult e2eReport(@PathVariable String runId) {
-        if (e2eTestService == null) return AjaxResult.error("E2E 测试服务未启用");
+        if (e2eTestService == null) return AjaxResult.error("E2E 锟斤拷锟皆凤拷锟斤拷未锟斤拷锟斤拷");
         return AjaxResult.success(e2eTestService.getReport(runId));
     }
 
@@ -66,7 +65,7 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:exec')")
     @PostMapping("/workflow/lobster-exec/step-next/{instanceId}")
     public AjaxResult stepNext(@PathVariable Long instanceId, @RequestBody Map<String, Object> body) {
-        if (e2eTestService == null) return AjaxResult.error("E2E 测试服务未启用");
+        if (e2eTestService == null) return AjaxResult.error("E2E 锟斤拷锟皆凤拷锟斤拷未锟斤拷锟斤拷");
         String userInput = body != null ? (String) body.get("userInput") : null;
         return AjaxResult.success(e2eTestService.stepNext(currentCompanyId(), instanceId, userInput));
     }
@@ -74,7 +73,7 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:exec')")
     @PostMapping("/workflow/lobster/chat/multi-turn")
     public AjaxResult multiTurn(@RequestBody Map<String, Object> body) {
-        if (e2eTestService == null) return AjaxResult.error("E2E 测试服务未启用");
+        if (e2eTestService == null) return AjaxResult.error("E2E 锟斤拷锟皆凤拷锟斤拷未锟斤拷锟斤拷");
         List<String> inputs = parseStringList(body.get("userInputs"));
         return AjaxResult.success(e2eTestService.multiTurn(
                 currentCompanyId(),
@@ -95,14 +94,14 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:query')")
     @GetMapping("/workflow/lobster/scenario/{id}")
     public AjaxResult scenarioGet(@PathVariable Long id) {
-        if (testScenarioService == null) return AjaxResult.error("剧本服务未启用");
+        if (testScenarioService == null) return AjaxResult.error("锟界本锟斤拷锟斤拷未锟斤拷锟斤拷");
         return AjaxResult.success(testScenarioService.getScenario(id));
     }
 
     @PreAuthorize("@ss.hasPermi('workflow:lobster:edit')")
     @PostMapping("/workflow/lobster/scenario/save")
     public AjaxResult scenarioSave(@RequestBody Map<String, Object> body) {
-        if (testScenarioService == null) return AjaxResult.error("剧本服务未启用");
+        if (testScenarioService == null) return AjaxResult.error("锟界本锟斤拷锟斤拷未锟斤拷锟斤拷");
         body.putIfAbsent("companyId", currentCompanyId());
         Object idObj = body.get("id");
         if (idObj == null) {
@@ -122,7 +121,7 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:exec')")
     @PostMapping("/workflow/lobster/scenario/{id}/run")
     public AjaxResult scenarioRunNow(@PathVariable Long id) {
-        if (testScenarioService == null) return AjaxResult.error("剧本服务未启用");
+        if (testScenarioService == null) return AjaxResult.error("锟界本锟斤拷锟斤拷未锟斤拷锟斤拷");
         String runId = testScenarioService.runScenarioNow(id);
         Map<String, Object> r = new HashMap<>();
         r.put("runId", runId);
@@ -132,7 +131,7 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:exec')")
     @PostMapping("/workflow/lobster/scenario/run-all")
     public AjaxResult scenarioRunAll() {
-        if (testScenarioService == null) return AjaxResult.error("剧本服务未启用");
+        if (testScenarioService == null) return AjaxResult.error("锟界本锟斤拷锟斤拷未锟斤拷锟斤拷");
         Map<String, Object> r = new HashMap<>();
         r.put("triggered", testScenarioService.runAllEnabledScenarios());
         return AjaxResult.success(r);
@@ -148,7 +147,7 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:edit')")
     @PostMapping("/workflow/lobster/dynamic-impl/{id}/approve")
     public AjaxResult dynamicImplApprove(@PathVariable Long id) {
-        if (dynamicNodeImplService == null) return AjaxResult.error("服务未启用");
+        if (dynamicNodeImplService == null) return AjaxResult.error("锟斤拷锟斤拷未锟斤拷锟斤拷");
         LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
         dynamicNodeImplService.approve(id, loginUser.getUsername());
         return AjaxResult.success();
@@ -157,7 +156,7 @@ public class LobsterE2eController extends BaseController {
     @PreAuthorize("@ss.hasPermi('workflow:lobster:edit')")
     @PostMapping("/workflow/lobster/dynamic-impl/{id}/reject")
     public AjaxResult dynamicImplReject(@PathVariable Long id, @RequestParam String reason) {
-        if (dynamicNodeImplService == null) return AjaxResult.error("服务未启用");
+        if (dynamicNodeImplService == null) return AjaxResult.error("锟斤拷锟斤拷未锟斤拷锟斤拷");
         LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
         dynamicNodeImplService.reject(id, loginUser.getUsername(), reason);
         return AjaxResult.success();

+ 0 - 2
fs-company/src/main/java/com/fs/company/controller/workflow/LobsterPlatformAdminController.java

@@ -19,8 +19,6 @@ import org.springframework.web.bind.annotation.*;
 import java.util.*;
 
 /**
- * ????????????? API????? Service / Mapper?????????????
- * ¡¤???? saasui / saasadminui ?? lobster-admin.js ????
  */
 @RestController
 @RequestMapping("/workflow/lobster-admin")

+ 5 - 8
fs-service/src/main/java/com/fs/company/service/workflow/capability/LobsterNodeCapabilityRegistry.java

@@ -4,10 +4,7 @@ import com.fs.company.enums.LobsterNodeTypeEnum;
 
 import java.util.*;
 
-/**
- * 节点能力成熟度注册表(与 LobsterNodeTypeEnum 对齐)
- * 星级 1-5:1=占位 2=stub 3=部分可用 4=生产可用 5=完整
- */
+
 public final class LobsterNodeCapabilityRegistry {
 
     private LobsterNodeCapabilityRegistry() {}
@@ -59,7 +56,7 @@ public final class LobsterNodeCapabilityRegistry {
         reg(4, "wait", 4, ImplStatus.PARTIAL, "dynamic", "handleWaitNode", null);
         reg(5, "end", 5, ImplStatus.FULL, "dynamic", "handleEndNode", null);
         reg(6, "promotion_end", 4, ImplStatus.PARTIAL, "dynamic", "handlePromotionEndNode", null);
-        reg(7, "order_success", 3, ImplStatus.PARTIAL, "dynamic", "handleOrderSuccessNode", "不含真实支付闭环");
+        reg(7, "order_success", 3, ImplStatus.PARTIAL, "dynamic", "handleOrderSuccessNode", "锟斤拷锟斤拷锟斤拷实支锟斤拷锟秸伙拷");
         reg(8, "order_confirm", 4, ImplStatus.PARTIAL, "dynamic", "handleOrderConfirmNode", null);
         reg(9, "tag_operation", 4, ImplStatus.PARTIAL, "dynamic", "handleTagOperationNode", null);
         reg(10, "care", 4, ImplStatus.FULL, "dynamic", "handleCareNode", null);
@@ -78,7 +75,7 @@ public final class LobsterNodeCapabilityRegistry {
         reg(32, "timed_delay", 4, ImplStatus.PARTIAL, "dynamic", "handleTimedDelayNode", null);
         reg(33, "ai_chat", 5, ImplStatus.FULL, "both", "handleAiChatNode+evolve", null);
         reg(34, "sms_message", 4, ImplStatus.PARTIAL, "dynamic", "handleSmsMessageNode", null);
-        reg(35, "email_message", 3, ImplStatus.PARTIAL, "dynamic", "handleEmailMessageNode", "邮件仅落库日志");
+        reg(35, "email_message", 3, ImplStatus.PARTIAL, "dynamic", "handleEmailMessageNode", "锟绞硷拷锟斤拷锟斤拷锟斤拷锟街�");
         reg(40, "variable_assign", 4, ImplStatus.FULL, "dynamic", "handleVariableAssignNode", null);
         reg(41, "add_tag", 4, ImplStatus.PARTIAL, "dynamic", "handleAddTagNode", null);
         reg(42, "webhook", 4, ImplStatus.PARTIAL, "dynamic", "handleWebhookNode", null);
@@ -89,8 +86,8 @@ public final class LobsterNodeCapabilityRegistry {
         reg(52, "product_push", 4, ImplStatus.PARTIAL, "dynamic", "handleProductPushNode", null);
         reg(53, "logistics_notify", 4, ImplStatus.PARTIAL, "dynamic", "handleLogisticsNotifyNode", null);
         reg(100, "external_api", 4, ImplStatus.PARTIAL, "dynamic", "handleExternalApiNode", null);
-        reg(200, "custom_1", 3, ImplStatus.PARTIAL, "dynamic", "handleCustomNode", "配置驱动+AI兜底");
-        reg(201, "custom_2", 3, ImplStatus.PARTIAL, "dynamic", "handleCustomNode", "配置驱动+AI兜底");
+        reg(200, "custom_1", 3, ImplStatus.PARTIAL, "dynamic", "handleCustomNode", "锟斤拷锟斤拷锟斤拷锟斤拷+AI锟斤拷锟斤拷");
+        reg(201, "custom_2", 3, ImplStatus.PARTIAL, "dynamic", "handleCustomNode", "锟斤拷锟斤拷锟斤拷锟斤拷+AI锟斤拷锟斤拷");
     }
 
     private static void reg(int code, String codeName, int stars, ImplStatus status,