MCPcopy Create free account
hub / github.com/53AI/53AIHub / GetPreviewFullUrl

Method GetPreviewFullUrl

api/model/upload_file.go:237–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237func (uploadFile *UploadFile) GetPreviewFullUrl() string {
238 if uploadFile.PreviewKey == "" {
239 return ""
240 }
241
242 return config.GetApiHost() + "api/preview/" + uploadFile.PreviewKey
243}
244
245func (uploadFile *UploadFile) GetOssDownloadUrl() string {
246 return "https://" + config.AliyunOssEndpoint + "/" + config.AliyunOssBucketName + "/" + uploadFile.Key

Callers 8

buildPreviewMappingMethod · 0.95
ConvertRequestFunction · 0.80
processFileParameterMethod · 0.80
ConvertRequestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected