account.go 424 B

12345678910111213141516171819
  1. package service
  2. import (
  3. "context"
  4. "go-common/app/service/main/relation/model"
  5. "go-common/library/log"
  6. )
  7. // Relation .
  8. func (s *Service) Relation(c context.Context, mid int64) (follower int64, err error) {
  9. var stat *model.Stat
  10. if stat, err = s.relation.Stat(c, &model.ArgMid{Mid: mid}); err != nil {
  11. log.Error("Relation s.relation.Stat(mid:%d) error(%v)", mid, err)
  12. return
  13. }
  14. follower = stat.Follower
  15. return
  16. }