fusenapi/model/gmodel/fs_cloud_pick_up_detail_logic.go
laodaming f09e1b8f93 fix
2023-06-29 13:59:55 +08:00

14 lines
358 B
Go

package gmodel
import "context"
// TODO: 使用model的属性做你想做的
func (p *FsCloudPickUpDetailModel) GetAllByIds(ctx context.Context, ids []int64) (resp []FsCloudPickUpDetail, err error) {
if len(ids) == 0 {
return
}
err = p.db.WithContext(ctx).Model(&FsCloudPickUpDetail{}).Where("`id` in (?)", ids).Find(&resp).Error
return resp, err
}