BaiDuInfoController.java 753 B

12345678910111213141516171819202122
  1. package com.ygj.yuemum.controller.ocr;
  2. import com.ygj.yuemum.service.ocr.BaiDuInfoServices;
  3. import io.swagger.annotations.Api;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.*;
  6. import org.springframework.web.multipart.MultipartFile;
  7. @Api(tags = "百度验证信息")
  8. @RestController
  9. public class BaiDuInfoController {
  10. @Autowired
  11. BaiDuInfoServices baiDuInfoServices;
  12. @RequestMapping(value = "/getAccountNumber", method = RequestMethod.POST)
  13. @ResponseBody
  14. public String getAccountNumber(@RequestParam("file") MultipartFile file,
  15. @RequestParam("phone") String phone
  16. ) {
  17. return baiDuInfoServices.getAccountNumber(file,phone);
  18. }
  19. }