|
|
|
@ -124,7 +124,7 @@ public class AdminController {
|
|
|
|
|
@Operation(summary = "编辑")
|
|
|
|
|
@PostMapping("edit")
|
|
|
|
|
@AdminTokenValid
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "26")
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "126")
|
|
|
|
|
public Result edit(@Validated @RequestBody editParam param) {
|
|
|
|
|
UpdateWrapper<Admin> up = new UpdateWrapper<>();
|
|
|
|
|
up.eq("id", param.getId());
|
|
|
|
@ -153,7 +153,7 @@ public class AdminController {
|
|
|
|
|
@Operation(summary = "切换账户状态")
|
|
|
|
|
@PostMapping("switchStatus")
|
|
|
|
|
@AdminTokenValid
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "27")
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "127")
|
|
|
|
|
public Result switchStatus(@Validated @RequestBody AdminStatusParam param) {
|
|
|
|
|
// int status = param.open?1:2;
|
|
|
|
|
UpdateWrapper<Admin> up = new UpdateWrapper<>();
|
|
|
|
|