Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbiao committed Mar 31, 2020
1 parent ddfded8 commit 8131ff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/api_login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/gogf/gf/crypto/gmd5"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"gmanager/library/resp"
"testing"
)

Expand Down
3 changes: 2 additions & 1 deletion test/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/util/gconv"
"gmanager/app/model/config"
"reflect"
"testing"
)
Expand All @@ -23,7 +24,7 @@ func TestRun(t *testing.T) {
}

func TestReflect(t *testing.T) {
model := system.SysConfig{}
model := config.Entity{}
model.UpdateId = 1
re := reflect.ValueOf(model).FieldByName("BaseModel")
updateId := gconv.Int(re.FieldByName("UpdateId").Interface())
Expand Down

0 comments on commit 8131ff2

Please sign in to comment.