fusenapi/model/gmodel/fs_product_model3d_light_logic.go

12 lines
314 B
Go
Raw Normal View History

2023-06-16 07:11:37 +00:00
package gmodel
2023-06-20 11:56:18 +00:00
import "context"
func (l *FsProductModel3dLightModel) GetAllByIds(ctx context.Context, ids []int64) (resp []FsProductModel3dLight, err error) {
err = l.db.WithContext(ctx).Model(&FsProductModel3dLight{}).Where("`id` in (?)", ids).Find(&resp).Error
if err != nil {
return nil, err
}
return
}