mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +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.toolkit.Wrappers;
|
||||
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.UserInfo;
|
||||
import com.pig4cloud.pig.admin.api.entity.SysUser;
|
||||
@ -187,8 +186,7 @@ public class UserController {
|
||||
@SysLog("修改个人信息")
|
||||
@PutMapping("/edit")
|
||||
public R<Boolean> updateUserInfo(@Valid @RequestBody UserDTO userDto) {
|
||||
String username = SecurityUtils.getUser().getUsername();
|
||||
userDto.setUsername(username);
|
||||
userDto.setUsername(SecurityUtils.getUser().getUsername());
|
||||
return R.ok(userService.updateUserInfo(userDto));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user