|
@@ -8,6 +8,7 @@ import api.common.util.ObjectUtil;
|
|
|
import com.css.simulation.resource.system.service.ClusterService;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -18,6 +19,7 @@ import java.util.HashMap;
|
|
|
|
|
|
@Controller()
|
|
|
@RequestMapping("/cluster")
|
|
|
+@PreAuthorize("@AuthorityCheck.adminAndUser()")
|
|
|
public class ClusterCtrl {
|
|
|
|
|
|
@Autowired
|