浏览代码

Add constructor for Rest template

wfansh 6 月之前
父节点
当前提交
534fac9cc9

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/analytics/dto/GAAccountDTO.java

@@ -4,6 +4,7 @@ import com.wechi.adweb.bridge.google.common.ResourceDTO;
 
 import lombok.Data;
 import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
 import lombok.ToString;
 import lombok.experimental.SuperBuilder;
 
@@ -14,6 +15,7 @@ import org.apache.commons.lang3.StringUtils;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 @ToString(callSuper = true)
 @EqualsAndHashCode(callSuper = true)
 public class GAAccountDTO extends ResourceDTO {

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/analytics/dto/GADataStreamDTO.java

@@ -4,6 +4,7 @@ import com.wechi.adweb.bridge.google.common.ResourceDTO;
 
 import lombok.Data;
 import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
 import lombok.ToString;
 import lombok.experimental.SuperBuilder;
 
@@ -12,6 +13,7 @@ import lombok.experimental.SuperBuilder;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 @ToString(callSuper = true)
 @EqualsAndHashCode(callSuper = true)
 public class GADataStreamDTO extends ResourceDTO {

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/analytics/dto/GAPropertyDTO.java

@@ -4,6 +4,7 @@ import com.wechi.adweb.bridge.google.common.ResourceDTO;
 
 import lombok.Data;
 import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
 import lombok.ToString;
 import lombok.experimental.SuperBuilder;
 
@@ -16,6 +17,7 @@ import java.util.List;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 @ToString(callSuper = true)
 @EqualsAndHashCode(callSuper = true)
 public class GAPropertyDTO extends ResourceDTO {

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/common/ResourceDTO.java

@@ -4,6 +4,7 @@ import com.google.common.base.Splitter;
 import com.google.common.collect.Iterables;
 
 import lombok.Data;
+import lombok.NoArgsConstructor;
 import lombok.experimental.SuperBuilder;
 
 import java.io.Serializable;
@@ -14,6 +15,7 @@ import java.util.List;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 public abstract class ResourceDTO implements Serializable {
 
     protected static final char RESOURCE_NAME_SPLITTER = '/';

+ 2 - 3
src/main/java/com/wechi/adweb/bridge/google/gtm/dto/GTMAccountDTO.java

@@ -2,9 +2,7 @@ package com.wechi.adweb.bridge.google.gtm.dto;
 
 import com.wechi.adweb.bridge.google.common.ResourceDTO;
 
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
+import lombok.*;
 import lombok.experimental.SuperBuilder;
 
 import org.apache.commons.lang3.StringUtils;
@@ -14,6 +12,7 @@ import org.apache.commons.lang3.StringUtils;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 @ToString(callSuper = true)
 @EqualsAndHashCode(callSuper = true)
 public class GTMAccountDTO extends ResourceDTO {

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/gtm/dto/GTMContainerDTO.java

@@ -4,6 +4,7 @@ import com.wechi.adweb.bridge.google.common.ResourceDTO;
 
 import lombok.Data;
 import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
 import lombok.ToString;
 import lombok.experimental.SuperBuilder;
 
@@ -16,6 +17,7 @@ import java.util.List;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 @ToString(callSuper = true)
 @EqualsAndHashCode(callSuper = true)
 public class GTMContainerDTO extends ResourceDTO {

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/gtm/dto/GTMTriggerDTO.java

@@ -4,6 +4,7 @@ import com.wechi.adweb.bridge.google.common.ResourceDTO;
 
 import lombok.Data;
 import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
 import lombok.ToString;
 import lombok.experimental.SuperBuilder;
 
@@ -12,6 +13,7 @@ import lombok.experimental.SuperBuilder;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 @ToString(callSuper = true)
 @EqualsAndHashCode(callSuper = true)
 public class GTMTriggerDTO extends ResourceDTO {

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/gtm/dto/GTMVersionDTO.java

@@ -4,6 +4,7 @@ import com.wechi.adweb.bridge.google.common.ResourceDTO;
 
 import lombok.Data;
 import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
 import lombok.ToString;
 import lombok.experimental.SuperBuilder;
 
@@ -12,6 +13,7 @@ import lombok.experimental.SuperBuilder;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 @ToString(callSuper = true)
 @EqualsAndHashCode(callSuper = true)
 public class GTMVersionDTO extends ResourceDTO {

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/gtm/dto/GTMWorkspaceDTO.java

@@ -4,6 +4,7 @@ import com.wechi.adweb.bridge.google.common.ResourceDTO;
 
 import lombok.Data;
 import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
 import lombok.ToString;
 import lombok.experimental.SuperBuilder;
 
@@ -12,6 +13,7 @@ import lombok.experimental.SuperBuilder;
  */
 @Data
 @SuperBuilder
+@NoArgsConstructor
 @ToString(callSuper = true)
 @EqualsAndHashCode(callSuper = true)
 public class GTMWorkspaceDTO extends ResourceDTO {