2025-02-10 17:41:16 +08:00
|
|
|
|
package com.dpkj.modules.keypad.controller;
|
|
|
|
|
|
|
|
|
|
import com.dpkj.common.vo.Result;
|
|
|
|
|
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;
|
2025-02-18 15:24:46 +08:00
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
2025-02-10 17:41:16 +08:00
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @BelongsProject: 银医通-澜沧中医院-DLL-台式机
|
|
|
|
|
* @BelongsPackage: com.dpkj.modules.keypad.controller
|
|
|
|
|
* @Author: wzc
|
|
|
|
|
* @Description: 数字键盘
|
|
|
|
|
* @CreateTime: 2025-02-10 15:21
|
|
|
|
|
*/
|
|
|
|
|
@Slf4j
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("keypad")
|
|
|
|
|
public class KeypadController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private KeypadService keypadService;
|
|
|
|
|
/**
|
|
|
|
|
* 数字键盘 明文输入
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2025-02-18 15:24:46 +08:00
|
|
|
|
@PostMapping("inputData")
|
2025-02-10 17:41:16 +08:00
|
|
|
|
public Result inputData() {
|
|
|
|
|
return keypadService.inputData();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 取消输入 (明文或者密文)
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2025-02-18 15:24:46 +08:00
|
|
|
|
@PostMapping("cancelInput")
|
2025-02-10 17:41:16 +08:00
|
|
|
|
public Result CancelInput() {
|
|
|
|
|
return keypadService.cancelInput();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|