fix[BE]: adjust chickin if product warehouse have more than one DOC product

This commit is contained in:
aguhh18
2025-10-22 14:56:32 +07:00
parent e2818b11f0
commit 6dd45c3289
7 changed files with 170 additions and 66 deletions
@@ -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),
}
}