diff --git a/server/home-user-auth/internal/logic/userlogodatasetlogic.go b/server/home-user-auth/internal/logic/userlogodatasetlogic.go index c0275d23..5f42a49c 100644 --- a/server/home-user-auth/internal/logic/userlogodatasetlogic.go +++ b/server/home-user-auth/internal/logic/userlogodatasetlogic.go @@ -87,8 +87,17 @@ func (l *UserLogoDataSetLogic) UserLogoDataSet(req *types.UserLogoDataSetReq, us // 返回成功的响应和上传URL return resp.SetStatus(basic.CodeOK, map[string]interface{}{ - "user_material_id": materialInfo.Id, + "id": materialInfo.Id, + "module": materialInfo.Module, + "user_id": materialInfo.UserId, + "guest_id": materialInfo.GuestId, + "resource_id": materialInfo.ResourceId, + "resource_url": materialInfo.ResourceUrl, + "metadata": nil, + "ctime": materialInfo.Ctime, + "resource_info": nil, }) + } // 处理逻辑后 w,r 如:重定向, resp 必须重新处理