mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 13:03:42 +08:00
🎨 Improving structure / format of the code.
This commit is contained in:
parent
017b59d93a
commit
5d218f552e
@ -21,7 +21,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.fasterxml.jackson.datatype.jsr310.ser.YearSerializer;
|
|
||||||
import com.pig4cloud.pig.admin.api.dto.UserDTO;
|
import com.pig4cloud.pig.admin.api.dto.UserDTO;
|
||||||
import com.pig4cloud.pig.admin.api.dto.UserInfo;
|
import com.pig4cloud.pig.admin.api.dto.UserInfo;
|
||||||
import com.pig4cloud.pig.admin.api.entity.SysUser;
|
import com.pig4cloud.pig.admin.api.entity.SysUser;
|
||||||
@ -187,8 +186,7 @@ public class UserController {
|
|||||||
@SysLog("修改个人信息")
|
@SysLog("修改个人信息")
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
public R<Boolean> updateUserInfo(@Valid @RequestBody UserDTO userDto) {
|
public R<Boolean> updateUserInfo(@Valid @RequestBody UserDTO userDto) {
|
||||||
String username = SecurityUtils.getUser().getUsername();
|
userDto.setUsername(SecurityUtils.getUser().getUsername());
|
||||||
userDto.setUsername(username);
|
|
||||||
return R.ok(userService.updateUserInfo(userDto));
|
return R.ok(userService.updateUserInfo(userDto));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user