grpc.go 844 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package dao
  2. import (
  3. "context"
  4. ugcpay_rank "go-common/app/service/main/ugcpay-rank/api/v1"
  5. )
  6. // RankElecUpdateOrder .
  7. func (d *Dao) RankElecUpdateOrder(ctx context.Context, avID, upMID, payMID, ver, fee int64) (err error) {
  8. var (
  9. req = &ugcpay_rank.RankElecUpdateOrderReq{
  10. AVID: avID,
  11. UPMID: upMID,
  12. PayMID: payMID,
  13. Ver: ver,
  14. Fee: fee,
  15. }
  16. )
  17. _, err = d.ugcPayRankAPI.RankElecUpdateOrder(ctx, req)
  18. return
  19. }
  20. // RankElecUpdateMessage .
  21. func (d *Dao) RankElecUpdateMessage(ctx context.Context, avID, upMID, payMID, ver int64, message string, hidden bool) (err error) {
  22. var (
  23. req = &ugcpay_rank.RankElecUpdateMessageReq{
  24. AVID: avID,
  25. UPMID: upMID,
  26. PayMID: payMID,
  27. Ver: ver,
  28. Message: message,
  29. Hidden: hidden,
  30. }
  31. )
  32. _, err = d.ugcPayRankAPI.RankElecUpdateMessage(ctx, req)
  33. return
  34. }