|
|
@ -42,7 +42,7 @@ public class UserPasswdController extends BaseController { |
|
|
|
/** |
|
|
|
* 查询用户密码列表 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:userPasswd:list") |
|
|
|
// @SaCheckPermission("business:userPasswd:list")
|
|
|
|
@GetMapping("/list") |
|
|
|
public TableDataInfo<UserPasswdVo> list(UserPasswdBo bo, PageQuery pageQuery) { |
|
|
|
return iUserPasswdService.queryPageList(bo, pageQuery); |
|
|
@ -51,7 +51,7 @@ public class UserPasswdController extends BaseController { |
|
|
|
/** |
|
|
|
* 校验登录密码 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:userPasswd:list") |
|
|
|
// @SaCheckPermission("business:userPasswd:list")
|
|
|
|
@GetMapping("/checkPwd") |
|
|
|
public R<UserPasswdVo> checkPwd(UserPasswdBo bo) { |
|
|
|
return R.ok(iUserPasswdService.checkPwd(bo)); |
|
|
@ -62,15 +62,15 @@ public class UserPasswdController extends BaseController { |
|
|
|
*/ |
|
|
|
// @SaCheckPermission("business:userPasswd:query")
|
|
|
|
@GetMapping("/haveOrNotPayPwd") |
|
|
|
public R<Void> haveOrNotPayPwd() { |
|
|
|
public R<Boolean> haveOrNotPayPwd() { |
|
|
|
Long userId = LoginHelper.getUserId(); |
|
|
|
return toAjax(iUserPasswdService.haveOrNotPayPwd(userId)); |
|
|
|
return R.ok(iUserPasswdService.haveOrNotPayPwd(userId)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 导出用户密码列表 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:userPasswd:export") |
|
|
|
// @SaCheckPermission("business:userPasswd:export")
|
|
|
|
@Log(title = "用户密码", businessType = BusinessType.EXPORT) |
|
|
|
@PostMapping("/export") |
|
|
|
public void export(UserPasswdBo bo, HttpServletResponse response) { |
|
|
@ -83,7 +83,7 @@ public class UserPasswdController extends BaseController { |
|
|
|
* |
|
|
|
* @param id 主键 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:userPasswd:query") |
|
|
|
// @SaCheckPermission("business:userPasswd:query")
|
|
|
|
@GetMapping("/{id}") |
|
|
|
public R<UserPasswdVo> getInfo(@NotNull(message = "主键不能为空") |
|
|
|
@PathVariable("id") Long id) { |
|
|
@ -93,7 +93,7 @@ public class UserPasswdController extends BaseController { |
|
|
|
/** |
|
|
|
* 新增用户密码 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:userPasswd:add") |
|
|
|
// @SaCheckPermission("business:userPasswd:add")
|
|
|
|
@Log(title = "用户密码", businessType = BusinessType.INSERT) |
|
|
|
@RepeatSubmit() |
|
|
|
@PostMapping() |
|
|
@ -104,7 +104,7 @@ public class UserPasswdController extends BaseController { |
|
|
|
/** |
|
|
|
* 修改用户密码 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:userPasswd:edit") |
|
|
|
// @SaCheckPermission("business:userPasswd:edit")
|
|
|
|
@Log(title = "用户密码", businessType = BusinessType.UPDATE) |
|
|
|
@RepeatSubmit() |
|
|
|
@PutMapping() |
|
|
@ -116,7 +116,7 @@ public class UserPasswdController extends BaseController { |
|
|
|
/** |
|
|
|
* 修改用户密码 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:userPasswd:edit") |
|
|
|
// @SaCheckPermission("business:userPasswd:edit")
|
|
|
|
@Log(title = "通过UserId修改用户密码", businessType = BusinessType.UPDATE) |
|
|
|
@RepeatSubmit() |
|
|
|
@PutMapping("/editByUserId") |
|
|
@ -129,7 +129,7 @@ public class UserPasswdController extends BaseController { |
|
|
|
* |
|
|
|
* @param ids 主键串 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:userPasswd:remove") |
|
|
|
// @SaCheckPermission("business:userPasswd:remove")
|
|
|
|
@Log(title = "用户密码", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/{ids}") |
|
|
|
public R<Void> remove(@NotEmpty(message = "主键不能为空") |
|
|
|