12345678910111213141516171819 |
- package dao
- import (
- "context"
- "go-common/app/service/main/account/api"
- "go-common/library/log"
- )
- // AccountInfo queries account info by user id.
- func (d *Dao) AccountInfo(c context.Context, mid int64) (ai *api.Info, err error) {
- req := &api.MidReq{Mid: int64(mid)}
- res, err := d.accCli.Info3(c, req)
- if err != nil {
- log.Error("d.AccountInfo(%d) err(%v)", mid, err)
- return
- }
- log.Info("d.AccountInfo(%d) res(%+v)", mid, res.Info)
- return res.Info, nil
- }
|