From 9c322f4ae707c2a8a817c28d683177930d0ca474 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 03 一月 2025 17:32:21 +0800 Subject: [PATCH] Integer改为Long --- start/src/main/java/com/ycl/web/controller/tool/TestController.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/start/src/main/java/com/ycl/web/controller/tool/TestController.java b/start/src/main/java/com/ycl/web/controller/tool/TestController.java index c4629de..5c775d1 100644 --- a/start/src/main/java/com/ycl/web/controller/tool/TestController.java +++ b/start/src/main/java/com/ycl/web/controller/tool/TestController.java @@ -47,9 +47,9 @@ } @ApiOperation("鑾峰彇鐢ㄦ埛璇︾粏") - @ApiImplicitParam(name = "userId", value = "鐢ㄦ埛ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) + @ApiImplicitParam(name = "userId", value = "鐢ㄦ埛ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Long.class) @GetMapping("/{userId}") - public R<UserEntity> getUser(@PathVariable Integer userId) + public R<UserEntity> getUser(@PathVariable Long userId) { if (!users.isEmpty() && users.containsKey(userId)) { @@ -63,7 +63,7 @@ @ApiOperation("鏂板鐢ㄦ埛") @ApiImplicitParams({ - @ApiImplicitParam(name = "userId", value = "鐢ㄦ埛id", dataType = "Integer", dataTypeClass = Integer.class), + @ApiImplicitParam(name = "userId", value = "鐢ㄦ埛id", dataType = "long", dataTypeClass = Long.class), @ApiImplicitParam(name = "username", value = "鐢ㄦ埛鍚嶇О", dataType = "String", dataTypeClass = String.class), @ApiImplicitParam(name = "password", value = "鐢ㄦ埛瀵嗙爜", dataType = "String", dataTypeClass = String.class), @ApiImplicitParam(name = "mobile", value = "鐢ㄦ埛鎵嬫満", dataType = "String", dataTypeClass = String.class) @@ -97,9 +97,9 @@ } @ApiOperation("鍒犻櫎鐢ㄦ埛淇℃伅") - @ApiImplicitParam(name = "userId", value = "鐢ㄦ埛ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) + @ApiImplicitParam(name = "userId", value = "鐢ㄦ埛ID", required = true, dataType = "long", paramType = "path", dataTypeClass = Long.class) @DeleteMapping("/{userId}") - public R<String> delete(@PathVariable Integer userId) + public R<String> delete(@PathVariable Long userId) { if (!users.isEmpty() && users.containsKey(userId)) { -- Gitblit v1.8.0