mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
22 lines
483 B
Go
22 lines
483 B
Go
package repository
|
|
|
|
import (
|
|
model "gitlab.com/mbugroup/lti-api.git/internal/modules/users/models"
|
|
"gitlab.com/mbugroup/lti-api.git/internal/repository"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type UserRepository interface {
|
|
repository.BaseRepository[model.User]
|
|
}
|
|
|
|
type UserRepositoryImpl struct {
|
|
*repository.BaseRepositoryImpl[model.User]
|
|
}
|
|
|
|
func NewUserRepository(db *gorm.DB) UserRepository {
|
|
return &UserRepositoryImpl{
|
|
BaseRepositoryImpl: repository.NewBaseRepository[model.User](db),
|
|
}
|
|
}
|