IdentifyService.java 921 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.ydtech.modules.order.service;
  2. import com.ydtech.core.page.HttpResult;
  3. import com.ydtech.modules.order.entity.BusinessLicense;
  4. import org.springframework.web.multipart.MultipartFile;
  5. import java.io.IOException;
  6. import java.util.Map;
  7. public interface IdentifyService {
  8. /**
  9. * 身份证正反面识别
  10. *
  11. * @param image1 正面
  12. * @param image2 反面
  13. * @return
  14. */
  15. HttpResult<Map<String, Object>> idCard(MultipartFile image1, MultipartFile image2) throws IOException;
  16. /**
  17. * 行驶证正反面识别
  18. *
  19. * @param image1 正面
  20. * @param image2 反面
  21. * @return
  22. */
  23. HttpResult<Map<String, Object>> drivingPermit(MultipartFile image1, MultipartFile image2) throws IOException;
  24. /**
  25. * 营业执照识别
  26. * @param image 正面信息
  27. * @return
  28. */
  29. HttpResult<BusinessLicense> businessLicense(MultipartFile image);
  30. }