package com.ygj.yuemum.controller.ocr; import com.ygj.yuemum.service.ocr.BaiDuInfoServices; import io.swagger.annotations.Api; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @Api(tags = "百度验证信息") @RestController public class BaiDuInfoController { @Autowired BaiDuInfoServices baiDuInfoServices; @RequestMapping(value = "/getAccountNumber", method = RequestMethod.POST) @ResponseBody public String getAccountNumber(@RequestParam("file") MultipartFile file, @RequestParam("phone") String phone ) { return baiDuInfoServices.getAccountNumber(file,phone); } }