wfansh 6 ماه پیش
والد
کامیت
5da57f08ce

+ 2 - 0
src/main/java/com/wechi/adweb/bridge/google/analytics/controller/GAController.java

@@ -81,6 +81,7 @@ public class GAController extends BaseController {
                 .build();
     }
 
+    @Operation(summary = "Get a property by its resource name.")
     @PostMapping("/properties/get")
     @ResponseBody
     public OpenAPIResponse<GAPropertyDTO> getProperty(
@@ -140,6 +141,7 @@ public class GAController extends BaseController {
                 .build();
     }
 
+    @Operation(summary = "Delete a property by its resource name.")
     @PostMapping("/properties/delete")
     @ResponseBody
     public OpenAPIResponse<String> deleteProperty(@RequestBody OpenAPIRequest<String> apiRequest)

+ 5 - 0
src/main/java/com/wechi/adweb/bridge/google/gtm/controller/GTMController.java

@@ -12,6 +12,8 @@ import com.wechi.adweb.bridge.google.gtm.dto.GTMContainerDTO;
 import com.wechi.adweb.bridge.google.gtm.service.GTMService;
 import com.wechi.adweb.bridge.util.JsonUtils;
 
+import io.swagger.v3.oas.annotations.Operation;
+
 import lombok.extern.slf4j.Slf4j;
 
 import org.apache.commons.lang3.StringUtils;
@@ -45,6 +47,7 @@ public class GTMController extends BaseController {
                 .build();
     }
 
+    @Operation(summary = "List the containers under a GTM account resource name.")
     @PostMapping("/containers/list")
     @ResponseBody
     public OpenAPIResponse<List<GTMContainerDTO>> listContainers(
@@ -71,6 +74,7 @@ public class GTMController extends BaseController {
                 .build();
     }
 
+    @Operation(summary = "Get a container by its resource name.")
     @PostMapping("/containers/get")
     @ResponseBody
     public OpenAPIResponse<GTMContainerDTO> getContainer(
@@ -123,6 +127,7 @@ public class GTMController extends BaseController {
                 .build();
     }
 
+    @Operation(summary = "Delete a container by its resource name.")
     @PostMapping("/containers/delete")
     @ResponseBody
     public OpenAPIResponse<String> deleteContainer(@RequestBody OpenAPIRequest<String> apiRequest)