You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
467 B
19 lines
467 B
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 |
|
}
|
|
|