mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-25 07:45:44 +00:00
fix[BE]: adjust chickin if product warehouse have more than one DOC product
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"gitlab.com/mbugroup/lti-api.git/internal/common/repository"
|
||||
entity "gitlab.com/mbugroup/lti-api.git/internal/entities"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type ProjectChickinDetailRepository interface {
|
||||
repository.BaseRepository[entity.ProjectChickinDetail]
|
||||
}
|
||||
|
||||
type ChickinDetailRepositoryImpl struct {
|
||||
*repository.BaseRepositoryImpl[entity.ProjectChickinDetail]
|
||||
}
|
||||
|
||||
func NewChickinDetailRepository(db *gorm.DB) ProjectChickinDetailRepository {
|
||||
return &ChickinDetailRepositoryImpl{
|
||||
BaseRepositoryImpl: repository.NewBaseRepository[entity.ProjectChickinDetail](db),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user