mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Refactor filesystem to make it testable
This commit is contained in:
@@ -14,10 +14,10 @@ import (
|
||||
|
||||
type UserService struct {
|
||||
DB *db.DB
|
||||
FS *filesystem.FileSystem
|
||||
FS *filesystem.Storage
|
||||
}
|
||||
|
||||
func NewUserService(database *db.DB, fs *filesystem.FileSystem) *UserService {
|
||||
func NewUserService(database *db.DB, fs *filesystem.Storage) *UserService {
|
||||
return &UserService{
|
||||
DB: database,
|
||||
FS: fs,
|
||||
|
||||
Reference in New Issue
Block a user