package adminrpc
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func Test_GetByToken(t *testing.T) {
|
|
dbname := "canyin"
|
|
|
|
res2, err := GetByToken(dbname, dbname)
|
|
t.Log(res2)
|
|
// t.Log(res2.GetUserId())
|
|
t.Log(err)
|
|
|
|
// res3, err := GetUserByUsercode(dbname, "2233")
|
|
// t.Log(res3)
|
|
// t.Log(*res3.UserId)
|
|
// t.Log(err)
|
|
}
|