giftcard.pb.go 489 B

1234567891011121314151617181920212223242526
  1. package proto
  2. import (
  3. "bet24.com/log"
  4. "bet24.com/servers/micros/common"
  5. "context"
  6. )
  7. func GetGiftCardHistory(userId int) string {
  8. xclient := getClient()
  9. //defer xclient.Close()
  10. args := &Request{
  11. UserId: userId,
  12. }
  13. reply := &Response{}
  14. err := xclient.Call(context.Background(), "GetGiftCardHistory", args, reply)
  15. if err != nil {
  16. log.Debug("GetGiftCardHistory failed to call: %v", err)
  17. common.GetClientPool().RemoveClient(ServiceName)
  18. return ""
  19. }
  20. return reply.Data
  21. }