调整请求方式

This commit is contained in:
2025-02-18 15:24:46 +08:00
parent fd2baf7d33
commit aec28f662a
4 changed files with 11 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ public class RegisterController {
/**
* 挂号
*/
@GetMapping("/register/{templateName}")
@PostMapping("/register/{templateName}")
public Result<LexMarkResultDTO> register(@RequestParam String jsonData,
@PathVariable String templateName,
@RequestParam(defaultValue = "600") Integer width,
@@ -35,7 +35,7 @@ public class RegisterController {
/**
* 挂号,通过文件路径
*/
@GetMapping("/register")
@PostMapping("/register")
public Result<LexMarkResultDTO> registerByFilePath(@RequestParam(defaultValue = "D:\\images") String filePath){
return Result.ok((LexMarkResultDTO)printService.printImage(null, null, 0, 0, filePath));
}