|
@@ -75,26 +75,31 @@ public class UserController {
|
|
|
|
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequestMapping(value = UrlConstants.API + "user", method = RequestMethod.PUT)
|
|
@RequestMapping(value = UrlConstants.API + "user", method = RequestMethod.PUT)
|
|
- public UserVO updateUserInfo(@RequestBody UserVO UserVO) {
|
|
|
|
- return userLogic.updateUser(UserVO);
|
|
|
|
|
|
+ public UserVO updateUserInfo(@RequestBody UserVO userVO) {
|
|
|
|
+ userVO = userLogic.updateUser(userVO);
|
|
|
|
+ return userLogic.initialForUserVO(userVO);
|
|
}
|
|
}
|
|
|
|
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequestMapping(value = UrlConstants.API + "user/name", method = RequestMethod.PUT)
|
|
@RequestMapping(value = UrlConstants.API + "user/name", method = RequestMethod.PUT)
|
|
- public UserVO updateUserName(@RequestBody UserVO UserVO) {
|
|
|
|
- return userLogic.updateName(UserVO);
|
|
|
|
|
|
+ public UserVO updateUserName(@RequestBody UserVO userVO) {
|
|
|
|
+ userVO = userLogic.updateName(userVO);
|
|
|
|
+ return userLogic.initialForUserVO(userVO);
|
|
}
|
|
}
|
|
|
|
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequestMapping(value = UrlConstants.API + "user/school", method = RequestMethod.PUT)
|
|
@RequestMapping(value = UrlConstants.API + "user/school", method = RequestMethod.PUT)
|
|
- public UserVO updateUserAddress(@RequestBody UserVO UserVO) {
|
|
|
|
- return userLogic.updateAddress(UserVO);
|
|
|
|
|
|
+ public UserVO updateUserAddress(@RequestBody UserVO userVO) {
|
|
|
|
+
|
|
|
|
+ userVO = userLogic.updateAddress(userVO);
|
|
|
|
+ return userLogic.initialForUserVO(userVO);
|
|
}
|
|
}
|
|
|
|
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequestMapping(value = UrlConstants.API + "user/mobile", method = RequestMethod.PUT)
|
|
@RequestMapping(value = UrlConstants.API + "user/mobile", method = RequestMethod.PUT)
|
|
- public UserVO updateMobile(@RequestBody UserVO UserVO) {
|
|
|
|
- return userLogic.updateMobile(UserVO);
|
|
|
|
|
|
+ public UserVO updateMobile(@RequestBody UserVO userVO) {
|
|
|
|
+ userVO = userLogic.updateMobile(userVO);
|
|
|
|
+ return userLogic.initialForUserVO(userVO);
|
|
}
|
|
}
|
|
|
|
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequiresPermissions("personInfo:update")
|
|
@@ -110,15 +115,17 @@ public class UserController {
|
|
|
|
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequiresPermissions("personInfo:update")
|
|
@RequestMapping(value = UrlConstants.API + "user/appendfile", method = RequestMethod.PUT)
|
|
@RequestMapping(value = UrlConstants.API + "user/appendfile", method = RequestMethod.PUT)
|
|
- public UserVO updateAppendFile(@RequestBody UserVO UserVO) {
|
|
|
|
- return userLogic.updateAppendFile(UserVO);
|
|
|
|
|
|
+ public UserVO updateAppendFile(@RequestBody UserVO userVO) {
|
|
|
|
+ userVO = userLogic.updateAppendFile(userVO);
|
|
|
|
+ return userLogic.initialForUserVO(userVO);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("password:update")
|
|
@RequiresPermissions("password:update")
|
|
@RequestMapping(value = UrlConstants.API + "user/password", method = RequestMethod.PUT)
|
|
@RequestMapping(value = UrlConstants.API + "user/password", method = RequestMethod.PUT)
|
|
- public UserVO updateUserPassword(@RequestBody UserVO UserVO, HttpServletRequest request) {
|
|
|
|
- return userLogic.updateUserPassword(UserVO, request);
|
|
|
|
|
|
+ public UserVO updateUserPassword(@RequestBody UserVO userVO, HttpServletRequest request) {
|
|
|
|
+ userVO = userLogic.updateUserPassword(userVO, request);
|
|
|
|
+ return userLogic.initialForUserVO(userVO);
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/api/mobileLogin", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/api/mobileLogin", method = RequestMethod.POST)
|