account.go 659 B

12345678910111213141516171819202122232425
  1. package service
  2. import (
  3. "context"
  4. "go-common/app/interface/main/mcn/dao/global"
  5. "go-common/app/interface/main/mcn/model/mcnmodel"
  6. "go-common/library/log"
  7. )
  8. //GetUpAccountInfo get account info
  9. func (s *Service) GetUpAccountInfo(c context.Context, arg *mcnmodel.McnGetAccountReq) (result *mcnmodel.McnGetAccountReply, err error) {
  10. var data, e = global.GetInfo(c, arg.Mid)
  11. err = e
  12. if err != nil || data == nil {
  13. log.Error("get info fail, req=%+v, err=%+v", arg, err)
  14. return
  15. }
  16. result = new(mcnmodel.McnGetAccountReply)
  17. result.Mid = data.Mid
  18. result.Name = data.Name
  19. log.Info("query acount info ok, req=%+v, result=%+v", arg, result)
  20. return
  21. }