Commit f5b16267 authored by 黎博's avatar 黎博

update

parent 5220ad70
...@@ -39,7 +39,7 @@ public class RecordOperationAspect { ...@@ -39,7 +39,7 @@ public class RecordOperationAspect {
@Autowired @Autowired
UserBehaviorRecordService userBehaviorRecordService; UserBehaviorRecordService userBehaviorRecordService;
@After("@annotation(cn.qg.holmes.config.annotation.RequiresPermissions)") @After("@annotation(cn.qg.holmes.config.annotation.RecordOperation)")
public void after(JoinPoint joinPoint) { public void after(JoinPoint joinPoint) {
// 获取token,并根据token获取到用户名 // 获取token,并根据token获取到用户名
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
......
...@@ -342,6 +342,7 @@ public class K8sController { ...@@ -342,6 +342,7 @@ public class K8sController {
* @param serviceName 服务名称 * @param serviceName 服务名称
* @return * @return
*/ */
@RecordOperation("delete")
@PostMapping("/service/delete") @PostMapping("/service/delete")
public JsonResult deletePodByName(String namespace, String serviceName) { public JsonResult deletePodByName(String namespace, String serviceName) {
return JsonResult.buildSuccessResult(k8sService.deleteDeployment(namespace, serviceName)); return JsonResult.buildSuccessResult(k8sService.deleteDeployment(namespace, serviceName));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment