refactor: 优化描述

This commit is contained in:
Captain.B 2021-08-24 19:59:23 +08:00 committed by 刘瑞斌
parent 627ae761f1
commit 7dcc7de2ed
1 changed files with 3 additions and 9 deletions

View File

@ -160,12 +160,15 @@ public class SendNoticeAspect {
String operation = "";
switch (sendNotice.event()) {
case NoticeConstants.Event.CREATE:
case NoticeConstants.Event.CASE_CREATE:
operation = "创建了";
break;
case NoticeConstants.Event.UPDATE:
case NoticeConstants.Event.CASE_UPDATE:
operation = "更新了";
break;
case NoticeConstants.Event.DELETE:
case NoticeConstants.Event.CASE_DELETE:
operation = "删除了";
break;
case NoticeConstants.Event.COMMENT:
@ -177,15 +180,6 @@ public class SendNoticeAspect {
case NoticeConstants.Event.CLOSE_SCHEDULE:
operation = "关闭了定时任务";
break;
case NoticeConstants.Event.CASE_CREATE:
operation = "创建了接口用例";
break;
case NoticeConstants.Event.CASE_UPDATE:
operation = "更新了接口用例";
break;
case NoticeConstants.Event.CASE_DELETE:
operation = "删除了接口用例";
break;
default:
break;
}