采购管理员接口远程调用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
302 B

10 months ago
  1. package adminrpc
  2. import (
  3. "testing"
  4. )
  5. func Test_GetByToken(t *testing.T) {
  6. dbname := "canyin"
  7. res2, err := GetByToken(dbname, dbname)
  8. t.Log(res2)
  9. // t.Log(res2.GetUserId())
  10. t.Log(err)
  11. // res3, err := GetUserByUsercode(dbname, "2233")
  12. // t.Log(res3)
  13. // t.Log(*res3.UserId)
  14. // t.Log(err)
  15. }