diff --git a/app/mix/controller/account_api.go b/app/mix/controller/account_api.go index dba306fb..64605dcd 100644 --- a/app/mix/controller/account_api.go +++ b/app/mix/controller/account_api.go @@ -220,6 +220,26 @@ func ApiGetAccountListForOthersByMids(ctx *gin.Context) { ReplyOk(ctx, data) } +func ApiGetAccountListForOthersByUserId(ctx *gin.Context) { + req := ctx.MustGet("client_req").(*accountproto.ApiListOthersByUserIdReq) + + account, ec := service.DefaultService.ApiGetAccountListForOthersByUserId(ctx, req) + if ec != errcode.ErrCodeAccountSrvOk { + logger.Error("ApiGetAccountListOthersByUserId fail, req: %v, ec: %v", util.ToJson(req), ec) + ReplyErrCodeMsg(ctx, ec) + return + } + + //填充媒体 + mediafiller.FillEntity(ctx, account.Avatar) + + data := &accountproto.ApiListOthersByUserIdData{ + Account: account, + } + + ReplyOk(ctx, data) +} + func ApiAccountExpInc(ctx *gin.Context) { req := ctx.MustGet("client_req").(*accountproto.ApiExpIncReq) result, ec := service.DefaultService.ApiAccountExpInc(ctx, req)