ÎļþÃû´Ó igds-inout/src/main/java/com/ld/igds/inout/controller/InoutDeviceController.java ÐÞ¸Ä |
| | |
| | | |
| | | import com.ld.igds.constant.RespCodeEnum; |
| | | import com.ld.igds.data.PageResponse; |
| | | import com.ld.igds.data.SnapImgDto; |
| | | import com.ld.igds.inout.dto.ApiInoutData; |
| | | import com.ld.igds.inout.dto.InoutCameraDto; |
| | | import com.ld.igds.inout.dto.InoutSnapImgDto; |
| | | import com.ld.igds.inout.manager.InoutDeviceManager; |
| | | import com.ld.igds.models.InoutConf; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("inout/api") |
| | | public class InoutDeviceController { |
| | | public class InoutApiController { |
| | | |
| | | @Resource |
| | | private InoutDeviceManager inoutDeviceManager; |
| | |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/flush-lpr") |
| | | public PageResponse<ApiInoutData> flushPlate(@RequestBody ApiInoutData param) { |
| | | @RequestMapping("/get-plateNum") |
| | | public PageResponse<ApiInoutData> getPlateNum(@RequestBody ApiInoutData param) { |
| | | |
| | | if (StringUtils.isEmpty(param.getProtocol())) { |
| | | param.setErrorMsg("å½å车çè¯å«æªé
ç½®é讯åè®®ï¼æ æ³æ§è¡"); |
| | |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), param.getErrorMsg()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * åºå
¥åºè§é¢ |
| | | * |
| | |
| | | */ |
| | | @RequestMapping("/snap-img") |
| | | public @ResponseBody |
| | | PageResponse<InoutSnapImgDto> cutImg(@RequestBody InoutSnapImgDto param) { |
| | | PageResponse<SnapImgDto> cutImg(@RequestBody SnapImgDto param) { |
| | | |
| | | param = inoutDeviceManager.snapImg(param); |
| | | |