diff --git a/server/upload/internal/logic/uploadcallbacklogic.go b/server/upload/internal/logic/uploadcallbacklogic.go index f4e8b8e7..a8b93eaf 100644 --- a/server/upload/internal/logic/uploadcallbacklogic.go +++ b/server/upload/internal/logic/uploadcallbacklogic.go @@ -72,6 +72,7 @@ func (l *UploadCallbackLogic) UploadCallback(req *types.UploadCallbackReq, useri return err } + var version string = "0.0.1" var fsResource = &gmodel.FsResource{} fsResource.UserId = &userId fsResource.GuestId = &guestId @@ -81,6 +82,7 @@ func (l *UploadCallbackLogic) UploadCallback(req *types.UploadCallbackReq, useri fsResource.Metadata = &req.Metadata fsResource.ApiType = &req.ApiType fsResource.BucketName = bucketName + fsResource.Version = &version if resourceInfo.ResourceId == "" { _, err = resourceModelTS.Create(ctx, fsResource) } else {