rpc.go 262 B

123456789101112
  1. package medal
  2. import (
  3. "context"
  4. "go-common/app/service/main/usersuit/model"
  5. )
  6. // Grant sent a medal to user.
  7. func (d *Dao) Grant(c context.Context, mid, nid int64) (err error) {
  8. err = d.suitRPC.MedalGrant(c, &model.ArgMIDNID{MID: mid, NID: nid})
  9. return
  10. }