panel_test.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package vip
  2. import (
  3. "context"
  4. "fmt"
  5. "testing"
  6. "go-common/app/interface/main/account/model"
  7. . "github.com/smartystreets/goconvey/convey"
  8. )
  9. // go test -test.v -test.run TestServiceVipPanelV2
  10. func TestServiceVipPanelV2(t *testing.T) {
  11. Convey("TestServiceVipPanelV2", t, func() {
  12. res, err := s.VipPanelV2(context.TODO(), &model.ArgVipPanel{
  13. Platform: "ios",
  14. MobiApp: "mobi_app",
  15. Device: "phone",
  16. Build: 1000000,
  17. Mid: 476853,
  18. })
  19. t.Logf("res %+v", res)
  20. t.Logf("vps %+v", res.Vps)
  21. t.Logf("Privileges %+v", res.Privileges)
  22. t.Logf("TipInfo %+v", res.TipInfo)
  23. t.Logf("UserInfo %+v", res.UserInfo)
  24. So(err, ShouldBeNil)
  25. })
  26. }
  27. // go test -test.v -test.run TestServiceVipPanelV8
  28. func TestServiceVipPanelV8(t *testing.T) {
  29. Convey("TestServiceVipPanelV8", t, func() {
  30. res, err := s.VipPanelV8(context.Background(), &model.ArgVipPanel{
  31. Platform: "android",
  32. MobiApp: "android",
  33. Device: "android",
  34. })
  35. fmt.Println("res,err", res, err)
  36. fmt.Println("res:", res)
  37. fmt.Println("res.AssociateVips:", res.AssociateVips)
  38. fmt.Println("res.Vps:", res.Vps)
  39. So(err, ShouldBeNil)
  40. })
  41. }