🎨 Improving structure / format of the code.

This commit is contained in:
lbw 2022-06-24 13:17:31 +08:00
parent 017b59d93a
commit 5d218f552e

View File

@ -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));
} }