From b9366ecae5b1e5a2fe3bbb7efacc3c94a6645259 Mon Sep 17 00:00:00 2001 From: leej1012 Date: Wed, 22 Nov 2023 10:22:07 +0800 Subject: [PATCH] Add RequestLimit of 6th anniversary interface --- .../com/github/ontio/controller/ActivityDataController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/back-end-projects/Explorer/src/main/java/com/github/ontio/controller/ActivityDataController.java b/back-end-projects/Explorer/src/main/java/com/github/ontio/controller/ActivityDataController.java index 3bced80d..d6500a4c 100644 --- a/back-end-projects/Explorer/src/main/java/com/github/ontio/controller/ActivityDataController.java +++ b/back-end-projects/Explorer/src/main/java/com/github/ontio/controller/ActivityDataController.java @@ -1,5 +1,6 @@ package com.github.ontio.controller; +import com.github.ontio.aop.RequestLimit; import com.github.ontio.model.dto.Anniversary6thDataDto; import com.github.ontio.service.IActivityDataService; import io.swagger.annotations.ApiOperation; @@ -21,7 +22,7 @@ public class ActivityDataController { @Autowired private IActivityDataService activityDataService; - + @RequestLimit(count = 120) @ApiOperation(value = "Get address 6th anniversary data") @GetMapping(value = "/6th_anniversary/{address}") public Anniversary6thDataDto queryAddress6thAnniversaryData(@PathVariable("address") @Length(min = 34, max = 42, message = "Incorrect address format") String address) {