格式化代码

This commit is contained in:
huangxiaolei
2022-12-19 13:40:04 +08:00
parent f773ba8df7
commit 58b2df2bc6
92 changed files with 682 additions and 626 deletions

View File

@@ -2,8 +2,8 @@ package dao
import (
"context"
"hk4e/dispatch/model"
"hk4e/dispatch/model"
"hk4e/pkg/logger"
"github.com/pkg/errors"
@@ -96,7 +96,7 @@ func (d *Dao) InsertAccount(account *model.Account) (primitive.ObjectID, error)
} else {
_id, ok := id.InsertedID.(primitive.ObjectID)
if !ok {
logger.LOG.Error("get insert id error")
logger.Error("get insert id error")
return primitive.ObjectID{}, nil
}
return _id, nil