新增admin的根据驾驶证图片获取信息
This commit is contained in:
parent
0548422b4b
commit
301b797a85
@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.custom.controller.admin;
|
||||
|
||||
import cn.iocoder.yudao.module.custom.entity.CarMain;
|
||||
import cn.iocoder.yudao.module.custom.service.CarMainService;
|
||||
import cn.iocoder.yudao.module.custom.service.UserCarService;
|
||||
import cn.iocoder.yudao.module.custom.vo.CarMainReqVO;
|
||||
import cn.iocoder.yudao.module.custom.vo.CarMainRespVO;
|
||||
import cn.iocoder.yudao.module.custom.vo.CustomerMainSaveReqVO;
|
||||
@ -51,6 +52,9 @@ public class CarMainController {
|
||||
@Autowired
|
||||
private BusiLabelService busiLabelService;
|
||||
|
||||
@Resource
|
||||
private UserCarService userCarService;
|
||||
|
||||
/**
|
||||
* 创建车辆信息
|
||||
*
|
||||
@ -214,4 +218,16 @@ public class CarMainController {
|
||||
CarMain one = carMainService.getOne(new LambdaQueryWrapper<CarMain>().eq(CarMain::getLicenseNumber, carMain.getLicenseNumber()));
|
||||
return success(one);
|
||||
}
|
||||
|
||||
/**
|
||||
* OCR识别
|
||||
* @author vinjor-M
|
||||
* @date 16:58 2024/10/11
|
||||
* @param imagePath 公网图片地址
|
||||
* @return cn.iocoder.yudao.framework.common.pojo.CommonResult<?>
|
||||
**/
|
||||
@PostMapping("/vehicleLicenseOCR")
|
||||
public CommonResult<?> vehicleLicenseOCR(@RequestBody String imagePath) throws Exception {
|
||||
return CommonResult.success(userCarService.vehicleLicenseOCR(imagePath));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user