mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-25 15:55:44 +00:00
Feat[BE-222.223.224]: creating create one delivery order and getone delivery order[Unfinished]
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
type MarketingProductRepository interface {
|
||||
repository.BaseRepository[entity.MarketingProduct]
|
||||
GetByMarketingID(ctx context.Context, marketingID uint) ([]entity.MarketingProduct, error)
|
||||
IdExists(ctx context.Context, id uint) (bool, error)
|
||||
}
|
||||
|
||||
type MarketingProductRepositoryImpl struct {
|
||||
@@ -33,3 +34,7 @@ func (r *MarketingProductRepositoryImpl) GetByMarketingID(ctx context.Context, m
|
||||
}
|
||||
return products, nil
|
||||
}
|
||||
|
||||
func (r *MarketingProductRepositoryImpl) IdExists(ctx context.Context, id uint) (bool, error) {
|
||||
return repository.Exists[entity.MarketingProduct](ctx, r.DB(), id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user