panel.go 889 B

123456789101112131415161718192021222324252627282930313233
  1. package client
  2. import (
  3. "context"
  4. "go-common/app/service/main/vip/model"
  5. )
  6. const (
  7. _VipPanelInfo = "RPC.VipPanelInfo"
  8. _vipPanelInfo2 = "RPC.VipPanelInfo2"
  9. _vipPanelInfo5 = "RPC.VipPanelInfo5"
  10. )
  11. // VipPanelInfo rpc user vip panel info.
  12. func (s *Service) VipPanelInfo(c context.Context, arg *model.ArgPanel) (res []*model.VipPanelInfo, err error) {
  13. err = s.client.Call(c, _VipPanelInfo, arg, &res)
  14. return
  15. }
  16. // VipPanelInfo2 vip panel v2.
  17. func (s *Service) VipPanelInfo2(c context.Context, arg *model.ArgPanel) (res *model.VipPirceResp, err error) {
  18. res = new(model.VipPirceResp)
  19. err = s.client.Call(c, _vipPanelInfo2, arg, &res)
  20. return
  21. }
  22. // VipPanelInfo5 vip panel v5.
  23. func (s *Service) VipPanelInfo5(c context.Context, arg *model.ArgPanel) (res *model.VipPirceResp5, err error) {
  24. res = new(model.VipPirceResp5)
  25. err = s.client.Call(c, _vipPanelInfo5, arg, &res)
  26. return
  27. }