调整请求方式

This commit is contained in:
2025-02-18 15:26:28 +08:00
parent f36e6703a3
commit 62e47e55be
4 changed files with 13 additions and 18 deletions

View File

@@ -4,10 +4,7 @@ import com.dpkj.common.vo.Result;
import com.dpkj.modules.autoReplyPrint.service.AutoReplyPrintService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
* 壁挂打印机
@@ -22,7 +19,7 @@ public class AutoReplyPrintController {
/**
* 获取打印机固件版本
*/
@GetMapping("CPPrinterGetPrinterFirmwareVersion")
@PostMapping("CPPrinterGetPrinterFirmwareVersion")
public Result<?> CPPrinterGetPrinterFirmwareVersion(@RequestParam(defaultValue = "VID:0x0FE6,PID:0x811E") String USBName) {
return autoReplyPrintService.CPPrinterGetPrinterFirmwareVersion(USBName);
}
@@ -30,7 +27,7 @@ public class AutoReplyPrintController {
/**
* 测试打印
*/
@GetMapping("/testWrite")
@PostMapping("/testWrite")
private Result<?> testWrite(@RequestParam(defaultValue = "VID:0x0FE6,PID:0x811E") String USBName){
return this.autoReplyPrintService.testWrite(USBName);
}