fusenapi/model/gmodel/fs_cloud_pick_up_detail_logic.go

14 lines
358 B
Go
Raw Permalink Normal View History

2023-06-19 10:27:31 +00:00
package gmodel
2023-06-29 05:59:55 +00:00
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
}