|
@@ -8,7 +8,7 @@ import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
import cn.nosum.wx.cp.entity.workbench.WorkBenchKeyData;
|
|
|
import cn.nosum.wx.cp.entity.workbench.WorkBenchList;
|
|
|
-import cn.nosum.wx.cp.constant.WxCpConsts;
|
|
|
+import cn.nosum.wx.cp.constant.WxCpConstants;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.util.List;
|
|
@@ -83,7 +83,7 @@ public class WxCpAgentWorkBench implements Serializable {
|
|
|
// 处理不用类型的工作台数据
|
|
|
private void handle(JsonObject templateObject) {
|
|
|
switch (this.getType()) {
|
|
|
- case WxCpConsts.WorkBenchType.KEYDATA: {
|
|
|
+ case WxCpConstants.WorkBenchType.KEYDATA: {
|
|
|
JsonArray keyDataArray = new JsonArray();
|
|
|
JsonObject itemsObject = new JsonObject();
|
|
|
for (WorkBenchKeyData keyDataItem : this.keyDataList) {
|
|
@@ -98,7 +98,7 @@ public class WxCpAgentWorkBench implements Serializable {
|
|
|
templateObject.add("keydata", itemsObject);
|
|
|
break;
|
|
|
}
|
|
|
- case WxCpConsts.WorkBenchType.IMAGE: {
|
|
|
+ case WxCpConstants.WorkBenchType.IMAGE: {
|
|
|
JsonObject image = new JsonObject();
|
|
|
image.addProperty("url", this.url);
|
|
|
image.addProperty("jump_url", this.jumpUrl);
|
|
@@ -106,7 +106,7 @@ public class WxCpAgentWorkBench implements Serializable {
|
|
|
templateObject.add("image", image);
|
|
|
break;
|
|
|
}
|
|
|
- case WxCpConsts.WorkBenchType.LIST: {
|
|
|
+ case WxCpConstants.WorkBenchType.LIST: {
|
|
|
JsonArray listArray = new JsonArray();
|
|
|
JsonObject itemsObject = new JsonObject();
|
|
|
for (WorkBenchList listItem : this.lists) {
|
|
@@ -120,7 +120,7 @@ public class WxCpAgentWorkBench implements Serializable {
|
|
|
templateObject.add("list", itemsObject);
|
|
|
break;
|
|
|
}
|
|
|
- case WxCpConsts.WorkBenchType.WEBVIEW: {
|
|
|
+ case WxCpConstants.WorkBenchType.WEBVIEW: {
|
|
|
JsonObject webview = new JsonObject();
|
|
|
webview.addProperty("url", this.url);
|
|
|
webview.addProperty("jump_url", this.jumpUrl);
|