mirror of https://gitee.com/maxjhandsome/pig
接口统一返回R数据格式优化(完成中)
This commit is contained in:
parent
e2878196e0
commit
6b8312737d
|
@ -62,8 +62,8 @@ public class UserController extends BaseController {
|
||||||
* @return 用户信息
|
* @return 用户信息
|
||||||
*/
|
*/
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public UserVo user(@PathVariable Integer id) {
|
public R<UserVo> user(@PathVariable Integer id) {
|
||||||
return userService.selectUserVoById(id);
|
return new R<>(userService.selectUserVoById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue