15 lines
219 B
Go
15 lines
219 B
Go
package repository
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type ProfileRepository struct {
|
|
db *gorm.DB
|
|
}
|
|
|
|
func NewProfileRepository(db *gorm.DB) *ProfileRepository {
|
|
repository := &ProfileRepository{db: db}
|
|
return repository
|
|
}
|