[系统用户]实现系统用户的增删改

This commit is contained in:
GoEdgeLab
2020-12-02 23:11:43 +08:00
parent 99283d9b55
commit 02f6638963
25 changed files with 621 additions and 5 deletions

View File

@@ -13,6 +13,9 @@ type DeleteAction struct {
func (this *DeleteAction) RunPost(params struct {
LogId int64
}) {
// 记录日志
defer this.CreateLogInfo("删除单个操作日志 %d", params.LogId)
// 读取配置
config, err := configloaders.LoadLogConfig()
if err != nil {
@@ -23,9 +26,6 @@ func (this *DeleteAction) RunPost(params struct {
this.Fail("已设置不能删除")
}
// 记录日志
defer this.CreateLogInfo("删除单个操作日志 %d", params.LogId)
// 执行删除
_, err = this.RPC().LogRPC().DeleteLogPermanently(this.AdminContext(), &pb.DeleteLogPermanentlyRequest{LogId: params.LogId})
if err != nil {