3D模型数据资源备份镜像批量处理

This commit is contained in:
momo 2023-11-21 14:51:06 +08:00
parent 7ef4139f4e
commit ca1c10382a
2 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,7 @@ type StepPriceJsonStruct struct {
}
func (t *FsProductModel3dModel) FindAll(ctx context.Context) (resp []FsProductModel3d, err error) {
err = t.db.WithContext(ctx).Model(&FsProductModel3d{}).Limit(10).Find(&resp).Error
err = t.db.WithContext(ctx).Model(&FsProductModel3d{}).Find(&resp).Error
return resp, err
}

View File

@ -142,8 +142,6 @@ func (l *ResourceBackupLogic) ResourceBackup(req *types.ResourceBackupReq, useri
err := upload.UploadFileByUrl(k, v, 1)
if err != nil {
l.Logger.Errorf("更新文件镜像备份失败, err: %v, key: %v, val:%v", err, k, v)
} else {
l.Logger.Infof("更新文件镜像备份成功, err: %v, key: %v, val:%v", err, k, v)
}
}
return resp.SetStatus(basic.CodeOK)