...
|
...
|
@@ -82,7 +82,7 @@ public class UserCtrl { |
|
|
|
|
|
@RequestMapping("/update")
|
|
|
@ResponseBody
|
|
|
public BaseResponse updatePwd(@RequestBody User user) {
|
|
|
public BaseResponse update(@RequestBody User user) {
|
|
|
try{
|
|
|
int result = userMapper.update(user);
|
|
|
return new BaseResponse<Integer>(result);
|
...
|
...
|
@@ -92,6 +92,18 @@ public class UserCtrl { |
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/updatePwd")
|
|
|
@ResponseBody
|
|
|
public BaseResponse updatePwd(@RequestBody User user) {
|
|
|
try{
|
|
|
int result = userMapper.updatePwd(user);
|
|
|
return new BaseResponse<Integer>(result);
|
|
|
}catch (Exception e){
|
|
|
log.error("getUserById error",e);
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/deleteByName")
|
|
|
@ResponseBody
|
|
|
public BaseResponse deleteByName(String name) {
|
...
|
...
|
|