壁挂打印机(缺文档接口说明)、身份证读取(缺64位dll动态库)

This commit is contained in:
2025-01-14 17:46:26 +08:00
parent 7d971f4d13
commit 68e2fbfc8c
36 changed files with 7058 additions and 117 deletions

View File

@@ -0,0 +1,37 @@
package com.dpkj.modules.autoReplyPrint.controller;
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;
/**
* 壁挂打印机
*/
@Slf4j
@RestController
@RequestMapping("autoReplyPrint")
public class AutoReplyPrintController {
@Autowired
private AutoReplyPrintService autoReplyPrintService;
/**
* 获取打印机固件版本
* @return
*/
@GetMapping("CPPrinterGetPrinterFirmwareVersion")
public Result<?> CPPrinterGetPrinterFirmwareVersion() {
try {
return autoReplyPrintService.CPPrinterGetPrinterFirmwareVersion();
} catch (Exception e) {
e.printStackTrace();
log.info("获取打印机固件版本失败 {}", e.getMessage());
return Result.error("获取打印机固件版本失败");
}
}
}