3D模型数据资源备份镜像批量处理
This commit is contained in:
parent
7ef4139f4e
commit
ca1c10382a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user