diff options
Diffstat (limited to 'pkg/service/user/user.go')
-rw-r--r-- | pkg/service/user/user.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/service/user/user.go b/pkg/service/user/user.go new file mode 100644 index 0000000..aa27eee --- /dev/null +++ b/pkg/service/user/user.go @@ -0,0 +1,12 @@ +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} +} |