18 lines
335 B
Go
18 lines
335 B
Go
|
package db
|
||
|
|
||
|
import (
|
||
|
"github.com/uptrace/bun"
|
||
|
|
||
|
"git.lehouerou.net/laurent/sorarebuddy/model"
|
||
|
)
|
||
|
|
||
|
type MembershipRepository struct {
|
||
|
*Repository[model.Membership]
|
||
|
}
|
||
|
|
||
|
func NewMembershipRepository(db *bun.DB) *MembershipRepository {
|
||
|
return &MembershipRepository{
|
||
|
Repository: NewRepository[model.Membership](db, []string{"id"}),
|
||
|
}
|
||
|
}
|