1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-14 08:50:39 +00:00

Refactor orm filter

This commit is contained in:
Ming Deng
2020-08-18 14:31:06 +00:00
parent 63599c0032
commit 7fe4eaef50
54 changed files with 269 additions and 256 deletions

View File

@ -15,8 +15,9 @@
package hints
import (
"github.com/astaxie/beego/pkg/common"
"time"
"github.com/astaxie/beego/pkg/common"
)
const (

View File

@ -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)
}
}