壁挂打印机(缺文档接口说明)、身份证读取(缺64位dll动态库)
This commit is contained in:
@@ -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("获取打印机固件版本失败");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user