调整请求方式

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.cardReader.service.CardReaderService;
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.*;
/**
* 多合一读卡器
@@ -23,7 +20,7 @@ public class CardReaderController {
* 连接设备并读取身份证信息
* @return
*/
@GetMapping("IDCardReader")
@PostMapping("IDCardReader")
public Result IDCardReader() {
try {
return cardReaderService.IDCardReader();
@@ -39,7 +36,7 @@ public class CardReaderController {
* 连接设备并读取社保卡信息
* @return
*/
@GetMapping("SocialSecurityCardReader")
@PostMapping("SocialSecurityCardReader")
public Result<?> SocialSecurityCardReader() {
try {
return cardReaderService.SocialSecurityCardReader();