调整请求方式
This commit is contained in:
parent
fd2baf7d33
commit
aec28f662a
|
@ -4,9 +4,7 @@ import com.dpkj.common.vo.Result;
|
|||
import com.dpkj.modules.barcode.service.BarCodeService;
|
||||
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.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @BelongsProject: 银医通-澜沧中医院-DLL-台式机
|
||||
|
@ -28,7 +26,7 @@ public class BarCodeController {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("scanBarcode")
|
||||
@PostMapping("scanBarcode")
|
||||
public Result scanBarcode() {
|
||||
return barcodeService.scanBarcode();
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import com.dpkj.modules.keypad.service.KeypadService;
|
|||
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.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
@ -27,7 +28,7 @@ public class KeypadController {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("inputData")
|
||||
@PostMapping("inputData")
|
||||
public Result inputData() {
|
||||
return keypadService.inputData();
|
||||
}
|
||||
|
@ -36,7 +37,7 @@ public class KeypadController {
|
|||
* 取消输入 (明文或者密文)
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("cancelInput")
|
||||
@PostMapping("cancelInput")
|
||||
public Result CancelInput() {
|
||||
return keypadService.cancelInput();
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ public class RegisterController {
|
|||
/**
|
||||
* 挂号
|
||||
*/
|
||||
@GetMapping("/register/{templateName}")
|
||||
@PostMapping("/register/{templateName}")
|
||||
public Result<LexMarkResultDTO> register(@RequestParam String jsonData,
|
||||
@PathVariable String templateName,
|
||||
@RequestParam(defaultValue = "600") Integer width,
|
||||
|
@ -35,7 +35,7 @@ public class RegisterController {
|
|||
/**
|
||||
* 挂号,通过文件路径
|
||||
*/
|
||||
@GetMapping("/register")
|
||||
@PostMapping("/register")
|
||||
public Result<LexMarkResultDTO> registerByFilePath(@RequestParam(defaultValue = "D:\\images") String filePath){
|
||||
return Result.ok((LexMarkResultDTO)printService.printImage(null, null, 0, 0, filePath));
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import com.dpkj.modules.readcard.service.ReadCardService;
|
|||
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.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
@ -21,7 +22,7 @@ public class ReadCardController {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("IDCardReader")
|
||||
@PostMapping("IDCardReader")
|
||||
public Result IDCardReader() {
|
||||
return readCardService.IDCardReader();
|
||||
}
|
||||
|
@ -31,7 +32,7 @@ public class ReadCardController {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("SocialSecurityCardReader")
|
||||
@PostMapping("SocialSecurityCardReader")
|
||||
public Result SocialSecurityCardReader() {
|
||||
return readCardService.SocialSecurityCardReader();
|
||||
}
|
||||
|
@ -41,7 +42,7 @@ public class ReadCardController {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("cardRefund")
|
||||
@PostMapping("cardRefund")
|
||||
public Result cardRefund() {
|
||||
return readCardService.cardRefund();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue