fix:前台从logo数据库存储为用户素材
This commit is contained in:
parent
850c8f0d39
commit
1e2ce0a18f
|
@ -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 必须重新处理
|
||||
|
|
Loading…
Reference in New Issue
Block a user