DYL0109
2025-04-16 75f043dfa6660716364e66ee0b3cf99f44255686
zhitan-admin/src/main/java/com/zhitan/web/controller/system/SysProfileController.java
@@ -1,5 +1,6 @@
package com.zhitan.web.controller.system;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
@@ -43,6 +44,7 @@
     * 个人信息
     */
    @GetMapping
    @PreAuthorize("@ss.hasPermi('system:user:message')")
    public AjaxResult profile()
    {
        LoginUser loginUser = getLoginUser();
@@ -57,6 +59,7 @@
     * 修改用户
     */
    @Log(title = "个人信息", businessType = BusinessType.UPDATE)
    @PreAuthorize("@ss.hasPermi('system:user:edit')")
    @PutMapping
    public AjaxResult updateProfile(@RequestBody SysUser user)
    {
@@ -87,6 +90,7 @@
     * 重置密码
     */
    @Log(title = "个人信息", businessType = BusinessType.UPDATE)
    @PreAuthorize("@ss.hasPermi('system:user:edit')")
    @PutMapping("/updatePwd")
    public AjaxResult updatePwd(String oldPassword, String newPassword)
    {