move dir & delete some useless function

This commit is contained in:
Anker Jam
2020-10-25 23:11:05 +08:00
parent 9bd2934e42
commit 544c621017
7 changed files with 62 additions and 61 deletions

View File

@@ -58,7 +58,7 @@ import (
"database/sql"
"errors"
"fmt"
"github.com/astaxie/beego/client/orm/structs"
"github.com/astaxie/beego/client/orm/structs/clauses"
"os"
"reflect"
"time"
@@ -352,7 +352,7 @@ func (o *ormBase) LoadRelatedWithCtx(ctx context.Context, md interface{}, name s
qs.relDepth = relDepth
if len(order) > 0 {
qs.orders = structs.ParseOrderClause(order)
qs.orders = clauses.ParseOrder(order)
}
find := ind.FieldByIndex(fi.fieldIndex)