go-common/app/job/main/ugcpay/dao/grpc.go

39 lines
844 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
ugcpay_rank "go-common/app/service/main/ugcpay-rank/api/v1"
)
// RankElecUpdateOrder .
func (d *Dao) RankElecUpdateOrder(ctx context.Context, avID, upMID, payMID, ver, fee int64) (err error) {
var (
req = &ugcpay_rank.RankElecUpdateOrderReq{
AVID: avID,
UPMID: upMID,
PayMID: payMID,
Ver: ver,
Fee: fee,
}
)
_, err = d.ugcPayRankAPI.RankElecUpdateOrder(ctx, req)
return
}
// RankElecUpdateMessage .
func (d *Dao) RankElecUpdateMessage(ctx context.Context, avID, upMID, payMID, ver int64, message string, hidden bool) (err error) {
var (
req = &ugcpay_rank.RankElecUpdateMessageReq{
AVID: avID,
UPMID: upMID,
PayMID: payMID,
Ver: ver,
Message: message,
Hidden: hidden,
}
)
_, err = d.ugcPayRankAPI.RankElecUpdateMessage(ctx, req)
return
}