From 4cea097df4317898983011e98ecd37d4ea7ce1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=A2=A6=E8=BF=9C?= <1063331231@qq.com> Date: Mon, 14 Jul 2025 16:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E6=A3=80=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6json=E5=B7=A5=E5=85=B7=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/qyft/ms/app/core/SelfMoveTestGenerator.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/main/java/com/qyft/ms/app/core/SelfMoveTestGenerator.java diff --git a/src/main/java/com/qyft/ms/app/core/SelfMoveTestGenerator.java b/src/main/java/com/qyft/ms/app/core/SelfMoveTestGenerator.java new file mode 100644 index 0000000..a86e8e2 --- /dev/null +++ b/src/main/java/com/qyft/ms/app/core/SelfMoveTestGenerator.java @@ -0,0 +1,17 @@ +package com.qyft.ms.app.core; + +import cn.hutool.json.JSONObject; + +public class SelfMoveTestGenerator { + + public static JSONObject generateJson(String commandId, String command, String title, Object schedule,String type) { + JSONObject jsonObject = new JSONObject(); + jsonObject.set("commandId", commandId); + jsonObject.set("command", command); + jsonObject.set("title", title); + jsonObject.set("schedule", schedule); + jsonObject.set("type", type); + return jsonObject; + } + +}