mirror of
https://github.com/astaxie/beego.git
synced 2025-07-29 14:35:31 +00:00
Refactor orm filter
This commit is contained in:
@@ -15,8 +15,9 @@
|
||||
package hints
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/common"
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego/pkg/common"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -15,9 +15,10 @@
|
||||
package hints
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestNewHint_time(t *testing.T) {
|
||||
@@ -151,4 +152,4 @@ func TestOrderBy(t *testing.T) {
|
||||
hint := OrderBy(`-ID`)
|
||||
assert.Equal(t, hint.GetValue(), `-ID`)
|
||||
assert.Equal(t, hint.GetKey(), KeyOrderBy)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user