改进操作日志

This commit is contained in:
刘祥超
2020-11-20 15:32:42 +08:00
parent ad836d70ac
commit 6bca0abc69
142 changed files with 230 additions and 100 deletions

View File

@@ -48,7 +48,7 @@ func (this *CreatePopupAction) RunPost(params struct {
}
// 创建日志
this.CreateLog(oplogs.LevelInfo, "创建集群分组", createResp.GroupId)
defer this.CreateLog(oplogs.LevelInfo, "创建集群分组", createResp.GroupId)
this.Success()
}

View File

@@ -31,7 +31,7 @@ func (this *DeleteAction) RunPost(params struct {
}
// 创建日志
this.CreateLog(oplogs.LevelInfo, "删除集群分组 %d", params.GroupId)
defer this.CreateLog(oplogs.LevelInfo, "删除集群分组 %d", params.GroupId)
this.Success()
}

View File

@@ -20,7 +20,7 @@ func (this *SortAction) RunPost(params struct {
}
// 创建日志
this.CreateLog(oplogs.LevelInfo, "修改集群分组排序")
defer this.CreateLog(oplogs.LevelInfo, "修改集群分组排序")
this.Success()
}

View File

@@ -57,7 +57,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
}
// 创建日志
this.CreateLog(oplogs.LevelInfo, "修改集群分组 %d", params.GroupId)
defer this.CreateLog(oplogs.LevelInfo, "修改集群分组 %d", params.GroupId)
this.Success()
}