|
@@ -22,6 +22,7 @@ import javax.annotation.Resource;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
+import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
import static com.citu.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
|
import static com.citu.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
|
@@ -108,5 +109,21 @@ public class MdeUserController {
|
|
return success(true);
|
|
return success(true);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @PostMapping("/enable")
|
|
|
|
+ @Operation(summary = "启用")
|
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:mde-user:update')")
|
|
|
|
+ public CommonResult<Boolean> enable(@RequestParam("id") Long id) {
|
|
|
|
+ mdeUserService.enable(Collections.singletonList(id));
|
|
|
|
+ return success(true);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/disable")
|
|
|
|
+ @Operation(summary = "禁用")
|
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:mde-user:update')")
|
|
|
|
+ public CommonResult<Boolean> disable(@RequestParam("id") Long id) {
|
|
|
|
+ mdeUserService.disable(Collections.singletonList(id));
|
|
|
|
+ return success(true);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|