Files
wxSend/src/main/java/cn/van333/wxsend/business/controller/PddController.java
2024-04-28 11:27:02 +08:00

30 lines
842 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
}
}