Files
teletypegames/domain/service.file.go
T
2026-01-27 20:01:25 +01:00

20 lines
352 B
Go

package domain
type FileServiceInterface interface {
GetPath(path string) string
}
type FileService struct {
FileRepository FileRepositoryInterface
}
func NewFileService() *FileService {
return &FileService{
FileRepository: NewFileRepository(),
}
}
func (s *FileService) GetPath(path string) string {
return s.FileRepository.GetPath(path)
}