refactor: 优化描述
This commit is contained in:
parent
627ae761f1
commit
7dcc7de2ed
|
@ -160,12 +160,15 @@ public class SendNoticeAspect {
|
||||||
String operation = "";
|
String operation = "";
|
||||||
switch (sendNotice.event()) {
|
switch (sendNotice.event()) {
|
||||||
case NoticeConstants.Event.CREATE:
|
case NoticeConstants.Event.CREATE:
|
||||||
|
case NoticeConstants.Event.CASE_CREATE:
|
||||||
operation = "创建了";
|
operation = "创建了";
|
||||||
break;
|
break;
|
||||||
case NoticeConstants.Event.UPDATE:
|
case NoticeConstants.Event.UPDATE:
|
||||||
|
case NoticeConstants.Event.CASE_UPDATE:
|
||||||
operation = "更新了";
|
operation = "更新了";
|
||||||
break;
|
break;
|
||||||
case NoticeConstants.Event.DELETE:
|
case NoticeConstants.Event.DELETE:
|
||||||
|
case NoticeConstants.Event.CASE_DELETE:
|
||||||
operation = "删除了";
|
operation = "删除了";
|
||||||
break;
|
break;
|
||||||
case NoticeConstants.Event.COMMENT:
|
case NoticeConstants.Event.COMMENT:
|
||||||
|
@ -177,15 +180,6 @@ public class SendNoticeAspect {
|
||||||
case NoticeConstants.Event.CLOSE_SCHEDULE:
|
case NoticeConstants.Event.CLOSE_SCHEDULE:
|
||||||
operation = "关闭了定时任务";
|
operation = "关闭了定时任务";
|
||||||
break;
|
break;
|
||||||
case NoticeConstants.Event.CASE_CREATE:
|
|
||||||
operation = "创建了接口用例";
|
|
||||||
break;
|
|
||||||
case NoticeConstants.Event.CASE_UPDATE:
|
|
||||||
operation = "更新了接口用例";
|
|
||||||
break;
|
|
||||||
case NoticeConstants.Event.CASE_DELETE:
|
|
||||||
operation = "删除了接口用例";
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue