From 132312ea062eb881489d30380a40c7ba0400aa17 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Fri, 20 Oct 2023 14:31:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=90=88=E5=9B=BE=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/repositories/image_handle.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/service/repositories/image_handle.go b/service/repositories/image_handle.go index 910b707b..a7d74d91 100644 --- a/service/repositories/image_handle.go +++ b/service/repositories/image_handle.go @@ -138,10 +138,12 @@ type ( Debug *auth.Debug `json:"debug"` } LogoCombineRes struct { - ResourceId string - ResourceUrl *string - Metadata *string - DebugData *auth.DebugData `json:"debug_data"` + ResourceId string `json:"resource_id"` + ResourceUrl *string `json:"resource_url"` + ResourceCache int64 `json:"resource_cache"` + + Metadata *string `json:"metadata"` + DebugData *auth.DebugData `json:"debug_data"` } ) type TemplateTagColor struct { @@ -176,8 +178,9 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq if err == nil && resourceInfo.ResourceId != "" { if in.Debug == nil || (in.Debug != nil && in.Debug.IsCache == 1) { return &LogoCombineRes{ - ResourceId: resourceId, - ResourceUrl: resourceInfo.ResourceUrl, + ResourceId: resourceId, + ResourceUrl: resourceInfo.ResourceUrl, + ResourceCache: 1, }, nil } } else {