This commit is contained in:
Leo
2024-04-28 11:27:02 +08:00
parent ed28a27057
commit 0f73cd01d0

View File

@@ -0,0 +1,29 @@
package cn.van333.wxsend.business.controller;
import cn.van333.wxsend.aop.annotation.RateLimiter;
import cn.van333.wxsend.business.model.R;
import cn.van333.wxsend.business.service.LogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
/**
* @author Leo
* @version 1.0
* @create 2023/10/07 0007 下午 02:25
* @description
*/
@RestController
@RequestMapping("/pdd")
public class PddController {
private static final Logger logger = LoggerFactory.getLogger(LogService.class);
@RequestMapping(value = "/callback")
@ResponseBody
@RateLimiter(time = 1, count = 60)
public R send() {
return R.ok();
}
}