调整请求方式
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user