v1_test.go 569 B

12345678910111213141516171819202122232425
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package tests
  4. import (
  5. "context"
  6. v1 "smart-thirdparty/pb/v1"
  7. "testing"
  8. jsoniter "github.com/json-iterator/go"
  9. )
  10. var json = jsoniter.ConfigCompatibleWithStandardLibrary
  11. // 用户取关门通知
  12. func Test_UserFetchNotifyCloseBoxV1(t *testing.T) {
  13. r, err := client.GetVcode(context.Background(), &v1.GetVcodeRequest{PhoneNumber: "13882236657"})
  14. if err == nil {
  15. s, _ := json.MarshalToString(r)
  16. t.Log(s)
  17. } else {
  18. t.Error("failed to call: ", err)
  19. }
  20. }