mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
22 lines
481 B
Go
22 lines
481 B
Go
package repository
|
|
|
|
import (
|
|
model "gitlab.com/mbugroup/lti-api.git/internal/modules/master/uoms/models"
|
|
"gitlab.com/mbugroup/lti-api.git/internal/repository"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type UomRepository interface {
|
|
repository.BaseRepository[model.Uom]
|
|
}
|
|
|
|
type UomRepositoryImpl struct {
|
|
*repository.BaseRepositoryImpl[model.Uom]
|
|
}
|
|
|
|
func NewUomRepository(db *gorm.DB) UomRepository {
|
|
return &UomRepositoryImpl{
|
|
BaseRepositoryImpl: repository.NewBaseRepository[model.Uom](db),
|
|
}
|
|
}
|