mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 23:35:43 +00:00
a0bdc7b23c
✅ DB Schema: product_warehouse entity and migration ✅ Master Data: added filter params to getall APIs 🚧 Pending: stock_logs implementation and adjustment APIs
22 lines
530 B
Go
22 lines
530 B
Go
package repository
|
|
|
|
import (
|
|
entity "gitlab.com/mbugroup/lti-api.git/internal/entities"
|
|
"gitlab.com/mbugroup/lti-api.git/internal/common/repository"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type AdjustmentRepository interface {
|
|
repository.BaseRepository[entity.Adjustment]
|
|
}
|
|
|
|
type AdjustmentRepositoryImpl struct {
|
|
*repository.BaseRepositoryImpl[entity.Adjustment]
|
|
}
|
|
|
|
func NewAdjustmentRepository(db *gorm.DB) AdjustmentRepository {
|
|
return &AdjustmentRepositoryImpl{
|
|
BaseRepositoryImpl: repository.NewBaseRepository[entity.Adjustment](db),
|
|
}
|
|
}
|