by Robin at 20240411
This commit is contained in:
parent
52624ac592
commit
c7d931b10e
|
@ -220,6 +220,26 @@ func ApiGetAccountListForOthersByMids(ctx *gin.Context) {
|
||||||
ReplyOk(ctx, data)
|
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) {
|
func ApiAccountExpInc(ctx *gin.Context) {
|
||||||
req := ctx.MustGet("client_req").(*accountproto.ApiExpIncReq)
|
req := ctx.MustGet("client_req").(*accountproto.ApiExpIncReq)
|
||||||
result, ec := service.DefaultService.ApiAccountExpInc(ctx, req)
|
result, ec := service.DefaultService.ApiAccountExpInc(ctx, req)
|
||||||
|
|
Loading…
Reference in New Issue