fix:调整

This commit is contained in:
Hiven 2023-08-07 17:12:01 +08:00
parent e2e2880514
commit 8b42c41bc5

View File

@ -72,6 +72,7 @@ func (l *UploadCallbackLogic) UploadCallback(req *types.UploadCallbackReq, useri
return err return err
} }
var version string = "0.0.1"
var fsResource = &gmodel.FsResource{} var fsResource = &gmodel.FsResource{}
fsResource.UserId = &userId fsResource.UserId = &userId
fsResource.GuestId = &guestId fsResource.GuestId = &guestId
@ -81,6 +82,7 @@ func (l *UploadCallbackLogic) UploadCallback(req *types.UploadCallbackReq, useri
fsResource.Metadata = &req.Metadata fsResource.Metadata = &req.Metadata
fsResource.ApiType = &req.ApiType fsResource.ApiType = &req.ApiType
fsResource.BucketName = bucketName fsResource.BucketName = bucketName
fsResource.Version = &version
if resourceInfo.ResourceId == "" { if resourceInfo.ResourceId == "" {
_, err = resourceModelTS.Create(ctx, fsResource) _, err = resourceModelTS.Create(ctx, fsResource)
} else { } else {