| | |
| | | |
| | | import cn.hutool.core.codec.Base64; |
| | | import com.gkhy.exam.common.annotation.Log; |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.domain.entity.SysUser; |
| | | import com.gkhy.exam.common.enums.BusinessType; |
| | |
| | | return CommonResult.success(user); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "个人信息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public CommonResult updateProfile(@RequestBody SysUser user) |
| | |
| | | throw new ApiException("修改个人信息异常,请联系管理员"); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "个人信息", businessType = BusinessType.UPDATE) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "body", name = "oldPassword", dataType = "String", required = true, value = "旧密码"), |