@PostMapping("/docparse")
public CommonResult<String> docparse(@RequestBody Map<String, Object> requestParams) {
String type = (String) requestParams.get("type");
String fileUrl = (String) requestParams.get("fileUrl"); // User-controlled input
String responseString = pdf2MdUtil.recognizeMarkdown(fileUrl, type);
return CommonResult.success(responseString);
return error(500, "Internal Server Error: " + e.getMessage());