refactor(api): 移除伪造检测接口的RequestBody注解
- 移除了ForgeryDetectionController中forgeryDetection方法的@RequestBody注解 - 调整了方法参数传递方式以适配新的接口规范 - 更新了相关依赖导入,移除了未使用的RequestBody引用
This commit is contained in:
parent
b336806787
commit
34b365d04a
@ -13,7 +13,6 @@ import com.heyu.api.resp.doc.ForgeryDetectionResp;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@ -45,7 +44,7 @@ public class ForgeryDetectionController {
|
||||
*/
|
||||
@EbAuthentication(tencent = ApiConstants.TENCENT_AUTH)
|
||||
@PostMapping("/forgeryDetection")
|
||||
public R<ForgeryDetectionResp> forgeryDetection(@RequestBody ForgeryDetectionRequest request) {
|
||||
public R<ForgeryDetectionResp> forgeryDetection(ForgeryDetectionRequest request) {
|
||||
long start = System.currentTimeMillis();
|
||||
|
||||
BForgeryDetectionRequest bRequest = toBaiduRequest(request);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user