fusenapi/model/gmodel/fs_product_model3d_light_logic.go
laodaming edeb2bb5f1 fix
2023-06-20 19:56:18 +08:00

12 lines
314 B
Go
Executable File

package gmodel
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
}