framework/pkg/service/user/user.go

13 lines
185 B
Go
Raw Permalink Normal View History

2024-10-12 02:52:22 +03:00
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}
}