refactor(car): 移除驾驶证识别接口的多余注解
- 移除了 RecognizeDriverLicenseController 中的 @RequestBody 注解 - 简化了 recognize 方法的参数声明 - 优化了接口参数处理逻辑
This commit is contained in:
parent
8b4a5034b9
commit
b336806787
@ -12,7 +12,6 @@ import com.heyu.api.resp.car.RecognizeDriverLicenseBackResp;
|
|||||||
import com.heyu.api.resp.car.RecognizeDriverLicenseFaceResp;
|
import com.heyu.api.resp.car.RecognizeDriverLicenseFaceResp;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@ -38,7 +37,7 @@ public class RecognizeDriverLicenseController extends BaseController {
|
|||||||
|
|
||||||
@EbAuthentication(tencent = ApiConstants.TENCENT_AUTH)
|
@EbAuthentication(tencent = ApiConstants.TENCENT_AUTH)
|
||||||
@PostMapping("/recognize")
|
@PostMapping("/recognize")
|
||||||
public R<RecognizeDriverLicenseFaceResp> recognize(@RequestBody DriverLicenseRecognizeRequest request) {
|
public R<RecognizeDriverLicenseFaceResp> recognize(DriverLicenseRecognizeRequest request) {
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
long t1 = System.currentTimeMillis();
|
long t1 = System.currentTimeMillis();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user