user.go 356 B

12345678910111213141516
  1. package service
  2. import (
  3. "context"
  4. account "go-common/app/service/main/account/api"
  5. "go-common/library/log"
  6. )
  7. // UserInfo get account info.
  8. func (s *Service) UserInfo(c context.Context, mid int64) (res *account.InfoReply, err error) {
  9. if res, err = s.accDao.RPCInfo(c, mid); err != nil {
  10. log.Error("s.accDao.RPCInfo error (%v)", err)
  11. }
  12. return
  13. }