mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
22 lines
482 B
Go
22 lines
482 B
Go
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 UserRepository interface {
|
|
repository.BaseRepository[entity.User]
|
|
}
|
|
|
|
type UserRepositoryImpl struct {
|
|
*repository.BaseRepositoryImpl[entity.User]
|
|
}
|
|
|
|
func NewUserRepository(db *gorm.DB) UserRepository {
|
|
return &UserRepositoryImpl{
|
|
BaseRepositoryImpl: repository.NewBaseRepository[entity.User](db),
|
|
}
|
|
}
|