简化数据库查询代码

This commit is contained in:
GoEdgeLab
2020-12-09 20:44:05 +08:00
parent f263d83700
commit 142fd8651b
56 changed files with 164 additions and 141 deletions

View File

@@ -105,7 +105,7 @@ func (this *HTTPHeaderDAO) CreateHeader(name string, value string) (int64, error
}
op.Status = statusJSON
_, err = this.Save(op)
err = this.Save(op)
if err != nil {
return 0, err
}
@@ -122,7 +122,7 @@ func (this *HTTPHeaderDAO) UpdateHeader(headerId int64, name string, value strin
op.Id = headerId
op.Name = name
op.Value = value
_, err := this.Save(op)
err := this.Save(op)
// TODO 更新相关配置