调整请求方式
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user