File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
base/src/main/java/com/tinyengine/it/controller Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 4141@ RequestMapping ("/app-center/api" )
4242@ Tag (name = "区块" )
4343public class CanvasController {
44+ /**
45+ * The canvas service.
46+ */
4447 @ Autowired
4548 private CanvasService canvasService ;
4649
Original file line number Diff line number Diff line change 1313package com .tinyengine .it .controller ;
1414
1515import com .tinyengine .it .common .base .Result ;
16+ import com .tinyengine .it .common .context .LoginUserContext ;
1617import com .tinyengine .it .model .entity .User ;
1718import com .tinyengine .it .service .app .UserService ;
1819
@@ -42,14 +43,20 @@ public class UserController {
4243 @ Autowired
4344 private UserService userService ;
4445
46+ /**
47+ * The loginUserContext service.
48+ */
49+ @ Autowired
50+ private LoginUserContext loginUserContext ;
51+
4552 /**
4653 * Me result.
4754 *
4855 * @return the result
4956 */
5057 @ GetMapping ("/user/me" )
5158 public Result <User > me () {
52- User user = userService .queryUserById (1 );
59+ User user = userService .queryUserById (Integer . parseInt ( loginUserContext . getLoginUserId ()) );
5360 return Result .success (user );
5461 }
5562}
You can’t perform that action at this time.
0 commit comments