by Robin at 20240411

This commit is contained in:
Leufolium 2024-04-12 06:40:43 +08:00
parent 52624ac592
commit c7d931b10e
1 changed files with 20 additions and 0 deletions

View File

@ -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)