chore: remove some lines
This commit is contained in:
parent
f0b0e02459
commit
50ddbce197
|
@ -1,9 +0,0 @@
|
|||
package io.metersphere.system.consul;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface CacheNode {
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
package io.metersphere.system.consul;
|
||||
|
||||
import org.aspectj.lang.annotation.After;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Aspect
|
||||
@Component
|
||||
public class CacheNodeAspect {
|
||||
/**
|
||||
* 定义切点 @Pointcut 在注解的位置切入代码
|
||||
*/
|
||||
@Pointcut("@annotation(io.metersphere.system.consul.CacheNode)")
|
||||
public void cacheNodes() {
|
||||
}
|
||||
|
||||
@After("cacheNodes()")
|
||||
@Async
|
||||
public void after() {
|
||||
// microService.getForResultHolder(MicroServiceName.PERFORMANCE_TEST, "/performance/update/cache");
|
||||
}
|
||||
|
||||
}
|
|
@ -4,7 +4,6 @@ import com.github.pagehelper.Page;
|
|||
import com.github.pagehelper.PageHelper;
|
||||
import io.metersphere.sdk.constants.PermissionConstants;
|
||||
import io.metersphere.sdk.util.BeanUtils;
|
||||
import io.metersphere.system.consul.CacheNode;
|
||||
import io.metersphere.system.dto.pool.TestResourcePoolDTO;
|
||||
import io.metersphere.system.dto.pool.TestResourcePoolRequest;
|
||||
import io.metersphere.system.dto.pool.TestResourcePoolReturnDTO;
|
||||
|
@ -33,7 +32,6 @@ public class TestResourcePoolController {
|
|||
private TestResourcePoolService testResourcePoolService;
|
||||
|
||||
@PostMapping("/update")
|
||||
@CacheNode // 把监控节点缓存起来
|
||||
@Operation(summary = "系统设置-系统-资源池-更新资源池")
|
||||
@RequiresPermissions(PermissionConstants.SYSTEM_TEST_RESOURCE_POOL_READ_UPDATE)
|
||||
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#request)", msClass = TestResourcePoolService.class)
|
||||
|
|
Loading…
Reference in New Issue