|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|
} |