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

This commit is contained in:
momo 2023-11-21 11:49:29 +08:00
parent 6d748f3dda
commit 3749f04e6a
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package gmodel
import "context" import "context"
func (t *FsProductModel3dLightModel) FindAll(ctx context.Context) (resp []FsProductModel3dLight, err error) { func (t *FsProductModel3dLightModel) FindAll(ctx context.Context) (resp []FsProductModel3dLight, err error) {
err = t.db.WithContext(ctx).Model(&FsProductModel3dLight{}).Limit(10).Find(&resp).Error err = t.db.WithContext(ctx).Model(&FsProductModel3dLight{}).Find(&resp).Error
return resp, err return resp, err
} }
func (l *FsProductModel3dLightModel) FindOne(ctx context.Context, id int64) (resp *FsProductModel3dLight, err error) { func (l *FsProductModel3dLightModel) FindOne(ctx context.Context, id int64) (resp *FsProductModel3dLight, err error) {

View File

@ -4,6 +4,6 @@ import "context"
// TODO: 使用model的属性做你想做的 // TODO: 使用model的属性做你想做的
func (t *FsToolLogsModel) FindAll(ctx context.Context) (resp []FsToolLogs, err error) { func (t *FsToolLogsModel) FindAll(ctx context.Context) (resp []FsToolLogs, err error) {
err = t.db.WithContext(ctx).Model(&FsToolLogs{}).Limit(10).Find(&resp).Error err = t.db.WithContext(ctx).Model(&FsToolLogs{}).Find(&resp).Error
return resp, err return resp, err
} }