|
@@ -1,5 +1,6 @@
|
|
package com.jiayue.ssi.controller;
|
|
package com.jiayue.ssi.controller;
|
|
|
|
|
|
|
|
+import com.jiayue.ssi.annotation.PreventReplay;
|
|
import com.jiayue.ssi.constant.CustomException;
|
|
import com.jiayue.ssi.constant.CustomException;
|
|
import com.jiayue.ssi.entity.Server;
|
|
import com.jiayue.ssi.entity.Server;
|
|
import com.jiayue.ssi.util.ResponseVO;
|
|
import com.jiayue.ssi.util.ResponseVO;
|
|
@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
public class ServerController {
|
|
public class ServerController {
|
|
@PreAuthorize("@ss.hasPermi('monitor:server:list')")
|
|
@PreAuthorize("@ss.hasPermi('monitor:server:list')")
|
|
@GetMapping()
|
|
@GetMapping()
|
|
|
|
+ @PreventReplay
|
|
public ResponseVO getInfo() throws CustomException {
|
|
public ResponseVO getInfo() throws CustomException {
|
|
try {
|
|
try {
|
|
Server server = new Server();
|
|
Server server = new Server();
|