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 {