12 lines
185 B
Go
12 lines
185 B
Go
package user
|
|
|
|
import "github.com/uptrace/bun"
|
|
|
|
type Service struct {
|
|
db *bun.DB
|
|
}
|
|
|
|
// NewService returns new Service.
|
|
func NewService(db *bun.DB) *Service {
|
|
return &Service{db: db}
|
|
}
|