|
@ -86,7 +86,7 @@ public class SysUserController { |
|
|
* @param param |
|
|
* @param param |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@SysLog(title = "个人信息更新",biz = BizType.UPDATE) |
|
|
@SysLog(title = "人员",desc = "个人信息更新",biz = BizType.UPDATE) |
|
|
@PostMapping("/updateInfo") |
|
|
@PostMapping("/updateInfo") |
|
|
public R<?> updateInfo(@RequestBody @Valid SysUser param){ |
|
|
public R<?> updateInfo(@RequestBody @Valid SysUser param){ |
|
|
LoginUser loginUser = AuthContextUtils.getLoginUser(); |
|
|
LoginUser loginUser = AuthContextUtils.getLoginUser(); |
|
@ -107,7 +107,7 @@ public class SysUserController { |
|
|
* @param param |
|
|
* @param param |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@SysLog(title = "个人密码更新",biz = BizType.UPDATE) |
|
|
@SysLog(title = "人员",desc = "个人密码更新",biz = BizType.UPDATE) |
|
|
@PostMapping("/updatePwd") |
|
|
@PostMapping("/updatePwd") |
|
|
public R<?> updatePwd(@RequestBody @Valid SysUserPwdParam param){ |
|
|
public R<?> updatePwd(@RequestBody @Valid SysUserPwdParam param){ |
|
|
LoginUser loginUser = AuthContextUtils.getLoginUser(); |
|
|
LoginUser loginUser = AuthContextUtils.getLoginUser(); |
|
@ -227,7 +227,7 @@ public class SysUserController { |
|
|
* @param id |
|
|
* @param id |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@SysLog(title = "用户查询",biz = BizType.QUERY) |
|
|
@SysLog(title = "人员",desc = "用户查询",biz = BizType.QUERY) |
|
|
@GetMapping("/getById/{id}") |
|
|
@GetMapping("/getById/{id}") |
|
|
@PreAuthorize("hasRole('sys:user:query')") |
|
|
@PreAuthorize("hasRole('sys:user:query')") |
|
|
public R<SysUser> getById(@PathVariable("id") String id){ |
|
|
public R<SysUser> getById(@PathVariable("id") String id){ |
|
@ -245,7 +245,7 @@ public class SysUserController { |
|
|
* @param param |
|
|
* @param param |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@SysLog(title = "用户保存",biz = BizType.INSERT) |
|
|
@SysLog(title = "人员",desc = "用户新增",biz = BizType.INSERT) |
|
|
@PostMapping("/save") |
|
|
@PostMapping("/save") |
|
|
@PreAuthorize("hasRole('sys:user:insert')") |
|
|
@PreAuthorize("hasRole('sys:user:insert')") |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
@ -274,7 +274,7 @@ public class SysUserController { |
|
|
* @param uid |
|
|
* @param uid |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@SysLog(title = "重置用户密码",biz = BizType.RESET) |
|
|
@SysLog(title = "人员",desc = "重置密码",biz = BizType.RESET) |
|
|
@PostMapping("/resetPwd/{uid}") |
|
|
@PostMapping("/resetPwd/{uid}") |
|
|
@PreAuthorize("hasRole('sys:user:reset')") |
|
|
@PreAuthorize("hasRole('sys:user:reset')") |
|
|
public R<?> resetPwd(@PathVariable("uid") String uid){ |
|
|
public R<?> resetPwd(@PathVariable("uid") String uid){ |
|
@ -294,7 +294,7 @@ public class SysUserController { |
|
|
* @param param |
|
|
* @param param |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@SysLog(title = "用户更新",biz = BizType.UPDATE) |
|
|
@SysLog(title = "人员",desc = "用户更新",biz = BizType.UPDATE) |
|
|
@PostMapping("/updateById") |
|
|
@PostMapping("/updateById") |
|
|
@PreAuthorize("hasRole('sys:user:update')") |
|
|
@PreAuthorize("hasRole('sys:user:update')") |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
@ -317,7 +317,7 @@ public class SysUserController { |
|
|
* @param id |
|
|
* @param id |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@SysLog(title = "用户删除",biz = BizType.DELETE) |
|
|
@SysLog(title = "人员",desc = "用户删除",biz = BizType.DELETE) |
|
|
@PostMapping("/deleteById/{id}") |
|
|
@PostMapping("/deleteById/{id}") |
|
|
@PreAuthorize("hasRole('sys:user:delete')") |
|
|
@PreAuthorize("hasRole('sys:user:delete')") |
|
|
public R<?> deleteById(@PathVariable("id") String id){ |
|
|
public R<?> deleteById(@PathVariable("id") String id){ |
|
@ -332,7 +332,7 @@ public class SysUserController { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("/tranPost") |
|
|
@PostMapping("/tranPost") |
|
|
@SysLog(title = "人员职务调动") |
|
|
@SysLog(title = "人员",desc = "职务调动") |
|
|
@PreAuthorize("hasRole('sys:user:post')") |
|
|
@PreAuthorize("hasRole('sys:user:post')") |
|
|
@LimitSubmit(interval = 5000) |
|
|
@LimitSubmit(interval = 5000) |
|
|
public R<?> tranPost(@RequestBody @Valid SysUserTranPostParam param){ |
|
|
public R<?> tranPost(@RequestBody @Valid SysUserTranPostParam param){ |
|
@ -349,7 +349,7 @@ public class SysUserController { |
|
|
* @param param |
|
|
* @param param |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@SysLog(title = "在职调动") |
|
|
@SysLog(title = "人员",desc = "在职调动") |
|
|
@PostMapping("/leave") |
|
|
@PostMapping("/leave") |
|
|
@PreAuthorize("hasRole('sys:user:leave')") |
|
|
@PreAuthorize("hasRole('sys:user:leave')") |
|
|
@LimitSubmit(interval = 5000) |
|
|
@LimitSubmit(interval = 5000) |
|
|