调整请求方式
This commit is contained in:
@@ -3,6 +3,7 @@ package com.dpkj.modules.autoReplyPrint.controller;
|
||||
import com.dpkj.common.vo.Result;
|
||||
import com.dpkj.modules.autoReplyPrint.service.ImagePrintService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
@@ -25,7 +26,7 @@ public class ImagePrintController {
|
||||
/**
|
||||
* 图片打印,通过路径
|
||||
*/
|
||||
@GetMapping("/usb/imagePrint/path")
|
||||
@PostMapping("/usb/imagePrint/path")
|
||||
Result<Void> usbImagePrintFromPath(@RequestParam(defaultValue = "VID:0x0FE6,PID:0x811E") String usbName,
|
||||
@RequestParam(defaultValue = "500") Integer width,
|
||||
@RequestParam(defaultValue = "500") Integer height,
|
||||
@@ -38,7 +39,7 @@ public class ImagePrintController {
|
||||
/**
|
||||
* 图片打印,通过byte[]
|
||||
*/
|
||||
@GetMapping("/usb/imagePrint/pathData")
|
||||
@PostMapping("/usb/imagePrint/pathData")
|
||||
Result<Void> usbImagePrintFromData(@RequestParam(defaultValue = "VID:0x0FE6,PID:0x811E") String usbName,
|
||||
@RequestParam(defaultValue = "500") Integer width,
|
||||
@RequestParam(defaultValue = "500") Integer height,
|
||||
@@ -51,7 +52,7 @@ public class ImagePrintController {
|
||||
/**
|
||||
* 图片打印,通过multipartFile文件
|
||||
*/
|
||||
@GetMapping("/usb/imagePrint/multipartFile")
|
||||
@PostMapping("/usb/imagePrint/multipartFile")
|
||||
Result<Void> usbImagePrintFromData(@RequestParam(defaultValue = "VID:0x0FE6,PID:0x811E") String usbName,
|
||||
@RequestParam(defaultValue = "500") Integer width,
|
||||
@RequestParam(defaultValue = "500") Integer height,
|
||||
@@ -64,7 +65,7 @@ public class ImagePrintController {
|
||||
/**
|
||||
* 图片打印,通过byte[]
|
||||
*/
|
||||
@GetMapping("/usb/imagePrint/data")
|
||||
@PostMapping("/usb/imagePrint/data")
|
||||
Result<Void> usbImagePrintFromData(@RequestParam(defaultValue = "VID:0x0FE6,PID:0x811E") String usbName,
|
||||
@RequestParam(defaultValue = "500") Integer width,
|
||||
@RequestParam(defaultValue = "500") Integer height,
|
||||
|
||||
Reference in New Issue
Block a user