From 60e4184587a2e3e69376a28aaf6b6f87c55f2e4e Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 20 Jul 2020 17:30:00 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/modules/test/controller/TestUserController.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/test/controller/TestUserController.java b/src/main/java/com/xcong/excoin/modules/test/controller/TestUserController.java
index 0cc1b7a..0be8a3b 100644
--- a/src/main/java/com/xcong/excoin/modules/test/controller/TestUserController.java
+++ b/src/main/java/com/xcong/excoin/modules/test/controller/TestUserController.java
@@ -85,9 +85,18 @@
 
     @ApiOperation(value = "根据Id查询用户信息", notes = "根据Id查询用户信息")
     @GetMapping(value = "/findById/{id}")
-    public Result findById(@PathVariable(value = "id") Long id) {
+    public Result findById(@ApiParam(name = "id", value = "用户ID", required = true, example = "1") @PathVariable(value = "id") Long id) {
         TestUserEntity testUserEntity = testUserService.getById(id);
         TestUserVo testUserVo = TestUserEntityMapper.INSTANCE.entityToVo(testUserEntity);
         return Result.ok("success", testUserVo);
     }
+
+    @ApiOperation(value = "根据Id查询用户信息", notes = "根据Id查询用户信息")
+    @GetMapping(value = "/findByIdAndName/{id}/{name}")
+    public Result findByIdAndName(@ApiParam(name = "id", value="用户ID", required = true, example = "1") @PathVariable(value = "id") Long id,
+                                  @ApiParam(name = "name", value="用户姓名", required = true, example = "wzy") @PathVariable(value = "name") String name) {
+        log.info("---->{}", id);
+        log.info("----<{}", name);
+        return Result.ok("success");
+    }
 }

--
Gitblit v1.9.1