common.go 361 B

123456789101112131415
  1. package server
  2. import (
  3. "go-common/app/service/main/usersuit/model"
  4. "go-common/library/net/rpc/context"
  5. )
  6. // PointFlag obtain new pendant noify.
  7. func (r *RPC) PointFlag(c context.Context, arg *model.ArgMID, res *model.PointFlag) (err error) {
  8. var pf *model.PointFlag
  9. if pf, err = r.s.PointFlag(c, arg); err == nil && pf != nil {
  10. *res = *pf
  11. }
  12. return
  13. }