接口统一返回R数据格式优化(完成中)

This commit is contained in:
guod 2018-02-06 10:08:12 +08:00
parent e2878196e0
commit 6b8312737d
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ public class UserController extends BaseController {
* @return 用户信息
*/
@GetMapping("/{id}")
public UserVo user(@PathVariable Integer id) {
return userService.selectUserVoById(id);
public R<UserVo> user(@PathVariable Integer id) {
return new R<>(userService.selectUserVoById(id));
}
/**