Просмотр исходного кода

合作平台 内容获取限流 30s 10次

wangyunpeng 22 часов назад
Родитель
Сommit
874628faae

+ 4 - 4
api-module/src/main/java/com/tzld/piaoquan/api/controller/contentplatform/ContentPlatformPlanController.java

@@ -64,28 +64,28 @@ public class ContentPlatformPlanController {
 
     @ApiOperation(value = "发布内容视频列表")
     @PostMapping("/videoContentList")
-    @RateLimit(timeWindow = 60, maxRequests = 10, limitByAccount = true, message = "请求过于频繁,请稍后再试")
+    @RateLimit(timeWindow = 30, maxRequests = 10, limitByAccount = true, message = "请求过于频繁,请稍后再试")
     public CommonResponse<Page<VideoContentItemVO>> getVideoContentList(@RequestBody VideoContentListParam param) {
         return CommonResponse.success(planService.getVideoContentList(param));
     }
 
     @ApiOperation(value = "向量匹配视频列表")
     @PostMapping("/vector/videoContentList")
-    @RateLimit(timeWindow = 60, maxRequests = 10, limitByAccount = true, message = "请求过于频繁,请稍后再试")
+    @RateLimit(timeWindow = 30, maxRequests = 10, limitByAccount = true, message = "请求过于频繁,请稍后再试")
     public CommonResponse<Page<VideoContentItemVO>> getVectorVideoContentList(@RequestBody VideoContentListParam param) {
         return CommonResponse.success(planService.getVectorVideoContentList(param));
     }
 
     @ApiOperation(value = "个人上传发布内容视频列表")
     @PostMapping("/upload/videoContentList")
-    @RateLimit(timeWindow = 60, maxRequests = 10, limitByAccount = true, message = "请求过于频繁,请稍后再试")
+    @RateLimit(timeWindow = 30, maxRequests = 10, limitByAccount = true, message = "请求过于频繁,请稍后再试")
     public CommonResponse<Page<VideoContentItemVO>> getUploadVideoContentList(@RequestBody VideoContentListParam param) {
         return CommonResponse.success(planService.getUploadVideoContentList(param));
     }
 
     @ApiOperation(value = "需求匹配视频列表")
     @PostMapping("/demand/videoContentList")
-    @RateLimit(timeWindow = 60, maxRequests = 10, limitByAccount = true, message = "请求过于频繁,请稍后再试")
+    @RateLimit(timeWindow = 30, maxRequests = 10, limitByAccount = true, message = "请求过于频繁,请稍后再试")
     public CommonResponse<Page<VideoContentItemVO>> getDemandVideoContentList(@RequestBody VideoContentListParam param) {
         return CommonResponse.success(planService.getDemandVideoContentList(param));
     }